Граф коммитов

18976 Коммитов

Автор SHA1 Сообщение Дата
Jing-wei Wu 35b968a344 Bug 1232439 - Part 1: Setup A/B experiment for enabling full bookmark management in Nightly. r=Grisha
The experiment in Switchboard is "full-bookmark-management", and it's enabled for 100% of the Nightly audience.

MozReview-Commit-ID: EhA0BcouPPn

--HG--
extra : rebase_source : beeddc921a089606d8a752b75c3a0280a1803972
2017-03-23 14:14:24 +08:00
Andrzej Hunt f1be49c357 Bug 1357630 - infer: (NULL_DEREFERENCE) add null-check to getAppEventDispatcher r=nalexander
Every single caller of getAppEventDispatcher() and getEventDispatcher()
assumes a non-null return value, so let's make sure we're actually returning
a non-null value. This commit doesn't effectively change runtime behaviour
(any previously NPE crashes will now result in a crash due to IllegalStateException),
however we now at least have an obvious error message in that situation.

In reality, no code should run before onCreate(), so this should realistically
never happen - but we should still check to ensure that is the case.

(This removes 28 infer NULL_DEREFERENCE warnings.)

MozReview-Commit-ID: GhzwKWfkAbD

--HG--
extra : rebase_source : f6b13f590b437ebb63e502f774a70164054ecf7e
2017-04-18 20:10:44 -07:00
Wes Kocher 4f3c2d9829 Merge m-c to autoland, a=merge
MozReview-Commit-ID: DPzfAm14Tdx
2017-04-20 15:52:28 -07:00
Wes Kocher 5ce5528fb1 Merge inbound to m-c a=merge
MozReview-Commit-ID: DQDuEiYLWCO
2017-04-20 15:30:43 -07:00
James Willcox bbde9021e6 Bug 1358155 - Bump core ping version and docs r=frank
MozReview-Commit-ID: 1h417verpc2

--HG--
extra : rebase_source : 293cbbf4c01c5535579ab5d3862a01ef4de50234
2017-04-20 09:43:51 -05:00
Munro Mengjue Chiang c805ded682 Bug 1353313 - Add synchronization mechanism to CodecProxy. r=jolin
MozReview-Commit-ID: 3sqW06nIkoJ
2017-04-14 10:04:24 +08:00
Nick Alexander d1d66db6c9 Bug 1254355 - Part 2: Generate AndroidManifest.xml using GENERATED_FILES. r=gps
MozReview-Commit-ID: 8McGHkPYyhI

--HG--
extra : rebase_source : 7e2e6f9f901956c34089335157ce4fe754cf2472
2017-04-17 13:47:41 -07:00
Nick Alexander 45d40668a3 Bug 1254355 - Pre: Use #ifdef, not #if, for MOZ_CRASHREPORTER. r=gps
Style varies across the tree, and this matters as we transition to
Python and moz.build.  AppConstants.jsm already uses #ifdef, so this
is consistent with that.

MozReview-Commit-ID: Bal37lqlvjq

--HG--
extra : rebase_source : 8e4e459a9bdbc3a2cacde728f45e6edecc272e24
2017-04-18 17:26:15 -07:00
Wes Kocher ca3a99fc7e Merge m-c to inbound, a=merge 2017-04-19 17:15:26 -07:00
Tom Klein cd1f0d6b9b Bug 1354440 - Make the fade at the end of the tab strip work with RTL. r=maliu
MozReview-Commit-ID: AVjtekO4eli

--HG--
extra : rebase_source : 15962eb23b722be3de6625494aafd28c97c19bd9
2017-04-20 01:26:10 -05:00
Jan Henning 0340ccd2e1 Bug 1357091 - Provide a default value when reading "manifest.install.enabled". r=daleharvey,walkingice
That pref isn't set by default, so trying to access it in that case throws a JS error.

MozReview-Commit-ID: 2KIUSztvoXS

--HG--
extra : rebase_source : b2769ba16247db9373c004f152c0e2233fb0652d
2017-04-17 16:39:32 +02:00
Carsten "Tomcat" Book 87edaf78ee Merge mozilla-central to autoland
--HG--
extra : rebase_source : 46bdde97ce6567ce8a06b1609de547ef11b24c2a
2017-04-20 13:06:52 +02:00
Matthew Wein 09d1616dc7 Bug 1331742 - Part 5 - Add unit tests for browserAction.onClicked r=mixedpuppy
MozReview-Commit-ID: Ko8eQYfIM0H

--HG--
extra : rebase_source : 0774a850694d8ea52d7c39872e5ac02f4acec4c5
2017-04-10 16:15:54 -04:00
Matthew Wein 549d74a605 Bug 1331742 - Part 4 - Add a position property to keep track of the menu item's position instead of using the ID r=sebastian
MozReview-Commit-ID: 7ZtfaVQFhKX

--HG--
extra : rebase_source : b1d9a62ca8c272eb4ff631d4331129c97153cb31
2017-03-25 22:35:54 -07:00
Matthew Wein 0bb36b786b Bug 1331742 - Part 3 - Create and register ext-browserAction.js r=mixedpuppy
MozReview-Commit-ID: CGR4689b6oo

--HG--
extra : rebase_source : 912519c647c2051d03307f52ca778efb1f9e7480
2017-04-19 21:44:41 -04:00
Matthew Wein 35c2d73d83 Bug 1331742 - Part 2 - Create a module for managing browser actions similar to PageActions.jsm r=sebastian
MozReview-Commit-ID: 2epdMD75e84

--HG--
extra : rebase_source : a542b3ca2e673e4fcfdebab56108c2df66239630
2017-03-25 22:36:05 -07:00
James Willcox dc970b5ee0 Bug 1357786 - Use device CPU architecture in Fennec core ping r=sebastian
MozReview-Commit-ID: HXjaNdQzNGF

--HG--
extra : rebase_source : 86398402078b9212078639d1393d8fc845fcc7f6
2017-04-19 10:25:01 -05:00
Jan Henning 659bac6328 Bug 1357505 - Check tab queue array length before parsing to avoid unnecessary exceptions. r=sebastian
MozReview-Commit-ID: LrlegpviPZk

--HG--
extra : rebase_source : 357d8c879ce3f8c1eac8446b76394c64d0d8c9f6
2017-04-18 21:19:17 +02:00
Sylvestre Ledru 392d4c4a1a Bug 1354821 - Generate fennec nightly apk with org.mozilla.fennec_aurora as id r=rail
* nightly-aurora-id is a copy of nightly
* mobile/android/branding/aurora/ is a copy of nightly with the id and package name changed

MozReview-Commit-ID: 2VT0dHDXEMg

--HG--
extra : rebase_source : 7396a1a7eabb4037fb6936bfc1af10666a677e14
2017-04-18 11:59:55 +02:00
Julian_Chu c5f0b243ca Bug 1353019: update menu icon of CustomTabsActivity as per page loading r=sebastian
There is a control in menu for reloading or stop-page-loading. Its icon
should be updated per page loading progress.

MozReview-Commit-ID: BNanAQj3xS4

--HG--
extra : rebase_source : 9964c320f3e430583fcdd79034c834af0c115fbc
2017-04-19 11:49:11 +08:00
Julian_Chu d486a74857 Bug 1353019: fix icon creation issue in GeckoMenuItem r=sebastian
If change icon via resource id, we should create mIcon as well. And
method `getIcon` should return the drawable which be used currently, but
not generating a new drawable via resource id.

Without this patch, we cannot change icon of a GeckoMenuItem until we
set the icon back. ie.

    Drawable icon = menuItem.getIcon();
    icon.setLevel(42); // does not work, cause the icon is new instance.

MozReview-Commit-ID: KxW66OgI9po

--HG--
extra : rebase_source : 7b9c1dc13d9b3b214e5dcb3ee366dca7e60f3fe7
2017-04-19 15:39:14 +08:00
John Lin 9fa31b9fb4 Bug 1343541 - restore signal actions changed by Android debugger. r=glandium
Android shows a dialog box when it detects app crashing. OOP decoder needs to hide that from user to resume playback gracefully.

MozReview-Commit-ID: 3cE3GiHAuQk

--HG--
extra : rebase_source : 67bec5dfda1e878fa7dea877ef58d485b4e17944
2017-04-12 17:34:17 +08:00
Carsten "Tomcat" Book 7bcdfe36bc Merge mozilla-central to autoland 2017-04-19 10:57:24 +02:00
Carsten "Tomcat" Book 44e9c21039 merge mozilla-inbound to mozilla-central a=merge 2017-04-19 10:32:48 +02:00
Jim Chen c9d615b096 Bug 1322581 - 5. Add PromptDelegate implementation to GeckoView example; r=snorp
Add a sample implementation of PromptDelegate to GeckoView example.
2017-04-18 17:45:02 -04:00
Jim Chen 0bb39e6f5f Bug 1322581 - 4. Add JS GeckoView prompt implementation; r=snorp
Add the necessary XPCOM components to handle prompts for GeckoView. The
JS code mostly package the prompts into GeckoView:Prompt events, and send
them to the Java side if in parent process, or to the parent process if
in child process.
2017-04-18 17:45:02 -04:00
Jim Chen 8503fd2101 Bug 1322581 - 3. Add event listener for GeckoView:Prompt event; r=snorp
Add an event listener for the GeckoView:Prompt event, which JS code will
use to sent over prompt requests and to receive prompt results. Both
global and per-GeckoView listeners are required because we may not know
the origin GeckoView for certain prompts, so some prompts will not have
an associated GeckoView. This is also the reason for having a static
default PromptDelegate in additional to an instance per-GeckoView
PromptDelegate. All prompts without associated GeckoViews are sent
directly to the default PromptDelegate.
2017-04-18 17:45:01 -04:00
Jim Chen e2f7e4a529 Bug 1322581 - 2. Add PromptDelegate interface; r=snorp
Add a PromptDelegate interface that implements possible prompts shown by
a GeckoView application. All prompt methods include a callback parameter
for the implementation to call back to GeckoView with results from the
prompt.
2017-04-18 17:44:57 -04:00
Jim Chen f15b130cbb Bug 1322581 - 1. Remove GeckoView.ChromeDelegate; r=snorp
Remove the old ChromeDelegate interface, to be replaced by
PromptDelegate in a future patch.
2017-04-18 17:44:57 -04:00
Jim Chen f3eca63a21 Bug 1354911 - Guard against null menu item names; r=sebastian
Addons may give us invalid menu item names; bail instead of crashing in
such cases.
2017-04-18 17:42:58 -04:00
Wes Kocher 61ed56921b Merge m-c to inbound, a=merge 2017-04-18 14:38:53 -07:00
Julian_Chu 752ba9adf6 Bug 1352993 - Part 3, CustomTabsActivity prvoides presenter r=sebastian
CustomTabsActivity use standard ActionBar, so we can easily use action
mode for text-selection.

MozReview-Commit-ID: CSu0d24Z7dt

--HG--
extra : rebase_source : 9040e515a6208459aa5b0b7470e491c7474fe4ec
2017-04-18 18:51:11 +08:00
Julian_Chu afbcff523b Bug 1352993 - Part 2, Add presenter class which response text-selection r=sebastian
To create new interface ActionModePresenter, a presenter could to
operate action-mode.

For pre-marshmallow Android version, we use ActionBar to provide UI
action for text-selection. Therefore BrowserApp will implement this
presenter for text-selection.

MozReview-Commit-ID: GdLB3ke2pYe

--HG--
extra : rebase_source : 5467a7d514810fa846fefcf37e5eb2f55a643c3f
2017-04-18 18:12:43 +08:00
Julian_Chu b139b481bd Bug 1352993 - Part 1, Generalize ActionModeCompat r=sebastian
We want to reuse ActionBarTextSelection in more activities, so remove
custom classes from it, to make it easier to interactive with general
Andorid classes.

To achieve that
    * Let ActionModeCompat to be a subclass of ActionMode
    * Get rid of GeckoMenu

BrowserApp is the only one consumer for ActionModeCompat, and it do
understand the class type. We could move animateIn to it safely. After
doing this, TextSelectionActionModeCallback could become a general
ActionMode.Callback.

MozReview-Commit-ID: 7FTwDTe1JYG

--HG--
extra : rebase_source : cf7cbba40745bbfbd34099f238c904bb4d3c6438
2017-04-18 15:26:53 +08:00
Julian_Chu 0bf1b90932 Bug 1352993 - Part 0, remove useless variable r=sebastian
No one is using this variable, remove it.

MozReview-Commit-ID: LLcxoh4mRrE

--HG--
extra : rebase_source : e9b418c8adefa8459e04b3ad65e17e376a9369ad
2017-04-14 17:45:15 +08:00
Andrzej Hunt aee9d1bfa4 Bug 1261983 - infer: close file input stream in case of GZIP failure r=nechen
This commit also cleans up extraneous stream closes: these streams
are closed in finally, so we don't need to also clean them up in
the main try block body.

MozReview-Commit-ID: EXxlmmtqvyq

--HG--
extra : amend_source : 72ad8cb816202e8e3f234157bae092cea004d34a
2017-04-14 12:10:25 -07:00
Tom Klein f075e911e0 Bug 1350737 - Make the selected tab's row the first visible row when the tabs tray opens. r=sebastian
That helps usability in the following scenario:
1) Open more tabs than will fit on screen in the tabs tray (and fill the last
row with tabs if the tabs tray is in a grid mode);
2) Scroll to the bottom;
3) Open one of the last visible tabs, and from that open tab open a new
background tab (e.g. long click on a link in a page and choose "Open in new
tab");
4) Reopen the tabs tray.

With the fix, the new tab will be visible at the bottom of the list, whereas
previously in list mode it was not visible at all, and in grid modes only the
top of the title was visible.

(Bug 1299905 would make this sort of situation more widely applicable.)

This patch also has the side effect of scrolling the selected tab to the top of
the tabs tray on each rotation (previously it was just scrolled into view).

MozReview-Commit-ID: 4MKY7P1Mihk

--HG--
extra : rebase_source : a00776803b199a949ba598805e79a71fde82e2f3
2017-03-26 21:44:23 -05:00
Alastor Wu 7175cf4a75 Bug 1348803 - part2 : modify event name to lower case letter. r=sebastian
Other events in browser.js are all lower case letter, also change these two to make them consistent.

MozReview-Commit-ID: LkzYUo6OrEA

--HG--
extra : rebase_source : 6853dc40c68c0939d7e318b3a1e88c39495d0648
2017-04-18 11:04:17 +08:00
Alastor Wu dcf248107f Bug 1348803 - part1 : move fennec-only code to android/browser.js. r=sebastian
We could register media control related event after the tab has active media.
But we still need to register "audioFocusChange" in the beginning, because it
affect every tab even the tab has no active media.

MozReview-Commit-ID: ErIBUobnxbg

--HG--
extra : rebase_source : bdc8070f2f2a81f847ebb8e0ec87f6efeb86eb80
2017-04-18 11:03:49 +08:00
Matthew Wein 29488c9b00 Bug 1331742 - Part 1 - Create and register browser_action.json r=mixedpuppy
MozReview-Commit-ID: AwYuTDU3Ki4

--HG--
rename : browser/components/extensions/schemas/browser_action.json => mobile/android/components/extensions/schemas/browser_action.json
extra : rebase_source : 40d21958c2800a35e9a691f379694c6ca3b1c73e
2017-03-15 21:02:56 -04:00
Shane Caraveo f6660740ac Bug 1326298 implement off-main-thread delivery with start/stop/error listeners, r=kmag
MozReview-Commit-ID: Ke4NsthrbP2

--HG--
extra : rebase_source : 0324030e5f7f534256ff0c469bb486dc52e282c2
2017-04-18 15:50:53 -07:00
Sebastian Hengst 0e96a7ee95 Backed out changeset a5af7f7132f6 (bug 1254355) for failing android lint job (unused file crash_reporter.png). r=backout 2017-04-19 01:05:06 +02:00
Grigory Kruglov 68882a5021 Bug 1335198 - Add support for synchronizing bookmark creation date r=rnewman
Incoming records might be missing the dateAdded field, and so we perform some pre-processing:
- during reconciliation, dateAdded is set to the lowest of (remote lastModified, remote dateAdded, local dateAdded)
- during insertion, if dateAdded is missing it is set to lastModified

Whenever we modify dateAdded for a record during sync, we also bump its lastModified value. This will trigger an
upload of this record, and consequently a re-upload by clients which are able to provide an older dateAdded value.
It is possible that this might cause conflicts on other devices, but the expected likelyhood of that happening is low.


MozReview-Commit-ID: 3tDeXKSBgrO

--HG--
extra : rebase_source : 26cb13838df7a4adb6d4fe3c51f0ecf3fd2eda95
2017-04-18 18:04:45 -04:00
Ralph Giles 927fc2a00a Bug 1357119 - Include aarch64 in rustc package for builders. r=mshal
Add the aarch64-linux-android libstd to the android-cross
repackage of the upstream rust 1.16.0 stable builds.

MozReview-Commit-ID: gmZL7QCodQ

--HG--
extra : rebase_source : dc4072c3214188195aa6abda939d550df4e617d9
2017-04-18 10:24:08 -07:00
Nick Alexander 5918c2009b Bug 1254355 - Part 2: Generate AndroidManifest.xml using GENERATED_FILES. r=gps
MozReview-Commit-ID: 8McGHkPYyhI

--HG--
extra : rebase_source : 0789187e4c3a589060dcd9913f376410a390a6f7
2017-04-17 13:47:41 -07:00
Nick Alexander 7c46e515ed Bug 1254355 - Part 1: Prepare to generalize generate_build_config. r=gps
I'm taking another kick at this.  Since glandium's negative review of
older patches a year ago, generate_build_config.py landed (with your
r+, gps).  These patches extend that mechanism to generate
AndroidManifest.xml.  This sets the stage for that.

This is all in service of Bug 1355625, which will need the
generate_build_config.py extension point to do things that the
preprocessor cannot handle: generating Java code, copying resource
files, and merging resource XML declarations.

MozReview-Commit-ID: AcyC3CBMQl1

--HG--
extra : rebase_source : c379b07de4b9f9b4bfe53e6a0adac13f08a71c73
2017-04-17 13:38:24 -07:00
Michael Kaply 820e8c33db Bug 1357121 - Allow dashes and underscore in OTA distribution name. r=nalexander
MozReview-Commit-ID: 9PchGiKPGLi

--HG--
extra : rebase_source : 42360222fb3abc359d46180dc385c89a4c706cfb
2017-04-17 13:11:43 -05:00
Michael Kaply f9cb2ecf9b Bug 1359223 - Add geckoview to checkstyle and correct style issues. r=snorp
MozReview-Commit-ID: AM0bdF8dZQW

--HG--
extra : rebase_source : e6f21dafc2fa99cb1ddbac102fad8c3cbafb1516
2017-04-24 16:06:43 -05:00
Carsten "Tomcat" Book 3b4328e578 Merge mozilla-central to autoland
--HG--
extra : rebase_source : bc4cd926477775ac802f400a79f553034d569a18
2017-04-26 09:08:31 +02:00
Andrzej Hunt a1a692f7f5 Bug 1357783 - infer: Avoid CONTEXT_LEAK in stumbler r=sebastian
This solves 2 issues:
- We keep a reference to Tracker (which is implemented by a Service) forever,
  which is solved by keeping a WeakReference.
- We kept another reference to the Service by using it as a Context - we can
  avoid that by using the ApplicationContext instead.

MozReview-Commit-ID: 6UNSkZx12an

--HG--
extra : rebase_source : bfb50d02246e4377ef23179747987bc82731fd54
2017-04-18 23:18:41 -07:00
Jan Henning d8a015d07f Bug 1357579 - Correctly copy the sparse Boolean array when clearing Site Settings. r=ahunt
The checked items are stored in a *sparse* Boolean array, which we want to transform into an array (list) of the checked indices for transmission to Gecko.

The current approach doesn't do this correctly, as it iterates over all (sparse and non-sparse) items, but uses SparseBooleanArray.size() (which only counts non-sparse items) as its iteration limit. This means that we only copy the checked state of the first n items, where n is the total count of checked items.

For correctly iterating over the array to retrieve all indices that are true, we'd either have to use the largest available key (if we'd want to iterate over everything, including the sparse indices), or else use the approach chosen in this patch, namely using valueAt/keyAt in order to iterate over the internal array that's storing the values for all non-sparse indices.

MozReview-Commit-ID: FRGI4Rr0uCb

--HG--
extra : rebase_source : d9bb3a08af3a7ee2e730beb4777df30d019c922c
2017-04-21 22:53:19 +02:00
maliu 4dbe9d9e6d Bug 1358089 - [RTL] Separate xml drawable into v17 folder, r=ahunt
MozReview-Commit-ID: LaOwxXwhsHA

--HG--
extra : rebase_source : c34b558f97c52cd989668aad25d6b7f743db73f9
2017-04-24 01:16:11 +08:00
Zibi Braniecki a1a4f0b7c9 Bug 1346616 - Migrate callsites that are retrieving requested locale from pref, to use LocaleService::GetRequestedLocales. r=jfkthame,Pike
I'm adding a helper function mozILocaleService::GetRequestedLocale to simplify
most of the callsites that are looking for the first of the requested locales.

In most cases, I'm just matching the behavior of the code with reusing
LocaleService API instead of direct manipulation on the prefs.
That includes how I handle error case scenarios.

In case of sdk/l10n/locale.js I am reusing LocaleService heuristics over
the custom one from the file since the ones in LocaleService are just
more correct and unified accross the whole platform.

In case of FallbackEncoding I have to turn it into a nsIObserver to listen
to intl:requested-locales-changed.

MozReview-Commit-ID: 7rOr2CovLK

--HG--
extra : rebase_source : 883a91b249b6953b7872bfb9a8851e8be7257c7b
2017-03-11 18:43:11 -08:00
Sebastian Hengst 7b30105d39 Backed out changeset 60d72c2dd49d (bug 1346616) for eslint failure in DirectoryLinksProvider.jsm. r=backout on a CLOSED TREE 2017-04-18 00:48:16 +02:00
Zibi Braniecki cce53c69bc Bug 1346616 - Migrate callsites that are retrieving requested locale from pref, to use LocaleService::GetRequestedLocales. r=jfkthame,Pike
I'm adding a helper function mozILocaleService::GetRequestedLocale to simplify
most of the callsites that are looking for the first of the requested locales.

In most cases, I'm just matching the behavior of the code with reusing
LocaleService API instead of direct manipulation on the prefs.
That includes how I handle error case scenarios.

In case of sdk/l10n/locale.js I am reusing LocaleService heuristics over
the custom one from the file since the ones in LocaleService are just
more correct and unified accross the whole platform.

In case of FallbackEncoding I have to turn it into a nsIObserver to listen
to intl:requested-locales-changed.

MozReview-Commit-ID: 7rOr2CovLK

--HG--
extra : rebase_source : 2f166cf1746f389a035f7cf557edcadeacb10fa0
2017-03-11 18:43:11 -08:00
Sebastian Hengst 5a100ecb59 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-04-17 16:32:14 +02:00
Nevin Chen 5067faea40 Bug 1352004 - Fix doorhangers missing background. r=sebastian
MozReview-Commit-ID: 6vrY17fYXD6

--HG--
extra : rebase_source : 50e972ac1dc75a20b76bcc36c99af605b7ee735f
2017-04-10 18:13:47 +08:00
maliu cdc8b14c86 Bug 1354973 - Remove view before add to new ViewGroup, r=sebastian
MozReview-Commit-ID: 1Xdlbss6SVO

--HG--
extra : rebase_source : 7ad0e35d111fd5fbe9e5a93d0151ff5acfc18fc2
2017-04-10 11:48:59 +08:00
John Lin 760bdfdd3f Bug 1353459 - handle queueInputBuffer exceptions. r=esawin
MozReview-Commit-ID: 1Tm0vcl3Uv7

--HG--
extra : rebase_source : 9ff8ab441ebe6e4348edd7d0ac2a129f8e3d7311
2017-04-11 16:26:12 +08:00
Florian Queze 4c6a68d1c9 Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj. 2017-04-14 18:29:12 +02:00
Kris Maglione 2f577ad88b Bug 1317697: Follow-up: Fix android test bustage. r=me
MozReview-Commit-ID: 4bFu0pPMZim
2017-04-14 19:28:53 -07:00
Ted Mielczarek adf4bd2737 bug 1354048 - update sccache to rev 7a3847276d05deb564cb84a16b8c551b690aaa3e. r=mshal
MozReview-Commit-ID: C7o9uRGAeqd

--HG--
extra : rebase_source : a432ff8bba31d3d33afe45d4a5d613a294106533
2017-04-10 06:55:15 -04:00
Wes Kocher 5cba60441b Merge m-c to inbound, a=merge
MozReview-Commit-ID: HfJqvXF2Ux7
2017-04-20 15:55:31 -07:00
Randall Barker a606cd8b60 Bug 1335895 - Android GeckoView Dynamic Toolbar Version 3 r=botond,dvander,jchen,kats
This version of the Dynamic Toolbar moves the animation of the toolbar
from the Android UI thread to the compositor thread. All animation for
showing and hiding the toolbar are done with the compositor and a static
snapshot of the real toolbar.

MozReview-Commit-ID: BCe8zpbkWQt
2017-04-20 15:15:14 -07:00
Honza Bambas 0504ed64c3 Bug 1319111 - Exposing URI to make security check against on LoadInfo (no LOAD_REPLACE flag). r=bz 2017-01-27 19:10:01 +01:00
Shane Caraveo 13b87e3cd9 Bug 1336908 implement management APIs needed for theme management, r=aswan
MozReview-Commit-ID: 8tZpCE3nXGr

--HG--
extra : rebase_source : 17bb24f0c6954f3e81062e86e18ec63284c9c64f
2017-05-04 11:40:02 -07:00
Sebastian Hengst 7434338cd5 Backed out changeset 6fa5520670a3 (bug 1357639) for frequently failing testAudioFocus on Android. r=backout on a CLOSED TREE 2017-05-04 21:26:09 +02:00
Sebastian Hengst 25cd21ebd9 Backed out changeset 608cca1e6059 (bug 1357639) 2017-05-04 21:24:07 +02:00
Sebastian Hengst 3889a3ef1e Backed out changeset 090286c03592 (bug 1357639) 2017-05-04 21:24:03 +02:00
Sebastian Hengst 7cf3db848a Backed out changeset 3c76fdbce387 (bug 1357639) 2017-05-04 21:23:59 +02:00
Sebastian Hengst 75b8bf5e70 Backed out changeset adcc6f84e6c2 (bug 1357639) 2017-05-04 21:23:55 +02:00
Sebastian Hengst 3abc9a12fb Backed out changeset 6f192315ba79 (bug 1357639) 2017-05-04 21:23:50 +02:00
Sebastian Hengst 7b1aa1ce07 Backed out changeset 3cf46eb1a111 (bug 1357639) 2017-05-04 21:23:46 +02:00
Sebastian Hengst d01f64daea Backed out changeset 7ded779bd7fc (bug 1357639) 2017-05-04 21:23:42 +02:00
James Cheng ac2dea5b4f Bug 1360626 - Create a blacklist for adaptive playback support. r=jolin
On some devices / os combinations, enabling adaptive playback causes decoded frame unusable.
It may cause the decode frame to be black and white or return tiled frames.
So we should do the blacklist according to the report.

MozReview-Commit-ID: j3PZXTtkXG

--HG--
extra : transplant_source : %B0%13%F9%D8i%06d%7B%E3%D7%B1%95%BCCV%DF%D4%EF%93%E7
2017-05-03 13:49:23 +08:00
Alastor Wu 8c7f357d42 Bug 1357639 - part8 : add annotiation @RobocopTarget. r=sebastian
To make sure these functions can be used in robocop test.

MozReview-Commit-ID: KPAKOrg5Ows

--HG--
extra : rebase_source : cb21f8dc19fb9368f789d46d38ed46ad2b916df1
2017-05-04 15:24:00 +08:00
Alastor Wu 337b087df8 Bug 1357639 - part7 : add check for notification's content. r=sebastian
Add check for media notification's small icon, title and content text.

MozReview-Commit-ID: AOhag8gQVqs

--HG--
extra : rebase_source : 95ba0378056c997855af0d0dceffed7dbdb90f03
2017-05-04 15:23:56 +08:00
Alastor Wu 3e170812fe Bug 1357639 - part6 : list all test tasks in the ctor. r=sebastian
It's easy to know what test tasks we'll run in this test.

MozReview-Commit-ID: DdtFp4pOXlC

--HG--
extra : rebase_source : 3618c4fe0037b16fb6e8727c1523d9121732a61a
2017-05-04 15:23:50 +08:00
Alastor Wu 8ac7ff6fae Bug 1357639 - part5 : create new type test class for media playback. r=sebastian
Create new test class for reducing the redundant code and can provide more
flexibility for adding new related test in the future.

MozReview-Commit-ID: 2f3O8vfHo12

--HG--
extra : rebase_source : 6b503816d9ac75d9269d8f81b2dad300bf1e9702
2017-05-04 15:22:40 +08:00
Alastor Wu d35138575d Bug 1357639 - part4 : add Fennec test for media control and audio focus. r=sebastian
Add robocop tests and mochitest chrome.

MozReview-Commit-ID: JofkKRSNdB5

--HG--
extra : rebase_source : 9e2aa8c39a5392127035b958f6e417110a17b383
2017-05-04 15:22:35 +08:00
Alastor Wu 50e1e92114 Bug 1357639 - part3 : change audio focus state before notifying observers. r=sebastian
Notify observer might cause the method (notifyStoppedPlaying) is called by C++ side,
and we should change our internal state before calling the method.

MozReview-Commit-ID: 5xNXhGmAIrR

--HG--
extra : rebase_source : c13943e717fe28b24a1bc6a83c9e6ac18b37eb9d
2017-05-04 15:19:44 +08:00
Alastor Wu f442b3e688 Bug 1357639 - part2 : use enum for audio focus states. r=sebastian
MozReview-Commit-ID: KE6QuuF8xWm

--HG--
extra : rebase_source : e8e89767da6992e71c87c3307372e10428287280
2017-05-04 15:19:41 +08:00
Alastor Wu bd089dc3c6 Bug 1357639 - part1 : change tab's media playing state when the tab is controlled by media control. r=sebastian
MozReview-Commit-ID: 7CNbMdCJT3K

--HG--
extra : rebase_source : 9bbbe072e3970a27d8d581bd8c06164d1ca78c8c
2017-05-04 15:19:39 +08:00
Kris Maglione b13ea15e1c Bug 1317697: Remove things from ExtensionUtils that don't belong there. r=mixedpuppy
MozReview-Commit-ID: CTX0TckLqoV

--HG--
extra : rebase_source : ebea9b6f0f17a29d331851a08e025cbd04f4d02b
extra : absorb_source : 70b120f39e9307c4b2ef66d8e776e8b832b4aab8
2017-04-07 13:39:06 -07:00
Kris Maglione e1feed9d51 Bug 1317697: Split ExtensionContent.jsm into a stub process script. r=mixedpuppy
MozReview-Commit-ID: 4vn0ERZiBQd

--HG--
rename : toolkit/components/extensions/ExtensionContent.jsm => toolkit/components/extensions/extension-process-script.js
extra : rebase_source : cc473732c152fa2ac47202a8c5634e4a68a30763
extra : absorb_source : 4a9b52534bee64e907e61f3bb229b0ad7849c097
2017-04-14 17:00:51 -07:00
Florian Queze f935ddc4b3 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Florian Queze 37f2343b9a Bug 1356569 - Remove appendElement's last parameter when it is false, r=jaws. 2017-04-14 21:51:39 +02:00
Florian Queze 37ff4fc7cc Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst 159215e6f4 Backed out changeset 18d45aa984d6 (bug 1355161) 2017-04-14 23:39:23 +02:00
Sebastian Hengst a07223d699 Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Sebastian Hengst 9e0ecf32c5 Backed out changeset e1f191aad863 (bug 1356569) 2017-04-14 23:39:17 +02:00
Sebastian Hengst 738d097aae Backed out changeset 55f3df15eaa6 (bug 1356569) 2017-04-14 23:39:17 +02:00
James Willcox 4e6674fd79 Bug 1353185 - Convert GeckoViewExample to use singleTop launch mode r=jchen
MozReview-Commit-ID: Fd3eYNxVQWp
2017-04-14 16:19:38 -05:00
Florian Queze 3c564a2b02 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Florian Queze 93a734a3ce Bug 1356569 - Remove appendElement's last parameter when it is false, r=jaws. 2017-04-14 21:51:39 +02:00
Florian Queze 95d4d20c17 Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Florian Queze a363fb8c8b Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj. 2017-04-14 18:29:12 +02:00
Iris Hsiao 93edef392b merge autoland to mozilla-central a=merge 2017-04-14 17:09:58 +08:00
Michael Kaply 77f4745af9 Bug 1355870 - Allow a system preference to determine distribution dir. r=nalexander
--HG--
extra : amend_source : 821fda9a805d50fd85c11e43962764efb9711b94
2017-04-13 20:04:41 -05:00
Eugen Sawin 0b1bae9e19 Bug 1355542 - [2.0] Remove unused web progress callbacks and add missing progress filters. r=felipe 2017-04-13 23:20:17 +02:00
Eugen Sawin f6e5f80eca Bug 1351169 - [1.2] Update GeckoView's state after finishing window reattachment. r=jchen 2017-04-13 18:08:15 +02:00
Wes Kocher 20dd5f52c2 Merge m-c to autoland, a=merge 2017-04-13 17:35:34 -07:00
Wes Kocher 2986c817dc Merge autoland to central, a=merge CLOSED TREE 2017-04-12 15:13:30 -07:00
Wes Kocher 25d50f2c30 Merge inbound to central, a=merge 2017-04-12 14:39:09 -07:00
Nick Alexander 84711dd47a Bug 1320310 - Post-process Gradle-produced Android manifest. r=sebastian
Layer on the hacks!  This:

1) Reinstates the <activity-alias android:name=".App"> that we have in
   the moz.build produced Android manifest.  I found no way to do this
   using placeholders or the manifest merger.

2) Culls manifest entries provided by
   com.google.android.gms.measurement.  We know they're not necessary,
   since they're not present in the existing Fennec Android manifest.

These are strictly workarounds to avoid doing the real work of fixing
the issues.  To fix 1), we'd need to migrate all existing users with
homescreen shortcuts to .App.  This could be difficult, especially if
partners have deployed packages out of our update control.  To fix 2),
we'll need to upgrade our Google Play Services to at least version
9.0.0 and then use the finer-grained AAR dependencies to not build
with the measurement split at all.

MozReview-Commit-ID: 21CaZ2KMeIa

--HG--
extra : rebase_source : c9aff7c414c13843c4e54267c95941fa35bc1001
2017-04-11 20:49:05 -07:00
Sebastian Kaspari 45e3a6ae50 Bug 1272354 - Add in-tree documentation of DLC telemetry. r=Grisha,liuche
MozReview-Commit-ID: 9loqkU6U202

--HG--
extra : rebase_source : 53f609b91a31a4394317f05513b85bb6978707db
2017-04-03 17:22:09 +02:00
Sebastian Kaspari 7b05e2f73e Bug 1272354 - (DLC) Sync Action: Add telemetry to track sync success/failure. r=Grisha
MozReview-Commit-ID: A74A4pc9anK

--HG--
extra : rebase_source : 97233e90eb5fd270f52e70205d8e12ed98d64473
2017-04-03 16:46:43 +02:00
Sebastian Kaspari a813890ad6 Bug 1272354 - (DLC) Download Action: Add telemetry to track download success/failure. r=Grisha
MozReview-Commit-ID: CKDfodx3moX

--HG--
extra : rebase_source : b310e13183099545e8a11fdaffc5af030b56ccea
2017-04-03 16:13:30 +02:00
Sebastian Kaspari c29bfcf52d Bug 1272354 - (DLC) DownloadAction: Move network checks inside download loop. r=Grisha
This has two advantages:
* If the network changes while we are downloading content then we do not continue on an metered network.
* When adding telemetry in one of the next patches then we can report which kind of content we did not
  download.

MozReview-Commit-ID: 80QzSRyCArr

--HG--
extra : rebase_source : ff902c57e36cc5eadaef075410635aa07671c353
2017-04-03 15:03:12 +02:00
Sebastian Kaspari 40b9230468 Bug 1272354 - (DLC) Download Action: If there's no download scheduled then exit early. r=Grisha
There's no need to run all other checks if there's nothing scheduled to be downloaded (anymore). In later
patches we want to report error states to our telemetry system and there's no need to report "no network"
errors if we are not going to download anything anyways.

MozReview-Commit-ID: K4bxbM3ptvZ

--HG--
extra : rebase_source : 22c8d9ff3f10e76d25362332232f9eb0e65e0e14
2017-04-03 16:27:36 +02:00
Sebastian Hengst c0edbd9dfe Backed out changeset 364265dfdf2c (bug 1320310) for gradle related failures. r=backout 2017-04-12 18:22:14 +02:00
Dylan Roeh 739267098f Bug 1322575 - Add private mode support to GeckoView. r=jchen,esawin 2017-04-11 16:53:20 -05:00
Geoff Brown abafee3fd0 Bug 1332084 - Pass correct activity to GeckoProfile for geckoview_example; r=snorp 2017-04-11 09:21:41 -06:00
Joel Maher ad58b77441 Bug 1350473 - add BUG_COMPONENT to mobile/* files. r=snorp
MozReview-Commit-ID: HkWLIVAaciF
2017-04-11 09:47:28 -04:00
Carsten "Tomcat" Book ee9da45454 merge mozilla-inbound to mozilla-central a=merge 2017-04-11 10:17:24 +02:00
Delphine Lebédel f57449f813 Bug 1355190 - Add "bg" and "kab" in Fennec maemo-locale for multi-locale builds. r=flod 2017-04-10 12:51:00 -04:00
Wes Kocher 5eabc03c18 Merge m-c to autoland a=merge 2017-04-10 16:55:21 -07:00
Wes Kocher 05965b79a9 Merge inbound to central, a=merge 2017-04-10 16:32:45 -07:00
Nevin Chen dd501f0813 Bug 1351556 - Collect information on the number of users using PWA. r=sebastian
MozReview-Commit-ID: CyVFQUtd5Aw

--HG--
extra : rebase_source : e492066e30875e444b7f0d93a38421a22034cb24
2017-04-06 17:29:53 +08:00
Nitish e10438f0c6 Bug 1348415 - Use present tense for method names and remove redundant public modifiers for GeckoView interface method names r=jchen
MozReview-Commit-ID: 3B82Gn7yBzZ

--HG--
extra : rebase_source : 4d0c6e0e7a43ed2cc3fa67d447e6ce960887743a
2017-03-18 12:56:00 +05:30
Julian_Chu df7a052083 Bug 1348718 - Remove useless method r=sebastian
No need to export text primary color anymore.

MozReview-Commit-ID: 3SgJMviTcB5

--HG--
extra : rebase_source : 83c336797afe5400c98c3697316a626a7fefc27c
2017-04-07 14:23:34 +08:00
Julian_Chu d698f2cfc7 Bug 1348718 - Build option menu button in same way r=sebastian
There might be up to 2 Always-show-as-action button in ActionBar.
One for menu-options, one for 3rd-party app action-button, if any.

According to our design spec, the two buttons appearance should be
similiar, therefore now we create them by same method.

MozReview-Commit-ID: GPVteQR3hxr

--HG--
extra : rebase_source : f03b2dcda5864221abe301d1b1ce8f8c1c38752d
2017-04-07 13:03:57 +08:00
Julian_Chu da67ae40c0 Bug 1348718 - Use cross icon as close button r=sebastian
Move this change to ActionBarPresenter. Use cross icon as close button
to match design spec.

MozReview-Commit-ID: JgUcKp7p7Bc

--HG--
extra : rebase_source : 8350b2d8684cd967cb7463949017c26db4ef1782
2017-04-05 18:54:22 +08:00
Jim Chen 0a9bd728a5 Bug 1352855 - Follow-up to fix bustage; r=me 2017-04-09 00:48:15 -04:00
Jim Chen 9f96ba75cd Bug 1352855 - Only compile AIDL interfaces; r=nalexander
.aidl files can contain interfaces or parcelables. Interfaces should be
compiled through the aidl tool but parcelables should not. Explicitly
list the AIDL interfaces for Fennec, so we only compile the interfaces
but not the parcelables.
2017-04-08 22:45:51 -04:00
nechen 0d3eb5bf8e Bug 1293713 - Make new tab action respect HomePage preference. r=mkaply,sebastian
MozReview-Commit-ID: 9N7tLrr20nv

--HG--
extra : rebase_source : 6e7fb9e34be3ab689119bbed3c9382dd8d87a8c9
2017-03-13 16:13:18 +08:00
Dale Harvey c5ff9ba7e2 Bug 1353714 - Only setTaskDescription on supported android. r=janh 2017-04-07 16:43:12 +01:00
Carsten "Tomcat" Book 3a762886de Merge mozilla-central to mozilla-inbound 2017-04-07 15:33:03 +02:00
Phil Ringnalda 8ff3505864 Merge m-c to a CLOSED TREE m-i 2017-04-06 21:16:43 -07:00
Michael Kaply 9481816e2f Bug 1324045 - Workaround duplicate search files. r=aki, a=release 2017-04-06 19:49:46 -05:00
James Willcox f3a9ed209e Bug 1353185 - Open the passed-in URI in GeckoViewExample, if any r=jchen
MozReview-Commit-ID: Hv3IVuBvhw2
2017-04-06 20:41:34 -05:00
Wes Kocher 7da1f4c235 Merge m-c to inbound a=merge 2017-04-06 15:30:43 -07:00
Tom Klein 89477640e6 Bug 1350718 - Post: Name the special value -1 used to indicate a new tab should be appended. r=maliu
MozReview-Commit-ID: 7r8cHItW4wG

--HG--
extra : rebase_source : b7ea5736f706a126f553d6c2eddc314ee4f5f011
2017-04-06 11:27:42 -05:00
Tom Klein 69608d9657 Bug 1350718 - 2. Remove the add animation for the TabsLayout list. r=maliu
Based on what I'm seeing, if you call scrollToPosition and that causes you to
"scroll into view" (remember, scrollToPosition doesn't actually scroll, it just
redraws the new position) one or more positions, then RecyclerView runs the add
animation on all those views "scrolled onto screen", which, for the list view's
slide-in-from-the-right add animation, looks silly (I think).  [Caveat:
RecyclerView sometimes keeps one offscreen view ready to go, which doesn't seem
to get the add animation.]

In non open-tab-from-another-app-with-the-tabs-tray-already-open operations this
was never an issue because either those animations are hidden by the panel being
animated into view when the panel opens and we scroll to the selected position
[at least that's my guess], or we only scroll by at most one, as in the case of
a tab close or undo close.  But in the
open-a-tab-and-scroll-to-it-while-the-tabs-tray-is-already-open case that we can
get with opening a tab from another app, the add animation runs for however many
tabs "need to be added" between the current position and the new tab; sometimes
the animation still gets hidden if the new tabs get added quickly enough when
fennec reloads [again, my guess], but on my device I always see the animations
if I open a tab in tab queue and then reopen Fennec by hand, whereas on an
emulator I see the animations in additional external-app-open cases as well.

MozReview-Commit-ID: J3x0bBLPNyz

--HG--
extra : rebase_source : 9ee77d395e452e50f958c6c096167704cbe37795
extra : source : f03ab10a14245f2cd8c71130cb677cb8bf1a31db
2017-03-30 23:16:19 -05:00
Tom Klein df34e9b5f7 Bug 1350718 - 1. Scroll to a tab added to the tabs tray by an external app. r=maliu
If another app opens a link in Fennec, and Fennec restores itself in a state
where the tabs tray is already open, we need to scroll to the newly added tab
since it gets added offscreen (not to mention the scroll position restored when
we open is unconstrained (it's whatever the user left it at before they switched
apps)).

This introduces one small change in behavior:
1) Use a gridded tabs tray;
2) Fill more tabs than will fit in the tray;
3) Put more than one tab on the last row;
4) Scroll so that the last row is partially, but not fully, hidden;
5) Close the last tab and then undo the close.
In that case we now scroll the last row fully into view, whereas previously we
maintained the old (partially hidden) scroll position.  (If you undo close any
tab other than the last on the final row then you still get the old behavior.)

Note that this fixes the case where the other app adds a *new* tab in Fennec
with the tabs tray open; it's (currently) also possible to open a link in an
already existing tab with the tabs tray open - that's bug 1353226.

MozReview-Commit-ID: BazXFwT0B8v

--HG--
extra : rebase_source : c5fe91793b90f22dfeea0d05fd8730906d0ccdbe
extra : source : 3c5cea45aec424bee4043cd7d362e80aff9a491d
2017-03-28 11:29:52 -05:00
Phil Ringnalda a019d1dc09 Merge m-c to a CLOSED TREE autoland 2017-04-06 21:17:34 -07:00
Julian_Chu de37c829c1 Bug 1351605 - update action bar when restoring r=sebastian
If the activity is restoring, onTabChanged might not be called.
To update title from existing Tab data in onResume.

MozReview-Commit-ID: 3LqQ6HDh7Dc

--HG--
extra : rebase_source : 1dd49658642be420d54d6a8e2d8c33e7658b0f2e
2017-04-06 17:02:17 +08:00
Julian_Chu e270fdb527 Bug 1351605 - Get rid of color variable in activity r=sebastian
Now we can get toolbar color from intent directly, and the intent will
be stored in `onSavedInstanceState`. Let's get rid of the local
variable.

MozReview-Commit-ID: OsqwgFJctH

--HG--
extra : rebase_source : a5cd688de88de564739481f77fe514bdeffd6c0e
2017-04-06 12:54:33 +08:00
Julian_Chu e87fa62937 Bug 1351605 - store start-intent in activity r=sebastian
`getIntent()` not always returns the intent whith start this Activity
due to GeckoApp.onCreate reset it. We make a copy here in case of this
activity is destroyed and re-created.

MozReview-Commit-ID: 7TF3b1WdbM2

--HG--
extra : rebase_source : 60bab715166fd01b1fc89ca149e7f5a0f94e6bd1
2017-04-06 11:40:04 +08:00
Michael Kaply 2f9dabec2b Bug 1348412 - Add dist specific menu for set as homepage. r=snorp
MozReview-Commit-ID: 1ipDDs4ZVAm

--HG--
extra : rebase_source : 11bbb2c591ac518a3bd7492d1988fba3639dea13
2017-03-27 17:05:22 -05:00
Tomislav Jovanovic 357f3dea5b Bug 1328758 - Better error messages for tabs.executeScript r=kmag
MozReview-Commit-ID: PQhltZVepj

--HG--
extra : rebase_source : 1e18dc65864bcc715436a3ff003d2279a6e7b087
2017-04-02 01:05:37 +02:00
John Lin ab9060d531 Bug 1349883 - part 3: resolve decode promise according to buffer status. r=jya
MozReview-Commit-ID: JwOOi56t30Y

--HG--
extra : rebase_source : 48f0cc0bfde3f84cc0574c5a5da6c738112c843f
2017-04-07 17:07:02 +08:00
John Lin bef936525f Bug 1349883 - part 2: reveal more input buffer status to callbacks. r=esawin,jya
Promise based MediaDataDecoder expects one response per request, but ICodecCallbacks was not designed that way. onInputExhausted() is called only when there are none or just a few input buffers waiting to be queued, and onOutput() is called as soon as output buffers are available. It means these 2 kinds of events are usually interleaved and hard to align with pending promises. Reporting each input buffer status makes it easier for RemoteDataDecoder to resolve promise properly.

MozReview-Commit-ID: K09txmHTtmX

--HG--
extra : rebase_source : 9ad331c54a24eab6ce5e0195f354afce52247572
2017-04-06 16:37:08 +08:00
John Lin d1e7871c6f Bug 1349883 - part 1: combine output buffer index and sample records. r=esawin,jya,snorp
MozReview-Commit-ID: 7yWMkgjOtQB

--HG--
extra : rebase_source : a6f294221b846dc1ad4309e767647ad888ce3c27
2017-04-06 15:23:47 +08:00
Iris Hsiao 05ad633169 Merge mozilla-central to autoland
--HG--
extra : rebase_source : 191c554cc14a76f0df547033c99e201d1ce7d915
2017-04-12 11:18:49 +08:00
Tom Klein 0a9827ccd3 Bug 1337947 - Fix tab strip item offsets for RTL. r=maliu
MozReview-Commit-ID: HrOETozOSfW

--HG--
extra : rebase_source : e051b92d9b3b5105fe9a054b667b2334180e938f
2017-04-10 09:16:14 -05:00
Tom Klein 6e7d85d68f Bug 1337947 - Fix tab strip divider drawing for RTL. r=maliu
MozReview-Commit-ID: LITy483QhlW

--HG--
extra : rebase_source : ccc014bf0d4241611dc0ce962337b03dd65cfd7c
2017-04-07 00:50:24 -05:00
James Willcox 73834c3e23 Bug 1322029 - Disallow installing Fennec to external storage r=jchen
MozReview-Commit-ID: Kv0iShdPgFT
2017-04-06 15:30:28 -05:00
James Willcox 224324d56d Bug 1344347 - Move Android out-of-process decoder service into GeckoView r=jolin
MozReview-Commit-ID: QTnp95uhQV


--HG--
rename : mobile/android/base/aidl/org/mozilla/gecko/media/FormatParam.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/FormatParam.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/ICodec.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/ICodec.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/ICodecCallbacks.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/ICodecCallbacks.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/IMediaDrmBridge.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/IMediaDrmBridge.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/IMediaDrmBridgeCallbacks.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/IMediaDrmBridgeCallbacks.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/IMediaManager.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/IMediaManager.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/Sample.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/Sample.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/SessionKeyInfo.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/SessionKeyInfo.aidl
rename : mobile/android/base/java/org/mozilla/gecko/media/AsyncCodec.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/AsyncCodec.java
rename : mobile/android/base/java/org/mozilla/gecko/media/AsyncCodecFactory.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/AsyncCodecFactory.java
rename : mobile/android/base/java/org/mozilla/gecko/media/Codec.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/Codec.java
rename : mobile/android/base/java/org/mozilla/gecko/media/CodecProxy.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/CodecProxy.java
rename : mobile/android/base/java/org/mozilla/gecko/media/FormatParam.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/FormatParam.java
rename : mobile/android/base/java/org/mozilla/gecko/media/GeckoMediaDrm.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/GeckoMediaDrm.java
rename : mobile/android/base/java/org/mozilla/gecko/media/GeckoMediaDrmBridgeV21.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/GeckoMediaDrmBridgeV21.java
rename : mobile/android/base/java/org/mozilla/gecko/media/GeckoMediaDrmBridgeV23.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/GeckoMediaDrmBridgeV23.java
rename : mobile/android/base/java/org/mozilla/gecko/media/JellyBeanAsyncCodec.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/JellyBeanAsyncCodec.java
rename : mobile/android/base/java/org/mozilla/gecko/media/MediaDrmProxy.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/MediaDrmProxy.java
rename : mobile/android/base/java/org/mozilla/gecko/media/MediaManager.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/MediaManager.java
rename : mobile/android/base/java/org/mozilla/gecko/media/RemoteMediaDrmBridge.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/RemoteMediaDrmBridge.java
rename : mobile/android/base/java/org/mozilla/gecko/media/RemoteMediaDrmBridgeStub.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/RemoteMediaDrmBridgeStub.java
rename : mobile/android/base/java/org/mozilla/gecko/media/SamplePool.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/SamplePool.java
rename : mobile/android/base/java/org/mozilla/gecko/media/SessionKeyInfo.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/SessionKeyInfo.java
rename : mobile/android/base/java/org/mozilla/gecko/mozglue/SharedMemory.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/mozglue/SharedMemory.java
2017-04-06 14:32:58 -05:00
Carsten "Tomcat" Book 207b516e89 merge mozilla-inbound to mozilla-central a=merge 2017-04-06 12:50:50 +02:00
Nevin Chen 6c08675945 Bug 1351555 - PWA Collect information on the number of progressive web apps added to homescreen. r=sebastian
MozReview-Commit-ID: FYZUtNut0Hv

--HG--
extra : rebase_source : a461ebf613e0cda35d5d8c9b23a014e8bf9fb201
2017-04-05 18:04:57 +08:00
Francesco Lodolo (:flod) be31bc374d Bug 1353507 - Add all Aurora active locales to single-locale and multi-locale Fennec nightly builds r=Pike
MozReview-Commit-ID: 1nWZ630rRcl

--HG--
extra : rebase_source : d7deca712657f1c8363d19eff592c13a0dc7002c
2017-04-04 22:07:18 +02:00
Carsten "Tomcat" Book 7a670cdd01 merge mozilla-inbound to mozilla-central a=merge 2017-04-05 14:33:35 +02:00
maliu 65604a4152 Bug 1353001 - Fallback invoke ContentResolver.query without CancellationSignal, r=sebastian
MozReview-Commit-ID: 7d3lxiWs3uP

--HG--
extra : rebase_source : bb610154148bf9377bdfc1448018d651130f81b9
2017-04-03 21:50:55 +08:00
Grigory Kruglov 626ce95975 Bug 1350442 - Remove redundant storeDone from the RepositorySession class r=rnewman
Confusion between storeDone() and storeDone(long end) resulted in certain sessions (bookmarks
and form history) not overriding the current method. As a result, their final "flush the queue"
methods weren't being called by the buffering middleware.

This patch removes the storeDone(long end) method, making such confusion a non-issue.

Given that a lot of sessions tend to build up buffers which they need to then flush after a storeDone()
call, passing in a timestamp into that method doesn't make sense. Instead, let's supply a default
implementation in RepositorySession which calls onStoreCompleted(endTimestamp) with current time,
and allow sessions to override this method and own the onStoreCompleted(endTimestamp) call.

MozReview-Commit-ID: 84o7aAL8RPC

--HG--
extra : rebase_source : 41767ad502bd5ad8a0a487235bfdca8cf0d0c927
2017-03-31 19:00:13 -04:00
Grigory Kruglov 9d248590c8 Bug 1350442 - Use the main storeWorkQueue for failures in the buffering middleware r=rnewman
MozReview-Commit-ID: ByZtR5zSKZB

--HG--
extra : rebase_source : 9cef0ba0c76e0ef11a32585f1c73508f87337a02
2017-04-04 17:15:02 -04:00
Nick Alexander f0ae8d607b Bug 1353055 - Strip 'vars' debugging information when building Fennec --with-gradle. r=ahunt
To observe the difference, use `javap -l`.  For example, for
automationRelease and automationDebug built with `./mach gradle clean
app:assembleAutomationRelease app:assembleAutomationDebug`, I see
locally:

$ javap -l objdir-droid/gradle/build/mobile/android/app/intermediates/classes/automation/release/org/mozilla/gecko/home/activitystream/menu/ActivityStreamContextMenu\$1.class
Compiled from "ActivityStreamContextMenu.java"
class org.mozilla.gecko.home.activitystream.menu.ActivityStreamContextMenu$1 extends org.mozilla.gecko.util.UIAsyncTask$WithoutParams<java.lang.Boolean> {
  final android.view.MenuItem val$bookmarkItem;

  final org.mozilla.gecko.home.activitystream.menu.ActivityStreamContextMenu this$0;

  org.mozilla.gecko.home.activitystream.menu.ActivityStreamContextMenu$1(org.mozilla.gecko.home.activitystream.menu.ActivityStreamContextMenu, android.os.Handler, android.view.MenuItem);
    LineNumberTable:
      line 103: 0

  <snip>
}

$ javap -l objdir-droid/gradle/build/mobile/android/app/intermediates/classes/automation/debug/org/mozilla/gecko/home/activitystream/menu/ActivityStreamContextMenu\$1.class
Compiled from "ActivityStreamContextMenu.java"
class org.mozilla.gecko.home.activitystream.menu.ActivityStreamContextMenu$1 extends org.mozilla.gecko.util.UIAsyncTask$WithoutParams<java.lang.Boolean> {
  final android.view.MenuItem val$bookmarkItem;

  final org.mozilla.gecko.home.activitystream.menu.ActivityStreamContextMenu this$0;

  org.mozilla.gecko.home.activitystream.menu.ActivityStreamContextMenu$1(org.mozilla.gecko.home.activitystream.menu.ActivityStreamContextMenu, android.os.Handler, android.view.MenuItem);
    LineNumberTable:
      line 103: 0
    LocalVariableTable:
      Start  Length  Slot  Name   Signature
          0      16     0  this   Lorg/mozilla/gecko/home/activitystream/menu/ActivityStreamContextMenu$1;
          0      16     1 this$0   Lorg/mozilla/gecko/home/activitystream/menu/ActivityStreamContextMenu;
          0      16     2    x0   Landroid/os/Handler;

  <snip>
}

MozReview-Commit-ID: 3HmiGkHhowQ

--HG--
extra : rebase_source : c84d8d4b8ac813e49db0c61a30c7098ff2eae3f4
2017-04-03 13:41:11 -07:00
Grigory Kruglov 2a7dc44081 Bug 1343726 - Ensure that bookmark folders are processed first by the uploader r=rnewman
Since we're uploading records atomically, order in which they're processed by the uploader
only matters if we want to do sanity checks on certain types of records. Server might still
preserve some of the order, but for our purposes here it shouldn't matter.

We'd like to ensure that we process the "mobile root" bookmark record along with other folder
records first, so that we increase our chances of avoiding making a failing network request if
that those records' payload is too large.

Sorting by bookmark type achieves this.

MozReview-Commit-ID: KrAs3zepaOk

--HG--
extra : rebase_source : 24f1d3d6aa2ee3b6777dc38abdd1e01aba5213c2
2017-03-15 14:12:13 -07:00
Grigory Kruglov b7266cbba2 Bug 1343726 - Respect max_record_payload_bytes limit while uploading records r=rnewman
If we try to upload a record whose payload BSO field is larger than the limit specified
by the server, fail that record during BatchingUploader's processing.

Consequently, Synchronizer will fail current sync stage and advance to the next.

Previous behaviour was to essentially rely on the server to fail our POST request,
at which point we'll fail current sync stage. So in a way, this is an optimization to
avoid making network requests which we know will fail.

MozReview-Commit-ID: 5aJRRNoUuXe

--HG--
extra : rebase_source : 18920cfe7b7599be1984c53ebc0c9897c98fb7d9
2017-03-15 13:51:31 -07:00
Eugen Sawin 717669fcad Bug 1352534 - [2.0] Add Vim autoformat style hints. r=jchen 2017-04-05 01:17:28 +02:00
Eugen Sawin 2b30df194c Bug 1352534 - [1.3] Allow for mupltiple native queues and assign a unique queue per GeckoView. r=jchen 2017-04-05 01:17:28 +02:00
Wes Kocher c19b596225 Merge m-c to autoland, a=merge 2017-04-03 14:51:25 -07:00
Wes Kocher 53dde6a1d2 Merge inbound to central, a=merge 2017-04-03 14:50:18 -07:00
Dale Harvey 4514045d96 Bug 1352099 - Ensure manifest can be read on resume. r=sebastian 2017-04-03 14:26:17 +01:00
Dale Harvey c3024a1b20 Bug 1352726 - Ensure missing fields dont halt theming. r=sebastian 2017-04-03 14:26:03 +01:00
Kris Maglione 0bde08bed9 Bug 1350522: Part 3 - Convert android APIs to lazy loading. r=aswan
MozReview-Commit-ID: GaxLICqzdXz

--HG--
extra : source : 42015d3bfe49a09a28435ca3691358848c9dc2e5
2017-03-31 18:45:45 -07:00
Sebastian Hengst 990055a490 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: EjvlThqFc40
2017-04-02 18:52:13 +02:00
Sebastian Hengst 37b9c6c8e5 Bug 1324045 - Move mobile searchplugins into mozilla-central. Whitelist wikipedia-pt.xml to fix fennec nightlies. r=bustage-fix a=bustage-fix
MozReview-Commit-ID: DQn5IDdoJ3P
2017-04-02 16:08:31 +02:00
Dale Harvey f9e45a8cf7 Bug 1351834 - Give webapp tabs correct type when launched. r=janh 2017-04-01 15:23:18 +01:00
Sebastian Hengst 948595ff2f merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-04-01 13:12:04 +02:00
Sebastian Hengst 58d7b72241 Backed out changeset 42015d3bfe49 (bug 1350522) 2017-04-01 12:38:23 +02:00
Dale Harvey cb99a6a79e Bug 1337341 - Show url when navigating out the scope of pwa. r=walkingice 2017-04-01 09:34:23 +01:00
Kris Maglione f69db5c102 Bug 1350522: Part 3 - Convert android APIs to lazy loading. r=aswan
MozReview-Commit-ID: GaxLICqzdXz

--HG--
extra : rebase_source : ef8f08bbb31d16caa2f0fe464cd3c4ebb7992221
2017-03-31 18:45:45 -07:00
Wes Kocher 483fea00ef Merge inbound to central, a=merge 2017-03-31 17:48:18 -07:00
Munro Mengjue Chiang 8c7e3d6e57 Bug 1265755 - Support encoder case for CodecProxy; r=jolin
MozReview-Commit-ID: 4cEZQs8spo7

--HG--
extra : rebase_source : 33989d576cbd15194c5d740745fd5ddf35958346
2017-03-30 08:51:12 +08:00
Munro Mengjue Chiang 0d0b538b3e Bug 1265755 - separate JavaCallbacksSupport class declaration to a different header file; r=jolin
MozReview-Commit-ID: 7Vj3G47n2bu

--HG--
extra : rebase_source : 9dac50f9a4c405b2461e7f677c58beef7f634f6e
2017-03-30 08:30:23 +08:00
Francesco Lodolo (:flod) c539d3ed0f Bug 1352690 - Remove exceptions for mobile/searchplugins from filter.py r=Pike
MozReview-Commit-ID: Em6BzWM4lqn

--HG--
extra : rebase_source : db9616ec978c4563f840182236d24b5c881abeaf
2017-04-01 16:02:33 +02:00
Jan Henning a4d0b0a000 Bug 1352433 - Part 1 - Don't clear all preferences when all you need to remove is a few keys. r=sebastian
MozReview-Commit-ID: DELmDbTHNLk

--HG--
extra : rebase_source : c01a32a5db5064ffe3bf9ba9e22cb9581e13d998
2017-04-01 23:02:54 +02:00
Jan Henning 715265a62e Bug 1352433 - Part 0 - Change variable name casing for constants. r=sebastian
The shared preferences keys used for storing/retrieving the activity list data are constants, so it is a bit disconcerting to see them named like normal member variables.

MozReview-Commit-ID: GivVloU0pFv

--HG--
extra : rebase_source : e26bcabd1cdf549e8a0ee54f0e6333c76484ca24
2017-04-01 22:51:51 +02:00
Eugen Sawin fd51be56ce Bug 1346542 - [3.0] Change setState to checkAndSetState to avoid updated state override. r=me 2017-03-31 19:27:46 +02:00
Sebastian Hengst d4679cd05d Backed out changeset 15e815413234 (bug 1351980) for asserting on Android, e.g. in test_pseudoElement-get-animations.html. r=backout 2017-03-31 18:39:46 +02:00
Ehsan Akhgari a3580de587 Bug 1351980 - Initialize the UserAgentOverrides.jsm module at startup and shut it down at shutdown for all Gecko applications instead of relying on each one to do it on its own; r=schien 2017-03-31 09:54:28 -04:00
Sebastian Hengst e3bcc5dcd8 Backed out 2 changesets (bug 1351980) for asserting in Android tests, e.g. test_hc_noderemovechildnode.html. r=backout
Backed out changeset fbc8e05e5251 (bug 1351980)
Backed out changeset 1c7c92033bb1 (bug 1351980)
2017-03-31 15:38:38 +02:00
Sebastian Hengst d722cb70d6 Bug 1351980 - Initialize the UserAgentOverrides.jsm module at startup and shut it down at shutdown for all Gecko applications instead of relying on each one to do it on its own: Replace RESPATH with BINPATH to fix mobile builds. r=bustage-fix 2017-03-31 14:22:25 +02:00
Ehsan Akhgari af1cabba18 Bug 1351980 - Initialize the UserAgentOverrides.jsm module at startup and shut it down at shutdown for all Gecko applications instead of relying on each one to do it on its own; r=schien 2017-03-31 07:37:59 -04:00
Eugen Sawin 4573e30ad0 Bug 1346542 - [2.1] Fix code style. r=jchen 2017-03-31 13:12:21 +02:00
Eugen Sawin 80710c9297 Bug 1346542 - [1.2] Move state holder to GeckoView::Window and set ready state when reattaching to window. r=jchen 2017-03-31 13:12:21 +02:00
Jim Porter 60de42fd09 Bug 1222032 - Improve copy for disambiguating login update r=MattN
MozReview-Commit-ID: Ga3pybr1yGY

--HG--
extra : rebase_source : 860095960026320413a10e556cd3fa7e61889726
2017-03-16 19:14:38 -05:00
Grigory Kruglov a8810d8865 Bug 1352608 - Close a cursor after we're done with it r=eoger
Removed "final" because "safeQuery" provides terrible developer ergonomics.

MozReview-Commit-ID: 2F0XZnBM3Yv

--HG--
extra : rebase_source : 634c6f8cfc14cce8d15e2911d474086dc85c6db4
2017-03-31 20:22:06 -04:00
Wes Kocher 985bcdea84 Merge m-c to autoland, a=merge 2017-03-29 15:48:28 -07:00
Wes Kocher 8e0bc97954 Merge inbound to central, a=merge 2017-03-29 15:41:57 -07:00
Ralph Giles e734305b80 Bug 1351031 - Update builders to rust 1.16.0. r=mshal
Repacks of upstream builds.

For release notes see https://blog.rust-lang.org/2017/03/16/Rust-1.16.html or
https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1160-2017-03-16

MozReview-Commit-ID: 9dHGKGSbelG

--HG--
extra : rebase_source : 0fb93f9d7cc6e663f3c7eb662e29f4f0061244db
2017-03-27 13:39:15 -07:00
Ryan VanderMeulen f4a0d77ffc Merge inbound to m-c. a=merge 2017-03-29 09:41:54 -04:00
Nevin Chen f5182bc344 Bug 1295675 - Allow app level preferences. r=mkaply,sebastian
MozReview-Commit-ID: yv97PSkL5n

--HG--
extra : rebase_source : 6231b68a2d8e9a734f639006cf48939f3087a9aa
2017-03-23 10:57:20 +08:00
Dale Harvey 7b024ea9c8 Bug 1347605 - Ensure standalone pwa's are singletons 2017-03-29 18:44:30 +01:00
Ehsan Akhgari f2a992e41a Bug 1347425 - Part 3: Remove the site-specific user agent service; r=baku,jchen
This used to be the glue layer between DOM and Necko which is no longer
being used.
2017-03-28 22:10:53 -04:00
Grigory Kruglov 7443c95aab Bug 1350196 - Part 2: Perform PRNGFixes earlier. r=rnewman, r=nalexander
MozReview-Commit-ID: 18jnRRFhyPq

--HG--
extra : rebase_source : 703dd7ab2d67e522d36130fe1815c5d2610827de
2017-03-27 18:32:54 -07:00
Grigory Kruglov 719d2c720d Bug 1350196 - Part 1: Generate IV ourselves. r=rnewman, r=nalexander
MozReview-Commit-ID: 5rR8BQRcJoR

--HG--
extra : rebase_source : 0d474e3818f8b5abfd6c5904473cf3801a98b1cb
2017-03-27 18:40:02 -07:00
Dale Harvey f36bbc62c5 Bug 1347616 - Fall back to bookmark when manifest invalid. r=sebastian 2017-03-28 21:42:22 +01:00
Edouard Oger 466b73fea5 Bug 1346061 part 3 - Trigger a sync/email-verification-check on empty FxA push message. r=Grisha,nalexander
MozReview-Commit-ID: ABUm6LZij4M

--HG--
extra : rebase_source : 4818f95bf7dbe3f1c9891f3aeb7ade4c83d58870
2017-03-22 13:10:09 -04:00
Edouard Oger 965ba52d24 Bug 1346061 part 2 - Register device on FxA on Engaged state. r=Grisha,nalexander
MozReview-Commit-ID: 3HrXePgBxg6

--HG--
extra : rebase_source : ba6f805c4f313a8c317dd71fa34511c4544f0a54
2017-03-22 13:11:34 -04:00
Edouard Oger b2e227a8e3 Bug 1346061 part 1 - Expose getSessionToken() on State. r=Grisha,nalexander
We need to access sessionToken in the Engaged state in order to perform device
registration. We expose getSessionToken() on the base State class, to allow
customers to get the sessionToken easily instead of having to downcast the
TokensAndKeysState/Engaged states.

MozReview-Commit-ID: 8s2C350noUG

--HG--
extra : rebase_source : e0bc8bf7ebfdcb7a31bb4a6ddb5b928acf7baba9
2017-03-22 13:07:00 -04:00
Julian_Chu 351526c469 Bug 1348716 - Long click to copy URL in custom tabs r=sebastian
If user long click text area of ActionBar(URL or Title), then copy
current URL to clipboard.

MozReview-Commit-ID: EdVoMiX0Gt3

--HG--
extra : rebase_source : eecd78325162bb5c0a41436b90d0e10f5669030c
2017-03-21 11:16:28 +08:00
Jan Henning 40056ad049 Bug 1349793 - Speculatively swap history clearing test order. r=sebastian
This assumes that the observed test failure was caused by the async file delete triggered by the history sanitisation in test_sessionStoreClearTabHistory being somehow delayed long enough to only take place after we had already started test_sessionStoreClearFiles.

MozReview-Commit-ID: FenpPyb4sGZ

--HG--
extra : rebase_source : 3f14e1053b043a03aac1680ee56483243b5a4045
2017-03-25 18:36:33 +01:00
Phil Ringnalda e7905e8e6d Backed out 3 changesets (bug 1348803) for failures in audio and playback browser-chrome tests
CLOSED TREE

Backed out changeset 4ac559eea9ec (bug 1348803)
Backed out changeset 2ab6e0b8aec6 (bug 1348803)
Backed out changeset f966aef934b1 (bug 1348803)
2017-03-27 21:47:02 -07:00
Alastor Wu 7509784040 Bug 1348803 - part2 : modify event name to lower case letter. r=sebastian
Other events in browser.js are all lower case letter, also change these two to make them consistent.

MozReview-Commit-ID: LkzYUo6OrEA

--HG--
extra : rebase_source : 8b134332e32cae29a1f963e604f2507433c694b8
2017-03-28 10:58:32 +08:00
Alastor Wu 31d5fff67b Bug 1348803 - part1 : move fennec-only code to android/browser.js. r=sebastian
We could register media control related event after the tab has active media.
But we still need to register "audioFocusChange" in the beginning, because it
affect every tab even the tab has no active media.

MozReview-Commit-ID: 4pBKIR8F5tV

--HG--
extra : rebase_source : fc26c98ed7b33552b4eba5b20168394b1b1a4390
2017-03-28 10:57:50 +08:00
Tom Klein 6e212e59a3 Bug 1337933 - Make the tabs grid layout decorations work with RTL. r=maliu
This patch affects all grided tabs panel layouts: tablets, phones in landscape
mode, and phones in portrait mode with the "Compact tabs" setting on.

MozReview-Commit-ID: 5cqVJA57ARu

--HG--
extra : rebase_source : c71d4e028bcef921f6a2725d14aaf27940d87f5e
2017-04-06 19:52:10 -05:00
Nick Alexander a4d5b2310a Bug 1320310 - Post-process Gradle-produced Android manifest. r=sebastian
Layer on the hacks!  This:

1) Reinstates the <activity-alias android:name=".App"> that we have in
   the moz.build produced Android manifest.  I found no way to do this
   using placeholders or the manifest merger.

2) Culls manifest entries provided by
   com.google.android.gms.measurement.  We know they're not necessary,
   since they're not present in the existing Fennec Android manifest.

These are strictly workarounds to avoid doing the real work of fixing
the issues.  To fix 1), we'd need to migrate all existing users with
homescreen shortcuts to .App.  This could be difficult, especially if
partners have deployed packages out of our update control.  To fix 2),
we'll need to upgrade our Google Play Services to at least version
9.0.0 and then use the finer-grained AAR dependencies to not build
with the measurement split at all.

MozReview-Commit-ID: 21CaZ2KMeIa

--HG--
extra : rebase_source : c45694814145946425031064cf59d3b863d3bde4
2017-04-11 20:49:05 -07:00
Carsten "Tomcat" Book f2b3183dfe Bug 1338867 - Strip username/password after strip reader mode url prefix, r=sebastian
MozReview-Commit-ID: KCr7cBdetq7

--HG--
extra : rebase_source : 7aa4614a8664be1a40ac1a857adf92b592125e4d
2017-03-14 14:07:57 +08:00
Valentin Gosu 8460873144 Bug 1325341 - Racing cache with network should be disabled by default r=michal
MozReview-Commit-ID: CjidldaaJvQ
2017-04-10 14:22:21 +03:00
nechen e470b697ec Bug 1329157 - Safely collect caller app information. r=frank,sebastian data-r?bsmedberg
MozReview-Commit-ID: 7oXYArRyWKY

--HG--
extra : rebase_source : 61697025808692eab1a2f78fda8d552e525ffe8c
2017-03-14 12:06:08 +08:00
maliu 612509973d Bug 1350661 - Extract layout attributes into styles in order to separate api 15 and 17 style tree, r=sebastian
__Device_Configuration__|__o_Applied_Style_______________
      ldrtl-v17    v17   v15 |
             o      o     o  |  UrlBar.Entry
              \     |     |  |
               -----o     |  |  UrlBar.V17.Entry(start/end)
                     \    |  |
                      \   o  |  UrlBar.V15.Entry(left/right)
                       \  |  |
                        --o  |  UrlBar.Base.Entry(original style)

Though Android support RTL since API level 17(JB_MR1), it's really buggy at that moment.
This patch fix a severe UI layout attribute bug, which only happen on android 4.2 in RTL language context:
  If view attributes "start/end" and "left/right" are both written in a view layout xml, they will both be applied and cause UI abnormal. In API 18 and above, "left" will be ignored if "start" also exist.

For example, as below show, alignLeft and alignStart are both exist in ImageView. On android 4.2 with RTL context, it's width will both align Left and Start(Right), cause the symptom that ImageView have the same width and cover on the view "back."
```
<ImageView android:id="@+id/url_bar_entry"
  android:layout_alignLeft="@+id/back"
  android:layout_alignStart="@+id/back"
```

MozReview-Commit-ID: JptLuWX2w15

--HG--
extra : rebase_source : ef89a31f77f56f6f4e936e20644c243abfa7239f
2017-01-16 15:32:59 +08:00
Delphine Lebédel 407f92e9cf Bug 1036978 - Localization of un-used toolkit strings shouldn't be reported by compare-locales, r=Pike
Change filter_py to only report on toolkit files referenced in
mobile/locales/jar.mn.

We ignore netwerk, security/manager, devtools/shared, services/sync
on the module level.

MozReview-Commit-ID: 4YRwZHUD1gE

--HG--
extra : rebase_source : 2613456c9c3442ba2d27468fdc106c1778273f6f
2017-03-31 11:59:28 +02:00
brainbreaker 2baa0a9e9f Bug 1271570 - Ask for storage permission when accessing file:// uris; r=sebastian
This commit adds a check for not prompting the user in case
 the permissions have already been granted for accessing
 file:// uris

MozReview-Commit-ID: A62AUqqTJSb

--HG--
extra : rebase_source : c5109c2fede109e1942cce240e26b12a220e8574
2017-03-29 00:43:43 +05:30
Sebastian Kaspari 9df10fe34f Bug 1351295 - Add ActivityStreamPreference to moz.build. r=Grisha
MozReview-Commit-ID: LAZbc7qsoqJ

--HG--
extra : rebase_source : 30c6c838cfdfd1d5adf55f00699b6f57436655d6
2017-03-28 16:48:04 +02:00
Edouard Oger b52bdd3388 Bug 1265314 - Set tabs record lastModified to clients.lastModified. r=nalexander
MozReview-Commit-ID: 84g7WXxRwdX

--HG--
extra : rebase_source : 3b041d9f3cb0b9285b5e7bad66a8f14f9c71410e
2017-03-24 15:40:34 -04:00
Jim Chen 9a410052b9 Bug 1351964 - Use UI thread for "Tabs:TabsOpened" event; r=sebastian
Use the UI thread for handling "Tabs:TabsOpened", so we don't race with
other tab events that are already handled on the UI thread.
2017-04-05 14:23:44 -04:00
Jim Chen 926495281b Bug 1321418 - Update menu items using the correct ID; r=sebastian
Regression caused by an incorrect ID used to update menu items.
2017-04-05 14:23:44 -04:00
Jim Chen 6962d3f0f6 Bug 1351000 - 2. Separate out GeckoView chrome/JS files; r=snorp
Put GeckoView chrome content and JS module files into their own
GeckoView-specific directories, to make it easier to build separate JARs
for GeckoView and Fennec.

--HG--
rename : mobile/android/chrome/content/GeckoViewContent.js => mobile/android/chrome/geckoview/GeckoViewContent.js
rename : mobile/android/chrome/content/geckoview.js => mobile/android/chrome/geckoview/geckoview.js
rename : mobile/android/chrome/content/geckoview.xul => mobile/android/chrome/geckoview/geckoview.xul
rename : mobile/android/modules/AndroidLog.jsm => mobile/android/modules/geckoview/AndroidLog.jsm
rename : mobile/android/modules/GeckoViewContent.jsm => mobile/android/modules/geckoview/GeckoViewContent.jsm
rename : mobile/android/modules/GeckoViewModule.jsm => mobile/android/modules/geckoview/GeckoViewModule.jsm
rename : mobile/android/modules/GeckoViewNavigation.jsm => mobile/android/modules/geckoview/GeckoViewNavigation.jsm
rename : mobile/android/modules/GeckoViewProgress.jsm => mobile/android/modules/geckoview/GeckoViewProgress.jsm
rename : mobile/android/modules/GeckoViewSettings.jsm => mobile/android/modules/geckoview/GeckoViewSettings.jsm
rename : mobile/android/modules/Messaging.jsm => mobile/android/modules/geckoview/Messaging.jsm
2017-04-05 14:23:44 -04:00
Jim Chen 9be065dee7 Bug 1351000 - 1. Generate separate omni.ja for GeckoView; r=glandium
Generate a separate omni.ja for GeckoView during the packaging step,
under dist/geckoview. Define a MOZ_GECKOVIEW_JAR flag to optionally
include/exclude files in the package manifest.
2017-04-05 14:23:43 -04:00
Julian_Chu 16ee3a27ec Bug 1352999 - Close activity if user asks to open page in full browser r=sebastian
Once user click "Open in browser" from menu, we are going to open a tab
in full browser, and close this activity. Therefore we won't have two
tabs which confuse user.

MozReview-Commit-ID: Co9gAdWweFX

--HG--
extra : rebase_source : 2f8f783783491ef480ca5266268d9d3b21bcab23
2017-04-13 18:47:23 +08:00
Edouard Oger 73ec204121 Bug 1349299 - Register device on FxA even on Push registration failure. r=Grisha
MozReview-Commit-ID: 3qDkm9iV9C0

--HG--
extra : rebase_source : 907538907f43fb911ad28222ceecdc38fb2feb24
2017-04-06 11:30:23 -04:00
Eugen Sawin 8bc705604d Bug 1357287 - [1.1] Catch and ignore runtime exception during media codec query. r=snorp 2017-04-19 23:39:16 +02:00
Eugen Sawin 8d96f69cfa Bug 1357581 - [1.0] Don't override URL when restoring and avoid accessing uninitialized intent data. r=snorp 2017-04-19 22:52:03 +02:00
Eugen Sawin a439cf46a2 Bug 1332331 - [1.1] Add multiprocess GeckoView setting. r=snorp DONTBUILD 2017-04-19 22:35:17 +02:00
Eugen Sawin d6ef64ba74 Backed out changeset 07e9e794d4ff (bug 1332331) for wrong bug ID in commit message. r=backout
This reverts commit fa055f1b66eeeb9ddaf6f04172676ffe85e9e6f7.
2017-04-19 22:28:39 +02:00
Eugen Sawin 27037fbd73 Bug 1357287 - [1.1] Add multiprocess GeckoView setting. r=snorp 2017-04-19 22:10:54 +02:00
Wes Kocher da57a3e4df Merge m-c to inbound, a=merge
MozReview-Commit-ID: DimBmdgo95e
2017-04-26 17:35:26 -07:00
Florian Queze 4b1556a5f2 Bug 1355056 - replace (function(args) { /* do stuff using this */ }).bind(this) with arrow functions, r=jaws. 2017-04-27 00:25:45 +02:00
Eugen Sawin df1af0cf56 Bug 1359176 - [1.1] Add consistent performance logs across the GeckoView example app and Fennec. r=bc 2017-04-27 00:22:10 +02:00
Michael Kaply 5dd616157f Bug 1352009 - Bump max_aspect_ratio per Android guidelines. r=sebastian
MozReview-Commit-ID: 6rLnXEyNTed

--HG--
extra : rebase_source : 758517543bc1c82c9bc67765bbbc97087b2fca20
2017-04-24 09:55:10 -05:00
brainbreaker 448e3bd38a Bug 1347583 - Allow third-party apps to open a tab in private browsing mode; r=sebastian
MozReview-Commit-ID: 6eM3E8qm9YE

--HG--
extra : rebase_source : a515f58cd2bbb761973f348f38079ace02a55364
2017-04-24 19:32:55 +05:30
Timothy Guan-tin Chien a1b1dfd386 Bug 1289412 - Remove throbber/spinner from mobile video element. r=sebastian
I can't remove the throbber.png itself because about:performance is
using it.

MozReview-Commit-ID: 6xqAqROptG4

--HG--
extra : rebase_source : 817981ed534800d646ce4decf3e69fff96e3e9fc
2017-04-24 13:42:18 +08:00
Nevin Chen 950025683c Bug 1317191 - Return when onPause is called before onResume and add Telemetry ping for future debugging. r=mcomella
MozReview-Commit-ID: HsLP061zOKb

--HG--
extra : rebase_source : 5b5414ddb9fd6e4f2d688073dc1b4ab08c16b353
2017-03-21 14:16:34 +08:00
Jan Henning 55037bf730 Bug 1265818 - Part 6 - Test PresState restoring on Android, too. r=sebastian
Expand the existing test by navigating to a different page and then going back after the tab has been restored again.

Proper restoration of the zoom level for anything other than the current history entry depends on resolution of bug 1312605.

MozReview-Commit-ID: Aspg2RRcY53

--HG--
extra : rebase_source : 4c70ebc82c682878506005007798db4fda0a613e
2017-02-21 19:47:30 +01:00
Jan Henning c425149110 Bug 1265818 - Part 5 - Tidy up and improve mobile scroll position test. r=sebastian
Just as the comparable test on desktop we should use a really big document with enough space for scrolling in both Y *and* X directions. We should also randomise the scroll positions used for testing instead of hardcoding them.

MozReview-Commit-ID: 9FvaOnaKJ6

--HG--
extra : rebase_source : af57219a92a7ad84a58c186fde9bd4c60ef16a76
2017-02-20 22:25:06 +01:00
Sebastian Kaspari b464c542ca Bug 1348820 - Always collect metadata from visited pages. r=Grisha
We are going to need this in the future and starting collection even before releasing
Activity Stream will create a better experience once we turn it on.

And this flag is hard to miss. So let's just get rid of it.

MozReview-Commit-ID: 5oDzXhpQdSA

--HG--
extra : rebase_source : c96800257070af9287d5236625150dbb62985c4b
2017-03-21 12:08:30 +01:00
Sebastian Kaspari d60800bd78 Bug 1348820 - Setup A/B experiment for enabling Activity Stream in Nightly. r=Grisha
This is a bit complicated. But most of that code should go away again as soon as
we can stop shipping the opt-out preference.

With this patch we have three flags that can be controlled via Switchboard:

* activity-stream: This is our global kill switch and allows us to pull the feature
  if needed. A user has to be in this experiment to ever see activity stream. The
  goal is to enable this experiment for 100% of the Nightly audience.

* activity-stream-opt-out: This is experiment will enable the Activity Stream by
  default. The goal is to enable this experiment for 50% of the Nightly audience.

* activity-stream-settings: This experiment controls the visibility of a setting
  to enable/disable activity stream (settings -> advanced -> experimental features).
  This allows us to control whether users can opt-in or opt-out of the activity
  experiment. The goal is to enable this for 100% of the Nightly audience.

MozReview-Commit-ID: BwEoTK6QMQx

--HG--
extra : rebase_source : dbe9815127c1aa620bbc2f1623aa4726438d3285
2017-03-20 19:46:39 +01:00
Kan-Ru Chen 31ae8ff78f Bug 1194751 - Part 2. Remove unused nsIScreen::LockMinimumBrightness and related methods. r=snorp
It's not used anywhere in gecko or addons. Remove it will make
removing PScreenManager easier.

MozReview-Commit-ID: K3BHnktO7wU

--HG--
extra : rebase_source : 6f481759d1fb82d222ea6a92ebfd50dbb6cb63d5
2017-03-09 19:16:29 +08:00
Alastor Wu ba792d4c7e Bug 1347648 - part3 : only request audio focus from gecko. r=sebastian
Media control would also be displayed for non-audible media, we shouldn't
arbitrary request audio focus . Only request audio focus from gecko which know
whether the media is audible.

MozReview-Commit-ID: Ke9DCYd0Qh2

--HG--
extra : rebase_source : 6ca2f83de877495f7249ee5e7f5cf2165f6f7f6b
2017-03-27 10:59:10 +08:00
Jan Henning f271a23fd4 Bug 1328868 - Part 10 - Make about:config handle text zoom changes a bit more gracefully. r=sebastian
This means scaling the the size of the images used for buttons and making sure that at large magnifications, the toolbar's text input properly moves into its own line instead of simply overlapping the preference immediately below. We also want to make sure that the text on any buttons remains vertically centred.

MozReview-Commit-ID: 7rUf1tucAzL

--HG--
extra : rebase_source : d227729955d15bc74d7502e116d0e71b97d76828
2017-02-18 15:50:08 +01:00
Jan Henning 5433c5ddda Bug 1328868 - Part 9 - Check that zooming via "font.size.systemFontScale" actually has any effect. r=sebastian
MozReview-Commit-ID: F2YtTER17xQ

--HG--
extra : rebase_source : f3366b0547de3993231378fc9d4abf530864a366
2017-02-10 19:21:32 +01:00
Jan Henning f1b64b555f Bug 1328868 - Part 8 - Add a test to check that flipping the Android pref enables/disables font inflation. r=esawin,sebastian
A basic check that the listener is indeed operational.

MozReview-Commit-ID: 6KijcsRaScI

--HG--
extra : rebase_source : c999d7bd78101f16efffedbfddbce89c83b39f9c
2017-03-24 18:24:52 +01:00
Jan Henning e8e6742199 Bug 1328868 - Part 7 - Move MakeObserver() into head.js r=esawin
We can use this function for our upcoming test as well, so we should move it into the common header.

MozReview-Commit-ID: H5ANDAlnpmm

--HG--
extra : rebase_source : 9d873d45ec7f701bc993e3b5f676c0638d58656d
2017-02-05 17:11:02 +01:00
Jan Henning 1126c640ca Bug 1328868 - Part 6 - Remove the old font size preference and its associated code and resources. r=sebastian
MozReview-Commit-ID: EgL3WFo6mdo

--HG--
extra : rebase_source : 5f5cf02433c83408283aeffaf8fa7cde6ecb5a62
2017-02-04 23:57:57 +01:00
Jan Henning 20e720f0f1 Bug 1328868 - Part 5 - Add a Java-side listener watching the new pref and the Android system font scale. r=sebastian
The state of the switch added in Part 4 is stored in our Android-side shared preferences. For this to have any actual effect on rendering, we now add a class that is initialised when Gecko starts up and listens to changes of that particular pref.

When it is turned on, we enable font inflation and add another listener for the system font scale, which then forwards the current font scale as well as any changes to Gecko, so mobile mode pages can be scaled correspondingly as well.

When the setting is turned back off again, the system font scale listener is stopped again and the Gecko font size settings reverted back to their default values.

MozReview-Commit-ID: GyffpZTQQX8

--HG--
extra : rebase_source : 23fcadbf04505f78ff1531c5d3c212d4f98eab9e
2017-02-05 13:22:49 +01:00
Jan Henning d19eabfecf Bug 1328868 - Part 4 - Add a new switch offering to honour the system font size to Fennec's preferences. r=sebastian
MozReview-Commit-ID: HZqxl6T90mZ

--HG--
extra : rebase_source : c262913f59eb776399267f250c67c8326b2c686a
2017-02-04 23:54:17 +01:00
Jan Henning 9606419e96 Bug 1328868 - Part 0 - Remove unneeded imports. r=esawin
MozReview-Commit-ID: 5mCrZ8aOAiw

--HG--
extra : rebase_source : 05322f92fd957c602f7d07fb1e1761f5fe71d92d
2017-02-03 22:50:30 +01:00
Andrew Swan f1085e3c9d Bug 1197420 Part 1 Schema groundwork for optional permissions r=kmag
MozReview-Commit-ID: JIfPYjxjFfM

--HG--
extra : rebase_source : 511dea13ceacc25a46505165962c1b01dfcc7b6e
extra : source : 4232cbc11710c9c9e9eb8757b54140e87307274f
2017-03-24 11:10:26 -07:00