Commit Graph

493 Commits

Author SHA1 Message Date
Sebastian Kaspari
a6e3892f33 Bug 1240710 - Pick (temporary) download directory depending on whether permission has been granted. r=nalexander,paolo,jchen
As soon as the user clicks on a link to download a file Gecko will start the download - even before prompting the
user. This led to problems when the user hadn't granted the permission to write to the downloads directory yet. The
download would fail even though the user (later) accepted the permission.

With this patch we will start the download to the app's cache directory (only if we do not have the permission) and
prompt the user. As soon as the user has accepted the permission the download will be moved to the public downloads
directory (even while still downloading). If the permission is denied the download will be cancelled.

After the permission has been granted all subsequent downloads will start writing to the downloads directory
directly.


MozReview-Commit-ID: CCqk9h7Sxor
2016-02-18 15:11:42 +00:00
Dragana Damjanovic dd.mozilla@gmail.com
4cdb2b1796 Bug 1246956 - Add loadReplace to session history. r=yoric r=mfinkle 2016-03-02 12:17:22 +01:00
Brendan Dahl
6817fc43ae Bug 1235869 - Remove web runtime from android. r=myk 2016-02-29 10:31:00 +01:00
Joel Maher
2adb999198 Bug 1251373 - Remove moz payment API support. r=Margaret
MozReview-Commit-ID: IW63XQDyB16
2016-02-25 13:08:50 -08:00
Dragana Damjanovic
9e390d3655 Bug 1246956 - Add originURI to Sessionstore. r=bz,Yoric,mfinkle 2016-02-22 16:38:57 -08:00
Margaret Leibovic
b3e6967557 Bug 1227743 - Remove snippet (id) from rotation after the user clicks on it. r=mfinkle
MozReview-Commit-ID: 10m8yssL94U
2016-02-11 15:29:25 -05:00
ISHIKAWA, Chiaki
72d38a6835 Bug 1248252 - Improper outdated octal constant syntax in M-C tree. Use '0o' prefix. r=dao
Be warned. Do not attemp to change the .js "test" source code in ./js
They are meant to check

 - the outdated 0666 octal constant is still parsed correctly,
 - the outdated 0666 octal constant raises syntax error flag
   in strict mode, etc.

So leave them alone.
2016-02-15 08:57:00 +01:00
Sebastian Kaspari
a6af4aa824 Bug 1219078 - Delegate OMA downloads to external app (if available). r=mfinkle
This patch will prevent Firefox from downloading OMA download descriptors on
its own. Instead it will prompt to complete the action with an external app
if available. An error will be shown if no external app can handle the download.
2015-12-17 14:49:37 +01:00
Birunthan Mohanathas
9bed3781f9 Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-02-02 17:36:30 +02:00
Phil Ringnalda
863943dfb7 Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
CLOSED TREE

Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas
f94b4ff6a2 Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-01-31 17:12:12 +02:00
Sebastian Kaspari
2582480b96 Backed out changeset 327f0142e1a7 (bug 1219078) 2016-01-22 14:31:37 +01:00
Sebastian Kaspari
deb051dc45 Bug 1227603 - Add support for sub-distributions based on MCC/MNC (SIM). r=margaret,mfinkle
We will now search for distributions in the following folders:

 * 1) Data distributions (APK or OTA):
   * 1.1) <dataDir>/distribution/<mcc>/<mnc> - For bundled distributions for specific network providers
   * 1.2) <dataDir>/distribution/<mcc>       - For bundled distributions for specific countries
   * 1.3) <dataDir>/distribution/default     - For bundled distributions with no matching mcc/mnc
   * 1.4) <dataDir>/distribution             - Default non-bundled distribution

 * 2) System distributions:
   * 2.1) /system/<package>/distribution/<mcc>/<mnc> - For bundled distributions for specific network providers
   * 2.2) /system/<package>/distribution/<mcc>       - For bundled distributions for specific countries
   * 2.3) /system/<package>/distribution/default     - For bundled distributions with no matching mcc/mnc
   * 2.4) /system/<package>/distribution             - Default non-bundled system distribution
2016-01-15 10:11:34 +01:00
Andrea Marchesini
7029b26e54 Bug 1238515 - nsIFilePicker methods should clearly say when they return directories and files, r=smaug 2016-01-12 19:18:15 +00:00
Carsten "Tomcat" Book
7262d7218f Backed out changeset b5e8cd00d7ef (bug 1238515) for Android Test failures 2016-01-12 14:15:08 +01:00
Carsten "Tomcat" Book
b0e2b7fa3c Merge mozilla-central to mozilla-inbound 2016-01-12 11:56:10 +01:00
Andrea Marchesini
c785b58d02 Bug 1238515 - nsIFilePicker methods should clearly say when they return directories and files, r=smaug 2016-01-12 10:23:13 +00:00
Margaret Leibovic
e93ed19cb1 Bug 1224661 - Clicking on a snippet should open the URL in the same tab, not a new one. r=liuche 2015-11-13 15:37:40 -05:00
Andrzej Hunt
c349a42fac Bug 826400 - Part 3: Simplify homescreen shortcut creation, and use apple-touch-icon if available r=nalexander,jchen 2015-12-29 11:49:54 -08:00
kartikey0303
9207825a7a Bug 1234131 - Remove unused method, deleted the method getNativeWindow(). r=skaspari 2015-12-26 17:38:37 +05:30
Mark Finkle
ce191c99a7 Bug 1044289 - Update PromptService.js to handle stuff from nsPrompter.js r=margaret 2015-12-30 14:59:45 -05:00
Olli Pettay
a81d87113e Bug 1155730, implement History.scrollRestoration r=jst 2015-12-26 12:59:09 +02:00
Sebastian Kaspari
c605e2656f Bug 1233440 - Replace toast in HelperAppDialog.js with Snackbar. r=mcomella 2015-12-17 17:33:52 +01:00
Sebastian Kaspari
518f0b588b Bug 1219078 - Delegate OMA downloads to external app (if available). r=mfinkle
This patch will prevent Firefox from downloading OMA download descriptors on
its own. Instead it will prompt to complete the action with an external app
if available. An error will be shown if no external app can handle the download.
2015-12-17 14:49:37 +01:00
Margaret Leibovic
e3a33130b8 Bug 1231896 - Catch exception thrown if we fail to reload session state for error page. r=bnicholson 2015-12-11 09:39:32 -05:00
Matthew Noorenberghe
697d89c376 Bug 1216986 - Fix usage of nsIURI.host in password manager and prompt code to support IPv6. r=dolske,liuche,kanru 2015-12-02 16:13:18 -08:00
Nick Alexander
b49f07d91d Bug 1220892 - Part 1: Remove MOZ_ANDROID_NATIVE_ACCOUNTS_UI. r=mcomella 2015-11-30 14:32:17 -08:00
Jim Chen
64872fbb85 Bug 1221270 - Schedule and perform GMP updates in AddonUpdateService; r=snorp
This patch moves the GMP update process from browser.js startup to
AddonUpdateService. It also uses the Gecko:ScheduleRun event in
GeckoService to schedule headless runs in order to perform updates
periodically.
2015-11-23 23:31:49 -05:00
Jim Chen
71b77b9a88 Bug 1221270 - Let AddonUpdateService use AddonManagerPrivate to check for updates; r=mfinkle
The Android-specific AddonUpdateService has a bit of redundant code
because AddonManagerPrivate has a backgroundUpdateCheck method that does
a lot of the same thing. This patch makes AddonUpdateService call that
method so there's less code and more consistency.

This requires flipping the "extensions.update.enabled" pref, which was
disabled in bug 528588 for showing the XUL addon update dialog. I don't
think this is relevant anymore in native Fennec and with the later
rewrite of AddonManager, so I'm fairly certain it's okay to flip that
pref.

The patch also disables the AddonManager update timer because we have
our own update timer on Android.
2015-11-23 23:31:49 -05:00
Margaret Leibovic
c681c8b890 Bug 1212889 - Always use chrome://browser/content/aboutRights.xhtml to ensure mobile version of about:rights. r=mfinkle 2015-11-16 17:59:19 -05:00
Jonathan Almeida (:jonalmeida)
d8549b1a82 Bug 1225225 - Incorrect pref type and name used ImageBlockingPolicy r=mfinkle 2015-11-16 15:37:34 -05:00
Mike Hommey
efc0f2a15b Bug 1223412 - Make b2gdroid reliably use the some b2g components instead of Fennec's. r=fabrice 2015-11-14 08:40:54 +09:00
Chenxia Liu
94877be5b6 Bug 1212606 - Prompt user (with a doorhanger) to allow to notifications from a website. r=ally 2015-11-10 15:18:20 -08:00
Jim Chen
f83f87b5eb Bug 1219016 - Don't use context class name to detect webapp process; r=mfinkle
The code in WebappsUpdateTimer.js tried to detect a webapp process by
using the context class name, which is extremely fragile. This patch
makes it detect the current Gecko profile instead.
2015-11-11 21:28:59 -05:00
Jonathan Almeida (:jonalmeida)
b06c0c4be2 Bug 1209293 - Flip default options for click-to-view images r=mfinkle 2015-11-10 00:03:55 -05:00
Jonathan Almeida (:jonalmeida)
8c22d263b3 Bug 1209293 - Using const values instead of numbers r=mfinkle 2015-11-09 18:21:16 -05:00
Jonathan Almeida [:jonalmeida]
d02764b935 Bug 1208167 - Telemetry probe for click-to-play images r=mfinkle,ally
- A telemetry probe for when a user clicks to unblock an image.
- A second probe for sending the size of the image being unblocked.
 Since we don't have information on the image size the best option
 was to make make an XHR HEAD request. We make an approximation
 of the image size from the content length which we send in kB.
2015-10-29 02:15:41 -04:00
Jonathan Almeida [:jonalmeida]
385c51754d Bug 1209293 - Add option for click-to-play images depending on network bearer r=mfinkle
- Replaced bool pref for int list option: Never, Always, or Only over Wi-Fi
- Pref browser.image_blocking.enabled -> browser.image_blocking
- Converted the early return to check for cellular as well.
- Note that in the cellular check, I do not consider LINK_TYPE_USB as "cellular".
- Tested this on a physical device with all combinations
    of WiFi ON/OFF (falling back to cellular and each menu state.
- Tested if menu options work as well for each state mentioned above.
2015-10-29 03:20:20 -04:00
Stanislas Dolcini
26f93d45fb Bug 1147197 - Fix Indentation in LoginManagerPrompter.js r=margaret 2015-10-28 11:53:46 -04:00
Nathan Froyd
e4e2da55c9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Carsten "Tomcat" Book
d7f143eaad Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Carsten "Tomcat" Book
b9e5717f50 Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)
2015-10-07 12:13:45 +02:00
Shu-yu Guo
b5f316de44 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Jonathan Almeida [:jonalmeida]
2bf4a4a0c8 Bug 1170725 - Click-to-play images. r=mfinkle 2015-08-15 23:36:37 -07:00
Jim Chen
88ddbd39df Bug 1197957 - Let GeckoView open the nsWindow instead of CLH; r=snorp
Currently, BrowserCLH opens a single new window on startup. Now that
GeckoView is able to open windows through GeckoView.Window, we should
make GeckoView open its own window, which we can do earlier in startup,
and will make it possible to support multiple GeckoView's down the road.
2015-09-21 10:13:32 -04:00
Nick Alexander
a0b02c1dc0 Bug 1191067 - Add Fennec version of about:accounts. r=antlam,margaret
This is a Fennec version of about:accounts, cribbed largely from
Desktop's implementation.  This implementation serves two purposes:

One, it allows all fxa-content-server pref handling to remain in
Gecko.  Java-side consumers redirect to about:accounts?action=... and
have pref munging and parameter addition (like context=fx_fennec_v1,
etc) handled by about:accounts itself.

Two, it handles network connectivity display and error handling.  When
a request is started, we display an animated spinner.  We transition
smoothly from the spinner to the iframe display if we can, and if not
we hide any network error and offer to retry.  This is more important
in Fennec than it is on Desktop.  This approach agrees with Firefox
for iOS.

Some additional notes:

The spinner to iframe transition uses the WebChannel listener to send
LOADED messages to the appropriate XUL <browser> element.  It's worth
remembering that Fennec's Gecko is single process, so the <browser> in
question is in the same process.  None-the-less, we are close to e10s
safe.

There are four actions: signup/signin/force_reauth, and manage.  The
first three try to produce a LOGIN message.  The last uses the
fxa-content-server to manage the Account settings.  *This is not how
this is arranged on Desktop: Desktop redirects to a new tab, not
wrapped in about:accounts.*
2015-09-18 16:28:14 -04:00
Wes Kocher
8f2936989b Merge b2ginbound to central, a=merge CLOSED TREE 2015-09-16 11:00:55 -07:00
Fabrice Desré
8524d4f021 Bug 1205139 - Get @mozilla.org/embedcomp/prompt-service;1 to instantiate correctly r=dhylands 2015-09-15 23:09:43 -07:00
Shu-yu Guo
45211869c8 Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Justin Dolske
e5f503f473 Bug 1198525 - Fix about:rights in Nightly and Developer edition, r=mossop, r=mfinkle 2015-09-14 13:43:51 +05:30