Commit Graph
481 Commits
Author SHA1 Message Date
Sebastian Kaspari 0e81dc511f 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 b90663ccce 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 9f3c73682b Backed out changeset b5e8cd00d7ef (bug 1238515) for Android Test failures 2016-01-12 14:15:08 +01:00
Carsten "Tomcat" Book 3df72e88df Merge mozilla-central to mozilla-inbound 2016-01-12 11:56:10 +01:00
Andrea Marchesini db6a9c8287 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 c00a1126ab 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 36b97abc6f 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 1716f43d03 Bug 1234131 - Remove unused method, deleted the method getNativeWindow(). r=skaspari 2015-12-26 17:38:37 +05:30
Mark Finkle 4710491115 Bug 1044289 - Update PromptService.js to handle stuff from nsPrompter.js r=margaret 2015-12-30 14:59:45 -05:00
Olli Pettay 1d483a7a70 Bug 1155730, implement History.scrollRestoration r=jst 2015-12-26 12:59:09 +02:00
Sebastian Kaspari 2fc5885aa1 Bug 1233440 - Replace toast in HelperAppDialog.js with Snackbar. r=mcomella 2015-12-17 17:33:52 +01:00
Sebastian Kaspari f8a1e27cd3 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 f1907bb874 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 49d8829ebf 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 e3afc5c0d1 Bug 1220892 - Part 1: Remove MOZ_ANDROID_NATIVE_ACCOUNTS_UI. r=mcomella 2015-11-30 14:32:17 -08:00
Jim Chen 3b7828d03c 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 e3ba721fb5 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 602f4f88f9 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) 2c89341f6d Bug 1225225 - Incorrect pref type and name used ImageBlockingPolicy r=mfinkle 2015-11-16 15:37:34 -05:00
Mike Hommey 04989c2d33 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 84569598de 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 96edcf64e6 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) 6df5b9a6e6 Bug 1209293 - Flip default options for click-to-view images r=mfinkle 2015-11-10 00:03:55 -05:00
Jonathan Almeida (:jonalmeida) 0353447d2b Bug 1209293 - Using const values instead of numbers r=mfinkle 2015-11-09 18:21:16 -05:00
Jonathan Almeida [:jonalmeida] 7dc6870771 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] 4b76801acb 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 87632914c5 Bug 1147197 - Fix Indentation in LoginManagerPrompter.js r=margaret 2015-10-28 11:53:46 -04:00
Nathan Froyd 4e6d8f6705 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 036e6d2fa3 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 12369728f5 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 474f49adb7 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Jonathan Almeida [:jonalmeida] 1f2f37e9a0 Bug 1170725 - Click-to-play images. r=mfinkle 2015-08-15 23:36:37 -07:00
Jim Chen 29d7e30fb8 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 05a1babaf6 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 21027d7336 Merge b2ginbound to central, a=merge CLOSED TREE 2015-09-16 11:00:55 -07:00
Fabrice Desré e7f074bd4e 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 37989840cd 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 207f2d36bb Bug 1198525 - Fix about:rights in Nightly and Developer edition, r=mossop, r=mfinkle 2015-09-14 13:43:51 +05:30
Dylan Roeh 80319a0c72 Bug 1193027 - Disables all downloads of file:// urls on Android. r=snorp 2015-09-08 15:41:36 -05:00
Fabrice Desré 1899b01ad3 Bug 1201145 - Make android intent & web activities coexist peacefully r=snorp 2015-09-04 14:06:49 -07:00
Fabrice Desré 5c6562eb7c Bug 1181209 - Make changes to Gecko needed for b2gdroid to boot. r=fabrice 2015-08-25 13:42:24 -07:00
Jim Chen a7ca9c8efb Bug 1195496 - Move speculative connection from CLH to GeckoApp; r=snorp
Moving speculative connection from CLH to GeckoApp allows us to start
the speculative connection very early in the startup process rather
than later in startup.
2015-08-19 18:14:47 -04:00
Allison Naaktgeboren af3ed4f8ab Bug 1114821 - Remove nightly-only flag for about logins.r=liuche 2015-08-17 23:22:24 -07:00
Jim Chen dfcf5a84c5 Bug 1192077 - Convert AndroidBridge JNIEnv calls; r=esawin 2015-08-13 00:53:39 -04:00
Michael Comella 7a146b7f00 Bug 1189957 - Open noHandler results in the context they were loaded in. r=margaret
Before we loaded the url into the open tab - this approach is more correct. I
verified it fixed the issues on the Delta website mentioned in this bug.
2015-08-07 16:19:23 -07:00
Margaret Leibovic f64b016d51 Bug 1132591 - Unpin shortcut tabs when navigating to a new host. r=mcomella 2015-07-16 11:01:03 -07:00
Margaret Leibovic bc29858c71 Bug 1183115 - Remove apps AboutRedirector contract from MobileComponents.manifest. r=mcomella 2015-07-15 17:16:26 -07:00
Chenxia Liu f58fb67a96 Bug 1147112 - Add doorhanger icons. r=ally 2015-07-09 18:46:37 -07:00
Margaret Leibovic 0560a6ba41 Bug 1179872 - Remove about:apps page and menu item. r=mcomella 2015-07-07 16:01:43 -07:00
Fabrice Desré 7c673bf9c1 Bug 1180507 - Don't hardcode defaultChromeURI in BrowserCLH.js r=mfinkle 2015-07-05 20:26:17 -07:00