Commit Graph

27735 Commits

Author SHA1 Message Date
James Willcox
269f751ce7 Bug 1514253 - Create PanZoomController immediately in GeckoSession r=geckoview-reviewers,droeh#geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D14562

--HG--
extra : moz-landing-system : lando
2019-01-17 14:17:50 +00:00
Julian Descottes
1a1601ba70 Bug 1495383 - Add Worker, ServiceWorker and Process support on android debugger server;r=daisuke,ochameau
I quickly tested on Fennec with the whole stack and I am able to list workers, inspect workers etc...
Could not see any issue at first glance.

Differential Revision: https://phabricator.services.mozilla.com/D16175

--HG--
extra : moz-landing-system : lando
2019-01-17 07:58:57 +00:00
arthur.iakab
48fa943d27 Merge inbound to mozilla-central a=merge 2019-01-17 06:21:08 +02:00
Sebastian Hengst
3dc0a3b83a Bug 1520470 - Update metadata for related Bugzilla product and component for geckoview. r=snorp DONTBUILD
Reviewers: snorp

Tags: #secure-revision

Bug #: 1520470

Differential Revision: https://phabricator.services.mozilla.com/D16699

--HG--
extra : rebase_source : 61edc61854b0c74f492e9ee97b075a74d6efe8dd
extra : amend_source : b31c3975770475dd835f97d2272b1028c0f3e23d
2019-01-16 16:18:45 +02:00
Sylvestre Ledru
47a5dd1fb8 Bug 1519636 - Reformat everything to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D16388

--HG--
extra : moz-landing-system : lando
2019-01-16 08:50:07 +00:00
Agi Sferro
ab3bb69820 Bug 1520490 - Add title to GeckoView's CHANGELOG.md. r=fluffyemily
This makes the page's HTML title be:

```
API Changelog | geckoview
```

Differential Revision: https://phabricator.services.mozilla.com/D16705

--HG--
extra : moz-landing-system : lando
2019-01-16 15:38:50 +00:00
Cameron McCormack
cc5d047c75 Bug 1519737 - Move pluginProblemBinding.css to the UA style sheet cache. r=emilio,timdream
Differential Revision: https://phabricator.services.mozilla.com/D16430

--HG--
rename : toolkit/pluginproblem/content/pluginProblemBinding.css => layout/style/res/pluginproblem.css
extra : moz-landing-system : lando
2019-01-16 03:37:43 +00:00
Dorel Luca
de46e66fcd Backed out changeset a85699150a8b (bug 1519737) for browser chrome failure in browser/base/content/test/static/browser_parsable_css.js
--HG--
rename : layout/style/res/pluginproblem.css => toolkit/pluginproblem/content/pluginProblemBinding.css
2019-01-16 03:25:22 +02:00
Cameron McCormack
f11cf08512 Bug 1519737 - Move pluginProblemBinding.css to the UA style sheet cache. r=emilio,timdream
Differential Revision: https://phabricator.services.mozilla.com/D16430

--HG--
rename : toolkit/pluginproblem/content/pluginProblemBinding.css => layout/style/res/pluginproblem.css
extra : moz-landing-system : lando
2019-01-14 21:51:59 +00:00
James Willcox
ab795dc2ba Bug 1485809 - Fix race with compositor attachment r=geckoview-reviewers,droeh#geckoview-reviewers
We can receive GeckoSession.onCompositorDetached() before
GeckoSession.onCompositorReady() has run, so guard against this
by ensuring the compositor is attached in onCompositorReady().

Differential Revision: https://phabricator.services.mozilla.com/D16983

--HG--
extra : moz-landing-system : lando
2019-01-23 16:31:08 +00:00
Agi Sferro
02aa520632 Bug 1521404 - Fix apilint warnings about BuildConfig. r=geckoview-reviewers,snorp
See aa9e8a7a23.

Differential Revision: https://phabricator.services.mozilla.com/D17268

--HG--
extra : moz-landing-system : lando
2019-01-23 14:48:12 +00:00
James Willcox
cca08ade1d Bug 1517846 - Add missing docs for GeckoView.releaseSession() r=geckoview-reviewers,esawin#geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D15753

--HG--
extra : moz-landing-system : lando
2019-01-15 19:46:45 +00:00
Daniel Varga
482e8f2efd Backed out changeset 95aa3315d2c9 (bug 1517846) for android build bustage at /builds/worker/workspace/build/src/mobile/android/geckoview/src/main/java/org/mozilla/gecko/util/GeckoJarReader.java on a CLOSED TREE
--HG--
extra : amend_source : 2d6d701917cbbf0d2291ed4d64a6e3b38a68671c
2019-01-15 21:29:51 +02:00
James Willcox
591b4ba931 Bug 1517846 - Add missing docs for GeckoView.releaseSession() r=geckoview-reviewers,esawin#geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D15753

--HG--
extra : moz-landing-system : lando
2019-01-15 19:13:33 +00:00
Gurzau Raul
3e25648e82 Backed out changeset 6f5998401e95 (bug 1517846) for Android api-lint failure on a CLOSED TREE 2019-01-15 17:08:17 +02:00
James Willcox
3530a3ec83 Bug 1517846 - Add missing docs for GeckoView.releaseSession() r=geckoview-reviewers,esawin#geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D15753

--HG--
extra : moz-landing-system : lando
2019-01-15 14:53:03 +00:00
Hiroyuki Ikezoe
6d4cb007b1 Bug 1423013 - Set explicit minimum-scale=1 to avoid overflow:hidden area reachable and visible. r=botond
Depends on D15344

Differential Revision: https://phabricator.services.mozilla.com/D15345

--HG--
extra : moz-landing-system : lando
2019-01-15 09:48:06 +00:00
Petru Lingurar
a4a39699cf Bug 1473470 - Part 3 - Remove "Saved logins" from "Clear private data" options. r=JanH
Summary:
Login data is to be removed only from "about:logins" where the users that use
Sync are also informed about the perils of doing so.

Depends on D16027

Reviewers: JanH, #geckoview-reviewers

Reviewed By: JanH

Subscribers: flod

Bug #: 1473470

Differential Revision: https://phabricator.services.mozilla.com/D16029

--HG--
extra : rebase_source : f7b9a885333e2b8bab310037aeced2e76812b8aa
extra : histedit_source : 85be5dca7ac79d4631d090cafc3f01994a4223b0
2019-01-15 11:02:33 +02:00
Petru Lingurar
f968908060 Bug 1473470 - Part 2 - Inform user about synced logins if Sync is used. r=JanH
Summary:
The reason for this ticket was that it was not immediately obvious for
Sync users that deleting logins on this device may affect all logins stored in
user's Sync account. So it was possible that users could unintentionally loose
all their login data.

While we should still offer the option to remove login data, even to Sync users,
we will explicitly inform them that deleting logins can affect all their
synced logins.

Also refactored the code to minimize duplicated code.

Depends on D16026

Reviewers: JanH, #geckoview-reviewers

Reviewed By: JanH

Subscribers: reviewbot, flod

Bug #: 1473470

Differential Revision: https://phabricator.services.mozilla.com/D16027

--HG--
extra : rebase_source : a0e83ce91e7d217c6b46fa81472eb5f54c92420d
extra : histedit_source : b9d9435857c04a73d960275409fd65cf1725edcb
2019-01-15 11:01:08 +02:00
Oana Pop Rus
e6a470fee9 Backed out 3 changesets (bug 1423013) for failing at reftests/transform/compound-1a.html on a CLOSED TREE
Backed out changeset 91624c065046 (bug 1423013)
Backed out changeset 050a2ef2393d (bug 1423013)
Backed out changeset db57901030e9 (bug 1423013)
2019-01-15 09:35:57 +02:00
Hiroyuki Ikezoe
f3f82aedc4 Bug 1423013 - Set explicit minimum-scale=1 to avoid overflow:hidden area reachable and visible. r=botond
Depends on D15344

Differential Revision: https://phabricator.services.mozilla.com/D15345

--HG--
extra : moz-landing-system : lando
2019-01-15 03:27:53 +00:00
Matt Brubeck
feb9a636ad Bug 1493980 - Don't pass indefinite screen orientations to Gecko. r=snorp
This eliminates one potential source of crashes from passing bad orientation
values to onOrientationChange.

Differential Revision: https://phabricator.services.mozilla.com/D16207

--HG--
extra : moz-landing-system : lando
2019-01-10 21:46:12 +00:00
Justin Wood
45c5a30a7f No Bug - Log update data for fennec (when not using Google Play). r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D15869

--HG--
extra : moz-landing-system : lando
2019-01-14 21:44:29 +00:00
Eitan Isaacson
510d5dc2c3 Bug 1518315 - Clear accessibility focus correctly. r=yzen
Differential Revision: https://phabricator.services.mozilla.com/D15872

--HG--
extra : moz-landing-system : lando
2019-01-14 20:05:05 +00:00
Jan Henning
f74e1879b8 Bug 1494748 - Ensure GeckoView saved state lives at least as long as the app process. r=snorp
The arguably most interesting bit of state of BrowserApp/GeckoApp, namely the
currently open tabs, are living partly in Gecko and partly in the Tabs
manager singleton, the lifetimes of both of which are tied to the lifetime of
the app process.

If the whole process has been killed, things are simple: Neither the Tabs
manager nor Gecko know anything about any tabs and we simply restore them
through the session store if enabled.

If GeckoApp is however being restored into an app process in which it had
already executed earlier on, meaning that we have some open tabs, it relies on
the savedInstanceState in order to correctly reconnect its GeckoView instance
with the correct previous GeckoSession.

We can however end up in a state where we don't have a savedInstanceState (e.g.
because the user swiped away the BrowserApp activity in the task switcher), but
the app process keeps running throughout (if another activity of ours is still
present in the task switcher, e.g. a custom tab, or else if a service is active,
then standard Android keeps the process running even if the user swipes away an
activity).

In that case, if GeckoApp is subsequently recreated, the Android UI sees all the
Android-side tabs in the Tabs manager, and Gecko in fact still has the Window
open that is containing all those tabs, but without the savedInstanceState
GeckoApp doesn't know anything about that Window and proceeds to open a fresh
session instead.

This means that all previous tabs will appear white and unresponsive, while
freshly opened tabs will load, but they won't be correctly saved in the session
store, their context menu isn't working, etc., because we're not really
expecting to handle multiple Gecko-side Windows.

To fix this, we disable automatic state-saving for GeckoApp's GeckoView instance
and instead do it manually, so we can keep another reference to the saved state
in GeckoApplication, and therefore are able to retrieve it from there for as
long as the app process keeps running.

Differential Revision: https://phabricator.services.mozilla.com/D16393

--HG--
extra : moz-landing-system : lando
2019-01-14 19:21:49 +00:00
Jan Henning
c6128fa586 Bug 1518229 - Allow clear-text network traffic in Android manifest. r=nalexander
Needs to be explicitly declared in case we start targeting Android P.
It's unclear to what extent this is really required when *not* using Android's
network stack directly, but at least with Firefox, some things definitively use
it, e.g. favicons. As we're a browser, we need to allow access to arbitrary
pages, so just generally white-list it.

Differential Revision: https://phabricator.services.mozilla.com/D16408

--HG--
extra : moz-landing-system : lando
2019-01-14 18:16:19 +00:00
Michael Kaply
4c3dd8e52e Bug 1518514 - Correctly read and parse list.json in search engine manager. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D15992

--HG--
extra : moz-landing-system : lando
2019-01-10 19:07:18 +00:00
Petru Lingurar
11785168d9 Bug 1473470 - Part 1 - Add new "Delete all" option to about:logins; r=JanH
This new option allows removing all logins from our login manager.

Differential Revision: https://phabricator.services.mozilla.com/D16026

--HG--
extra : moz-landing-system : lando
2019-01-14 13:42:42 +00:00
Noemi Erli
ad84098c5b Backed out changeset 60cafc046dec for failing in UpdateServiceHelper.java 2019-01-14 17:03:23 +02:00
Justin Wood
05f724de1d No Bug - Log update data for fennec (when not using Google Play). r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D15869

--HG--
extra : moz-landing-system : lando
2019-01-14 14:39:04 +00:00
Eugen Sawin
7fe599273b Bug 1518951 - [1.1] Remove redundant trackingMode field from SecurityInformation.
Differential Revision: https://phabricator.services.mozilla.com/D16365

--HG--
extra : moz-landing-system : lando
2019-01-11 23:50:45 +00:00
Jan Henning
79fe5e1e56 Bug 1498812 - Part 11: Use Visual Viewport for storing scroll position in the PresState. r=botond,tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D15691

--HG--
extra : moz-landing-system : lando
2019-01-11 19:50:24 +00:00
Jan Henning
70dd21256f Bug 1498812 - Part 9: Switch session store/session history to use visual viewport for scroll position tracking. r=mikedeboer,snorp
For simplicity's sake, for now we keep storing only one scroll position per
history entry (bug 1499210), so if we have to choose between the layout and the
visual viewport, the latter is a vastly better choice, as it more accurately
represents the scroll position as perceived by the user, especially when the
page has been pinch-zoomed.

This also means that instead of the normal scroll events, the session store now
has to listen for the corresponding events specific to the visual viewport.

We also extend the scroll position test to check that the scroll position isn't
just properly saved, but also actually properly restored in practice as well.
We only add this test now instead of already adding it beforehand like we did
with the rest of the test
- to avoid having to temporarily extend the checkScroll() helper function to
  deal with todo()/todo_is etc.
- because getting that part of the test to complete without timing out (which
  would be one of its natural failure modes, because the expected events would
  be missing) would require faking even more scroll events
- because we already have the todo() tests that are telling us the we didn't
  *store* any scroll position in the first place, so there's no point in trying
  to actually restore anything

For the GeckoView saveAndRestoreState test, we now spin the event loop once
before setting the scroll position in order to give APZ opportunity to settle
down after the initial page load.

Differential Revision: https://phabricator.services.mozilla.com/D15690

--HG--
extra : moz-landing-system : lando
2019-01-11 19:50:09 +00:00
Jan Henning
57c882fd4a Bug 1498812 - Part 6: Allow promiseBrowserEvent to listen in system group. r=mikedeboer
Likewise the only way to catch our internal visual viewport events.

Differential Revision: https://phabricator.services.mozilla.com/D15687

--HG--
extra : moz-landing-system : lando
2019-01-11 19:49:34 +00:00
Jan Henning
81a88a63e8 Bug 1498812 - Part 4: Add scroll position test that is specifically testing the Visual Viewport. r=mikedeboer
The existing tests didn't catch this problem, because calling scrollTo(), which
is both what
a) the session store and session history itself are currently using to set the
   scroll position to be restored, as well as
b) how the existing session store test is setting the page up to be scrolled
   ready for testing

forces both the layout and visual viewport positions to the respective
coordinates, even if the same configuration of visual and layout viewport
offsets could never be achieved through manual scrolling (i.e. bug 1516056).
This then triggers all the expected events and makes it so that reading the
scroll position through the layout viewport returns the expected values, which
is why the existing tests never noticed that something is off.

Therefore, we introduce a test here that has a page where the layout viewport
can never scroll (at least horizontally) and where we simulate scrolling by
actually inputting fake touch events instead of simply calling scrollTo().
This will result in only the visual viewport scrolling, ensuring that we can
properly test the new expected behaviour of the session store and session
history.

Because layout and visual viewport scroll positions aren't necessarily updated
at exactly the same time and the session store is currently still relying on the
conventional "scroll" events (relating to the layout viewport), which means the
tests have to rely on the same events, too, we don't yet switch all session
store tests to generally verify the current scroll position of the page using
the visual viewport, and temporarily make this only opt-in via the corresponding
helper function in head_scroll.js.


I know that the proper way to reference "foreign" files in text manifests is to
use !/absolute/path/to/file/helper.js, but as one of the files originally comes
from a chrome mochitest and the other one (apz_test_utils.js) doesn't and this
test itself is a chrome mochitest, this was the best way I found to get both
files copied into the correct directory on the test device so the test could
access them.

Differential Revision: https://phabricator.services.mozilla.com/D15685

--HG--
extra : moz-landing-system : lando
2019-01-11 20:36:16 +00:00
Jan Henning
f4d40c59cc Bug 1498812 - Part 3: Move scroll position test helper functions into separate file. r=mikedeboer
... so it can be shared across multiple test files.
Also make slightly more use of modern JS features for destructuring objects etc.

Differential Revision: https://phabricator.services.mozilla.com/D15684

--HG--
extra : moz-landing-system : lando
2019-01-11 20:21:06 +00:00
Jan Henning
421a99a511 Bug 1498812 - Part 2: Switch GeckoViewScrollChild to use the visual viewport. r=snorp
Given the usage example of pull-to-refresh in bug 1371796, downstream consumers
will probably more interested in the true visible scroll position of the user
within the page, i.e. the visual viewport.
Listening for *visual* viewport events will also definitively be required to
get the saveAndRestoreState GeckoView test properly working once we switch
Gecko's session store helper function to use the *visual* viewport scroll
position.

Differential Revision: https://phabricator.services.mozilla.com/D15682

--HG--
extra : moz-landing-system : lando
2019-01-11 19:49:04 +00:00
Emily Toop
b7bb89c63a Bug 1500155 - Fix ./mach android archive-geckoview by adding description into javadoc @param inside GeckoSessionSettings.setUserAgentOverride r=geckoview-reviewers,agi
Follow up issue

Differential Revision: https://phabricator.services.mozilla.com/D16313

--HG--
extra : moz-landing-system : lando
2019-01-11 15:32:10 +00:00
John Lin
72322eaae4 Bug 1508434 - p4: release audio output buffers after processing on task queue. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D15985

--HG--
extra : moz-landing-system : lando
2019-01-11 17:08:11 +00:00
Francesco Lodolo (:flod)
05862a940f Bug 1519428 - Fix XML error in Wikipedia searchplugin for zh-TW r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D16322

--HG--
extra : moz-landing-system : lando
2019-01-11 16:17:38 +00:00
Christoph Kerschbaumer
6756032512 Bug 1513241: Update frontend consumers of loadURI and pass loadURIOptions dictionary. r=gijs 2019-01-11 12:44:20 +01:00
Margareta Eliza Balazs
9dda825205 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-01-18 12:31:59 +02:00
Ehsan Akhgari
e5e885ae31 Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
# ignore-this-changeset

--HG--
extra : amend_source : 7221c8d15a765df71171099468e7c7faa648f37c
extra : histedit_source : a0cce6015636202bff09e35a13f72e03257a7695
2019-01-18 10:16:18 +01:00
Eugen Sawin
462e1ab742 Bug 1517641 - [1.0] Add experimental ad-blocking category to the Tracking Protection API.
Differential Revision: https://phabricator.services.mozilla.com/D16700
2019-01-18 00:58:19 +01:00
Henri Sivonen
681fa14255 Bug 256180 mobile part - Increase the max size for the runtime stack of the Gecko main thread on Android. r=snorp.
MozReview-Commit-ID: F85WvVTOP1S
2019-01-11 09:44:09 +02:00
Mike Hommey
da9f57341c Bug 1480006 - Enable LTO on Android CI builds. r=froydnj 2019-01-11 16:30:55 +09:00
Vlad Baicu
791441364d Bug 1508279 - Handle persistent notification actions. r=geckoview-reviewers,snorp
Handle persistent notifications click actions in NotificationReceiver.

Differential Revision: https://phabricator.services.mozilla.com/D16062

--HG--
extra : moz-landing-system : lando
2019-01-10 17:05:32 +00:00
Brian Grinstead
f6c12a437b Bug 1441935 - Modifications on top of the generated MozBrowser Custom Element r=mconley
In order to make the history easier to navigate, this changeset includes the
modifications required to make <xul:browser> actually work as a Custom Element,
and switches the app to use it instead of the XBL browser.

Differential Revision: https://phabricator.services.mozilla.com/D14911

--HG--
extra : moz-landing-system : lando
2019-01-10 01:45:43 +00:00
John Lin
25e943bf4d Bug 1518673 - disable adaptive playback for Galaxy S3 T999* models. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D16067

--HG--
extra : moz-landing-system : lando
2019-01-09 19:17:02 +00:00
Brindusan Cristian
e4a445730d Backed out 4 changesets (bug 1508434) for mda failures on test_waveShaperPassThrough.html. CLOSED TREE
Backed out changeset 1851290ec29b (bug 1508434)
Backed out changeset 12424313d637 (bug 1508434)
Backed out changeset 8fbed3243217 (bug 1508434)
Backed out changeset 25b67aa0ef55 (bug 1508434)
2019-01-09 21:00:35 +02:00
John Lin
9101933771 Bug 1508434 - p4: release audio output buffers after processing on task queue. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D15985

--HG--
extra : moz-landing-system : lando
2019-01-09 17:40:45 +00:00
Tim Nguyen
34cebfc0b6 Bug 1437641 - Remove numberbox binding and convert usages to input[type=number]. r=bgrins,dao
Differential Revision: https://phabricator.services.mozilla.com/D15882

--HG--
rename : toolkit/themes/shared/numberbox.css => toolkit/themes/shared/numberinput.css
extra : moz-landing-system : lando
2019-01-09 08:51:32 +00:00
Axel Hecht
0361e0a6e4 Bug 1517919, put Fluent files into right subdirectory for chrome-%, r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D15883

--HG--
extra : moz-landing-system : lando
2019-01-09 00:34:45 +00:00
Emily Toop
e24888e839 Bug 1500155 - Add methods for each setting in GeckoSessionSettings. r=snorp
Part 1 - Add methods for each setting in `GeckoSessionSettings`.
Migrate existing code to use these new methods instead of the exisiting get/set<DataType>(Key, Value) methods.

Part 2 - Make old methods and fields for get/set<DataType> in `GeckoSessionSettings` private.

Part 3 - Migrate existing code to use these new methods instead of the exisiting get/set<DataType>(Key, Value) methods.

Part 4 - Add Builder to `GeckoSessionSettings` to handle setting of init only fields.

* Make setters for init only fields protected.
* Remove tests that ensure that init only fields throw an error when set on the fly as this is no longer possible.
* Update tests to use builder when init-ing settings.
* Update API doc to reflect new public API.

Part 5 - Update `CHANGELOG.md`.

Part 6 - Update `geckoview_example` to use new methods.

Part 7 - Fetch `CHROME_URI` key when calling `getChromeUri` rather than incorrect `USER_AGENT_OVERRIDE`

Differential Revision: https://phabricator.services.mozilla.com/D15651

--HG--
extra : moz-landing-system : lando
2019-01-08 18:06:07 +00:00
Andrei Lazar
8dd6c6adf7 Bug 1505720 crash [@ java.lang.NullPointerException: at org.mozilla.gecko.fxa.authenticator.AndroidFxAccount.renameAccountIfNecessary(AndroidFxAccount.java)] r=Grisha
Refreshing account (triggered by signing in) can cause a NullPointerException after quickly signing out.
This defect consists in bad sync between the signing in state and signing out state.

Differential Revision: https://phabricator.services.mozilla.com/D14269

--HG--
extra : moz-landing-system : lando
2019-01-08 10:28:20 +00:00
Oana Pop Rus
3adbeba770 Merge mozilla-inbound to mozilla-central. a=merge 2019-01-08 12:13:02 +02:00
Randall Barker
66b1687bfb Bug 1507852 - Add GeckoView API to toggle desktop viewport support r=geckoview-reviewers,snorp,agi
Differential Revision: https://phabricator.services.mozilla.com/D15598

--HG--
extra : moz-landing-system : lando
2019-01-08 00:58:16 +00:00
alwu
b19b9b34f5 Bug 1513039 - part11 : remove pref 'media.autoplay.ask-permission'. r=cpearce
Depends on D14335

Differential Revision: https://phabricator.services.mozilla.com/D14336

--HG--
extra : moz-landing-system : lando
2019-01-07 18:41:58 +00:00
alwu
edbf43dd41 Bug 1513039 - part10 : remove nsIAutoplay.PROMPT r=daleharvey,cpearce
Depends on D14334

Differential Revision: https://phabricator.services.mozilla.com/D14335

--HG--
extra : moz-landing-system : lando
2019-01-07 18:41:03 +00:00
Bogdan Tara
a42405fa33 Backed out changeset 129a3f527c8e (bug 1507852) for NavigationDelegateTest.desktopMode failures CLOSED TREE 2019-01-07 23:58:38 +02:00
Csoregi Natalia
5573623926 Merge mozilla-central to autoland. CLOSED TREE 2019-01-07 23:49:15 +02:00
Csoregi Natalia
498c659ff8 Merge inbound to mozilla-central. a=merge 2019-01-07 23:46:59 +02:00
Randall Barker
907e70aa70 Bug 1507852 - Add GeckoView API to toggle desktop viewport support r=geckoview-reviewers,snorp,agi
Differential Revision: https://phabricator.services.mozilla.com/D15598

--HG--
extra : moz-landing-system : lando
2019-01-07 20:05:08 +00:00
Natalia Csoregi
a0ea2d1303 Bug 1505353 - Disable org.mozilla.geckoview.test.AccessibilityTest.autoFill_navigation on debug platform for frequent failures. r=jmaher 2019-01-05 05:31:00 +02:00
Cameron McCormack
9635af505d Bug 1517175 - Part 2: Add about:memory filter r=njn
Depends on D15628

Differential Revision: https://phabricator.services.mozilla.com/D15629

--HG--
extra : moz-landing-system : lando
2019-01-07 03:04:46 +00:00
Cameron McCormack
af0862d439 Bug 1516831 - Add a process index to about:memory r=njn
Differential Revision: https://phabricator.services.mozilla.com/D15495

--HG--
extra : moz-landing-system : lando
2019-01-07 03:06:27 +00:00
Razvan Maries
3a5e839ba2 Backed out changeset e38d92bc7143 (bug 1505353) for causing build bustages. CLOSED TREE 2019-01-06 15:52:10 +02:00
Natalia Csoregi
946a9de858 Bug 1505353 - Disable org.mozilla.geckoview.test.AccessibilityTest.autoFill_navigation on debug platform for frequent failures. r=jmaher 2019-01-05 05:31:00 +02:00
Csoregi Natalia
4eda4d34c0 Merge mozilla-central to mozilla-inbound. CLOSED TREE 2019-01-07 23:51:06 +02:00
Cosmin Sabou
3de3011707 Backed out changeset dbea03a5c55e (bug 1497146) for bmsvc bustages on SessionStoreUtils.
SessionStoreUtils

--HG--
rename : dom/chrome-webidl/SessionStoreUtils.webidl => toolkit/components/sessionstore/nsISessionStoreUtils.idl
rename : toolkit/components/sessionstore/SessionStoreUtils.cpp => toolkit/components/sessionstore/nsSessionStoreUtils.cpp
2019-01-04 19:37:37 +02:00
Alphan Chen
15328d9c7b Bug 1497146 part 1 - Add SessionStoreUtils.webidl r=nika
Let SessionStoreUtils be a WebIDL namespace, rather than a XPCOM service

Differential Revision: https://phabricator.services.mozilla.com/D9776

--HG--
rename : toolkit/components/sessionstore/nsISessionStoreUtils.idl => dom/chrome-webidl/SessionStoreUtils.webidl
rename : toolkit/components/sessionstore/nsSessionStoreUtils.cpp => toolkit/components/sessionstore/SessionStoreUtils.cpp
extra : moz-landing-system : lando
2019-01-04 16:26:13 +00:00
Vlad Baicu
4f56e9160c Bug 1464003 - Refresh sync preference after rebuilding the list. r=Grisha
Differential Revision: https://phabricator.services.mozilla.com/D15209

--HG--
extra : moz-landing-system : lando
2019-01-04 10:17:03 +00:00
Mark Banner
8e9e4602f8 Bug 1517456 - Make Task.jsm a test-only module. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D15647

--HG--
rename : toolkit/modules/Task.jsm => toolkit/modules/tests/modules/Task.jsm
extra : moz-landing-system : lando
2019-01-04 08:41:58 +00:00
Jan Henning
dbd3b4288b Bug 1499874 - Part 4: Removed closed tabs by ID when using undoCloseTab(). r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D15332

--HG--
extra : source : caee52ea697e2bc64040b1663ef7f40cfd09030b
extra : histedit_source : 9b15bddf718f885a51c2b4328a45c8115c509f5d
2018-12-23 18:42:08 +01:00
Jan Henning
7178e9149d Bug 1499874 - Part 3: Renumber recently closed tabs from the previous session when automatically restoring. r=esawin
We want to remove recently closed tabs from the session store when they get re-
stored again, and for that we need something to uniquely identify them.
As tab IDs are unique per session only, this means that the tab IDs of recently
closed tabs resurrected from the previous session could conflict with tabs that
have been freshly opened in the current session.

E.g. tab 2 has been closed in a previous session and is now part of the session
store's closed tab list. In the current session, a number of tabs are opened
again and then what is now the *current* tab 2 is closed as well. The result
would be that the session store now has two closed tabs with a tab ID of 2.

To avoid that scenario, all recently closed tabs are renumbered with an ID in
the negative range at the start of the session. Therefore all tabs originally
opened in the current session will have a tab ID >= 0, while all recently closed
tabs coming directly from a previous session will have a negative tab ID, < -1.
(-1 itself remains the sentinel value for an invalid tab ID).

Differential Revision: https://phabricator.services.mozilla.com/D15331

--HG--
extra : source : 971ebdae024e188a913d2eda452a7761b4b38d1b
extra : histedit_source : b04ac438d2d7325d35e300946fcdb2a385b1598c
2018-12-23 17:23:21 +01:00
Jan Henning
c68c1f0d59 Bug 1499874 - Part 2: Remove tab IDs of tabs from the previous session file in the home panel. r=esawin
We want to remove recently closed tabs from the list that have been restored
again. At the moment this only works if the tab data never leaves Gecko, because
in undoCloseTab(), the session store determines the tab data to be removed from
its closed tab collection by checking for equality with the tab data that was
passed as an argument to undoCloseTab().

So a tab restored through the "Undo" snackbar will be removed from the "Recently
closed" list, but a tab restored from the History home panel won't, because in
the latter case the tab data will have been serialised and deserialised while
travelling back and forth between Gecko and the Android UI.

Hence we're going to switch the system to identify tabs through their tab ID
instead.

If automatic session restoring is turned off, the "Recently closed" home panel
also displays all tabs that were open in the previous session. Those tabs aren't
coming directly from the session store; instead the Android UI reads them
directly from the corresponding file on disk. Therefore, when restoring such a
tab we need to make sure that the session store won't attempt to find and remove
that tab from its own list of recently closed tabs.

To that effect, we therefore simply drop the "tabId" when parsing the "last
session" file from disk.

Differential Revision: https://phabricator.services.mozilla.com/D15330

--HG--
extra : source : cedb3b5d62a6019a1176f2196848d7bb43c74e9d
extra : histedit_source : 88e2c1f549c98d0cf9adeaf91891f3de61fca499
2018-12-23 15:45:26 +01:00
Jan Henning
3bfc0a2e5f Bug 1499874 - Part 1: Test that restoring a tab removes it from the session store. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D15329

--HG--
extra : source : f920fb20c379b24bfe0945fafd002065ac112d84
extra : histedit_source : a5b4561928d1c5be30582a0ccaa2b75c7d66bc9c
2018-12-23 21:42:30 +01:00
Jan Henning
cb158a3b46 Bug 1499874 - Part 0c: Reorder imports according to coding style. r=me, trivial review comment fix
org.mozilla.* imports come first.

Differential Revision: https://phabricator.services.mozilla.com/D15866

--HG--
extra : source : eb09246916bdabc7402daf2640114392952c1b14
extra : histedit_source : 8e9e91f52ea228b175817de75f64fecff2eb01d1
2019-01-07 21:05:36 +01:00
Jan Henning
d0d7ab1b82 Bug 1499874 - Part 0b: Remove SessionStore.forgetClosedTab(). r=esawin
Nobody within mobile or toolkit is currently using it.

Differential Revision: https://phabricator.services.mozilla.com/D15328

--HG--
extra : source : 531c402060ecc2bc3d1119ecaf3b49b29e03e3cc
extra : histedit_source : 0e86b12909c5f76605304a0a0ff4088031a7b8b9
2018-12-23 17:45:10 +01:00
Jan Henning
adb89fdea3 Bug 1499874 - Part 0a: Use abbreviated function syntax for session store. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D15327

--HG--
extra : source : f12b87c27dfb199a380cb1f0bef175d84cc024f9
extra : histedit_source : 266c4882077f2a4afc1ebbea6ab507223ca93969
2018-12-23 17:53:49 +01:00
Emilio Cobos Álvarez
1728454f1d Bug 1517241 - Fix some more android bustage on a CLOSED TREE.
Got to love unified builds.
2019-01-03 18:43:12 +01:00
Emilio Cobos Álvarez
d2ed260822 Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug
Summary: Really sorry for the size of the patch. It's mostly automatic
s/nsIDocument/Document/ but I had to fix up in a bunch of places manually to
add the right namespacing and such.

Overall it's not a very interesting patch I think.

nsDocument.cpp turns into Document.cpp, nsIDocument.h into Document.h and
nsIDocumentInlines.h into DocumentInlines.h.

I also changed a bunch of nsCOMPtr usage to RefPtr, but not all of it.

While fixing up some of the bits I also removed some unneeded OwnerDoc() null
checks and such, but I didn't do anything riskier than that.
2019-01-03 17:48:33 +01:00
Gijs Kruitbosch
a1eb21f649 Bug 1516799 - add fluent branding on fennec, r=zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D15573

--HG--
extra : moz-landing-system : lando
2019-01-02 22:50:45 +00:00
Agi Sferro
c0eb110828 Bug 1515978 - Make GeckoRuntime#getSettings @NonNull. r=geckoview-reviewers,droeh
Differential Revision: https://phabricator.services.mozilla.com/D15217

--HG--
extra : moz-landing-system : lando
2019-01-02 20:06:32 +00:00
James Willcox
d72a96de1f Bug 1450762 - Don't prompt for device permissions on Android in MediaDevices.enumerateDevices() r=achronop
Differential Revision: https://phabricator.services.mozilla.com/D14575

--HG--
extra : moz-landing-system : lando
2019-01-02 16:44:35 +00:00
Agi Sferro
5dc04f9f8d Bug 1515960 - Add links to CHANGELOG.md. r=snorp,geckoview-reviewers
This adds links from the CHANGELOG to the javadoc.

Differential Revision: https://phabricator.services.mozilla.com/D15213

--HG--
extra : moz-landing-system : lando
2018-12-26 17:25:55 +00:00
Emily Toop
eb10410004 Bug 1510663 - Address WifiManager Potential Leak warning. r=geckoview-reviewers,snorp
On versions prior to Android N (24), initializing the WifiManager via Context#getSystemService can cause a memory leak if the context is not the application context.

Differential Revision: https://phabricator.services.mozilla.com/D14721

--HG--
extra : moz-landing-system : lando
2018-12-19 15:50:05 +00:00
Emily Toop
110522d32d Bug 1510648 - Suppress MissingPermission warnings. r=geckoview-reviewers,snorp
This is because these persmissions are the responsibility of the embedding app to request,not GeckoView's.

Differential Revision: https://phabricator.services.mozilla.com/D14722

--HG--
extra : moz-landing-system : lando
2018-12-19 15:49:42 +00:00
Jan Henning
6f640302c0 Bug 1506649 - Part 3: Guess ExternalStorageProvider file paths for non-primary volumes. r=snorp
The AOSP ExternalStorageProvider always creates document IDs of the form
"storage device ID" + ':' + "document path", where the storage device ID will
be "primary" for the primary emulated storage and the file system UUID for
everything else.

Assuming that OEMs won't customise this behaviour, the main problem that needs
to be handled is how to turn the file system UUID back into a file system path.

Differential Revision: https://phabricator.services.mozilla.com/D15259

--HG--
extra : moz-landing-system : lando
2018-12-26 20:38:01 +00:00
Jan Henning
04948eb567 Bug 1506649 - Part 2: Better API version linting. r=snorp
Because getOriginalFilePathFromUri() doesn't use framework methods newer than
Kitkat, instead of a generic @SuppressLint("NewAPI") it would be better to use
@TargetApi(19), so you still get warned if you start using framework methods
more recent than API19.

However because the isKitkat helper variable is only used in one place, in the
end we simply replace it with a direct Build.VERSION.SDK_INT check, so that we
don't have to use any special handling for the linter.

Differential Revision: https://phabricator.services.mozilla.com/D15258

--HG--
extra : moz-landing-system : lando
2018-12-26 20:19:22 +00:00
Jan Henning
13289db4f3 Bug 1506649 - Part 1: Avoid exeception-based control-flow for resolving content://-URIs. r=snorp
Instead, getOriginalFilePathFromUri() will simply *always* return null if it
cannot divine the original file path, and consequently resolveContentUri() will
then always fall back to the temp file method if getOriginalFilePathFromUri()
returns null.

Differential Revision: https://phabricator.services.mozilla.com/D15257

--HG--
extra : moz-landing-system : lando
2018-12-26 20:19:15 +00:00
Hiroyuki Ikezoe
f36f418011 Bug 1516307 - Make nsIDOMWindowUtils.getResolution return the result value. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D15318

--HG--
extra : moz-landing-system : lando
2018-12-30 01:15:27 +00:00
Michael Kaply
17389dd116 Bug 1510296 - Update Google search for new codes. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D13087

--HG--
extra : moz-landing-system : lando
2018-12-29 14:21:27 +00:00
Ciure Andrei
13346881fe Backed out changeset f6790e7386ac (bug 1510296) for causing Android build bustages CLOSED TREE 2018-12-29 15:54:35 +02:00
Michael Kaply
b79e575381 Bug 1510296 - Update Google search for new codes. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D13087

--HG--
extra : moz-landing-system : lando
2018-12-29 13:19:42 +00:00
Mark Banner
89c3a48f36 Bug 1515729 - Remove Task.jsm usage from mobile/android. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D15464

--HG--
extra : moz-landing-system : lando
2018-12-28 22:36:18 +00:00
Bogdan Tara
ddb8707cbc Backed out changeset 2b4dd7891375 (bug 1510296) for build bustages CLOSED TREE 2018-12-29 07:30:23 +02:00
Michael Kaply
8c84b2b25d Bug 1510296 - Update Google search for new codes. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D13087

--HG--
extra : moz-landing-system : lando
2018-12-28 22:26:06 +00:00
Bogdan Tara
d2a41cb853 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-12-28 23:53:12 +02:00
Bogdan Tara
fff0a1f4f9 Merge inbound to mozilla-central. a=merge 2018-12-28 23:50:12 +02:00
Vlad Baicu
b0e869dfdd Bug 1515966 - Download notification click action now opens about:downloads. r=sdaswani
Differential Revision: https://phabricator.services.mozilla.com/D15215

--HG--
extra : moz-landing-system : lando
2018-12-28 14:50:38 +00:00
arthur.iakab
acd2e22b33 Backed out changeset 3c54ad1e420e (bug 1515966) for causing eslint failure on DownloadNotifications.jsm CLOSED TREE 2018-12-28 00:22:34 +02:00
Vlad Baicu
aa225929dc Bug 1515966 - Download notification click action now opens about:downloads. r=sdaswani
Differential Revision: https://phabricator.services.mozilla.com/D15215

--HG--
extra : moz-landing-system : lando
2018-12-27 10:50:18 +00:00
James Willcox
dbb53da575 Bug 1510711 - Make Fennec branding (about:logo, etc) available in GeckoView r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D14557

--HG--
extra : moz-landing-system : lando
2018-12-27 18:11:32 +00:00
Cosmin Sabou
5bcaee3eac Backed out changeset 7ceb0427f883 (bug 1510711) for Android mochitest failures on testJarReader. 2018-12-26 23:34:49 +02:00
Mark Banner
c7d11a73c7 Bug 1515865 - Remove unnecessary Task.jsm inclusions in mobile/android tests. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D15177

--HG--
extra : moz-landing-system : lando
2018-12-26 19:20:48 +00:00
James Willcox
e2e452c637 Bug 1501748 - Make GeckoThread.waitOnGecko() time out by default. r=geckoview-reviewers,esawin
All of the current usage can survive a timeout, and we'd rather
that than a deadlock. Future code that does want to risk a
deadlock can call `GeckoThread.waitOnGeckoForever` instead.

Differential Revision: https://phabricator.services.mozilla.com/D14560

--HG--
extra : moz-landing-system : lando
2018-12-19 22:59:46 +00:00
James Willcox
dc32ae75b8 Bug 1510711 - Make Fennec branding (about:logo, etc) available in GeckoView r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D14557

--HG--
extra : moz-landing-system : lando
2018-12-21 18:00:58 +00:00
Jan Henning
f7135eb95d Bug 1515559 - Account for image source-sets in context menu. r=snorp
Audio/video related context menu entries are already doing this as far as I can
tell.

Differential Revision: https://phabricator.services.mozilla.com/D15382

--HG--
extra : moz-landing-system : lando
2018-12-26 18:38:20 +00:00
Jan Henning
120b216df7 Bug 1492335 - Strip view-source prefix when copying/sharing links from context menu. r=snorp
Desktop does this when copying link URLs and sharing is just effectively just
another form of copying.
For completeness, we also apply this when "viewing" the source of images (which
just displays the image itself anyway).

No special handling is required for other media elements (audio/video), because
looking at those in view-source mode does display the raw file contents and
thus none of the media-specific context menu entries will show up.

Differential Revision: https://phabricator.services.mozilla.com/D15381

--HG--
extra : moz-landing-system : lando
2018-12-26 18:38:18 +00:00
Eitan Isaacson
70e2a64ff1 Bug 1513912 - Null check return from TextToSpeech.getFeatures() r=agi
Differential Revision: https://phabricator.services.mozilla.com/D15158

--HG--
extra : moz-landing-system : lando
2018-12-21 15:28:05 +00:00
Petru Lingurar
4a9cd4dfff Bug 1513938 - Enforce a Bundle size limit and drop privateSession if exceeds it; r=JanH
The `privateSession` key would normally allow persisting the Private Browsing
session across OOMs in Activity's Bundle.
We need to do that to avoid storing private, sensible data on disk like we do
with the normal browsing session.

In some cases `privateSession` would contain a lot of data which, along with
other possible concurrent transactions could overflow Binder's buffer which has
a limited fixed size, currently 1Mb.
To avoid this, we will drop `privateSession` from the Bundle if the resulting
size is greater than a _speculative_ size of 300KBs which would mean that in
the case of an OOM all Private Browsing state would be lost.

Bug 1515592 is filed to investigate for a better solution.

Differential Revision: https://phabricator.services.mozilla.com/D15067

--HG--
extra : moz-landing-system : lando
2018-12-21 08:56:47 +00:00
Agi Sferro
ff137f141b Bug 1515662 - Copy javadoc jar to right location for publishing. r=nalexander
In Bug 1506601 we started specifying a version number which made the javadoc
jar artifact name change

from `geckoview-javadoc.jar` to `geckoview-<version>-javadoc.jar`

where `<version>` is the current GeckoView version. This is a good change but it
broke our javadoc publishing code which doesn't know about the version code in
`//taskcluster/ci/build/android-stuff.yml`.

To make that work we add a new task `copyJavadocJar${variantName}` which copies
the jar to the expected location.

Depends on D15128

Differential Revision: https://phabricator.services.mozilla.com/D15129

--HG--
extra : moz-landing-system : lando
2018-12-20 19:37:42 +00:00
Agi Sferro
61a9102f42 Bug 1515662 - Make |geckoview-docs| behave like other |mach android| commands. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D15128

--HG--
extra : moz-landing-system : lando
2018-12-20 20:05:39 +00:00
Mike Taylor
1c41dddc98 Bug 1514861. Add Google Analytics params to report site issue endpoint requests. r=sebastian,mkaply
Add Google Analytics params to report site issue endpoint requests

Differential Revision: https://phabricator.services.mozilla.com/D14899

--HG--
extra : moz-landing-system : lando
2018-12-20 17:45:37 +00:00
Agi Sferro
cffe966865 Bug 1506658 - Add @Nullable or @NonNull to all APIs. r=snorp,rbarker,geckoview-reviewers
Upgrading apilint to the 0.1.6 release will also ensure that new APIs have
nullability annotations via the GV4 and GV5 lints, see [0].

[0]: b994c7ca9d (diff-2c7de691a2642510f69b9ddf59276d85R569)

Differential Revision: https://phabricator.services.mozilla.com/D14896

--HG--
extra : moz-landing-system : lando
2018-12-20 15:22:45 +00:00
Sebastian Hengst
767c971623 Backed out 21 changesets (bug 1492664) for breaking cron task for nightlies. a=backout
Backed out changeset a7d50dbb2c8e (bug 1492664)
Backed out changeset 2d876c4ece8b (bug 1492664)
Backed out changeset c82285d253de (bug 1492664)
Backed out changeset bf6d089640eb (bug 1492664)
Backed out changeset d9a7f2ce49c3 (bug 1492664)
Backed out changeset 06c466ab4323 (bug 1492664)
Backed out changeset c1ea4a10cc8d (bug 1492664)
Backed out changeset 4c63a04fdd47 (bug 1492664)
Backed out changeset 742b038bb1dd (bug 1492664)
Backed out changeset 911b4b0fb683 (bug 1492664)
Backed out changeset 870c8cec99e5 (bug 1492664)
Backed out changeset 77699b51336b (bug 1492664)
Backed out changeset 29f33f22fd8b (bug 1492664)
Backed out changeset e7f305408708 (bug 1492664)
Backed out changeset 335a92b1f424 (bug 1492664)
Backed out changeset c566f1c8dcdf (bug 1492664)
Backed out changeset c77ae59aba41 (bug 1492664)
Backed out changeset 9c35dd209c6b (bug 1492664)
Backed out changeset a972d6b4434e (bug 1492664)
Backed out changeset 5ea6f03f845e (bug 1492664)
Backed out changeset 0699d3873e44 (bug 1492664)

--HG--
extra : histedit_source : 5cb1f7e50f25d4a875c1a58c86b7dce902e1a89c%2C20f1ab1a843b612cfcc67cf5c6ff745d65abf076
2018-12-20 12:43:22 +02:00
Razvan Maries
f658ebcbab Merge mozilla-inbound to mozilla-central a=merge 2018-12-20 07:04:06 +02:00
Nick Alexander
801b2fd4e8 Bug 1515282 - Fix mobile/android artifact build bustage. r=froydnj
This was fallout from Bug 1509573.  That ticket pushed the Android APKs step
into the export tier, where it is required; but since most things in export are
only required for compilation, the target is not itself built by default, and
in particular, not during an artifact build.  That's not right; this fixes it.

Differential Revision: https://phabricator.services.mozilla.com/D15002

--HG--
extra : moz-landing-system : lando
2018-12-19 20:35:16 +00:00
Agi Sferro
09aa32663e Bug 1458668 - Link CHANGELOG.md in javadoc. r=snorp,geckoview-reviewers
This moves the CHANGELOG.md file to a /doc-files folder that gets picked up by
javadoc.

Our javadoc files are hosted on a github.io page which will render the markdown
file with the geckoview profile.

Depends on D13883

Differential Revision: https://phabricator.services.mozilla.com/D14786

--HG--
rename : mobile/android/geckoview/CHANGELOG.md => mobile/android/geckoview/src/main/java/org/mozilla/geckoview/doc-files/CHANGELOG.md
extra : moz-landing-system : lando
2018-12-19 15:48:17 +00:00
James Willcox
4fc444bb59 Bug 1514252 - Use 160 DPI and a device pixel scale of 1.0 for GeckoView tests. r=geckoview-reviewers,mbrubeck#geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D14565

--HG--
extra : moz-landing-system : lando
2018-12-19 16:43:29 +00:00
Eugen Sawin
b27a383fe0 Bug 1511477 - [2.0] Extend tracking protection test. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D14792

--HG--
extra : moz-landing-system : lando
2018-12-19 15:48:47 +00:00
Margareta Eliza Balazs
2e5e28f518 Backed out 16 changesets (bug 1492664) for breaking developer artifact builds, requested by standard8 a=backout
Backed out changeset 31e500489665 (bug 1492664)
Backed out changeset f4945658d45f (bug 1492664)
Backed out changeset 6d17291b8b92 (bug 1492664)
Backed out changeset 90f3faa36137 (bug 1492664)
Backed out changeset 0b229b00818a (bug 1492664)
Backed out changeset 5eb2c77d70a9 (bug 1492664)
Backed out changeset e1ebad5d89c5 (bug 1492664)
Backed out changeset 3017e5890739 (bug 1492664)
Backed out changeset c8b7e620eabf (bug 1492664)
Backed out changeset d3dfbd848236 (bug 1492664)
Backed out changeset 5c92bb5ac895 (bug 1492664)
Backed out changeset fb7cfca6ebc3 (bug 1492664)
Backed out changeset 0c4101230d4d (bug 1492664)
Backed out changeset b93a0fcc86f3 (bug 1492664)
Backed out changeset 6dc9522ee0bf (bug 1492664)
Backed out changeset 85d7f8b330eb (bug 1492664)
2018-12-19 11:45:29 +02:00
Andrew Swan
a616b3883c Bug 1511211 Re-enable addon test in testDistribution.java r=nalexander
This test formerly used a bootstrapped extension.  Converting it to a
webextension is straightforward, except for the fact that webextensions
are started asynchronously, so the test has to wait for a message from
the addon instead of just assuming it is started synchronously during
distribution handling.

Differential Revision: https://phabricator.services.mozilla.com/D13635

--HG--
extra : moz-landing-system : lando
2018-12-14 20:41:19 +00:00
Nick Alexander
f509ab73ad Bug 1509573 - Part 3: Use |make -C ... stage-package| rather than special Make target. r=snorp
This splits the two stage-package invocations (which are rather slow)
between Fennec and GeckoView, hopefully speeding local GV development
up a little (in the IDE).

The stage-package invocations depend on |mach build faster|, because
the omnijar contents might need to be updated.

In addition, we feed the packaged libs (and asset libs) through.

Differential Revision: https://phabricator.services.mozilla.com/D12799

--HG--
extra : moz-landing-system : lando
2018-12-18 23:01:16 +00:00
Nick Alexander
e22899b7cf Bug 1509573 - Part 2: Make |mach build faster| handle Android generated files. r=froydnj
This is just an awkward feature of the FasterMake build system:
without a direct consumer, GENERATED_FILES aren't handled.  We
"consume" them into a dummy directory that isn't packaged.  Sadly, the
FasterMake generic rule doesn't handle relative directories smoothly,
so we have to special case that too.

Differential Revision: https://phabricator.services.mozilla.com/D12796

--HG--
extra : moz-landing-system : lando
2018-12-18 23:00:59 +00:00
Nick Alexander
a8199ab531 Bug 1509573 - Part 1: Use |mach build ...| rather than special Make target. r=snorp
This uses |mach build mobile/android/base/...| rather than a custom
target, reducing Make magic and making it a little easier to reason
about the Gradle build.  This is somewhat rearranging deckchairs, but
the more that gets out of Make and into moz.build, the simpler our
lives become.

The shared `onlyIf` Gradle guard will be used to make it very clear
when certain tasks are being skipped, as we move details about Gecko
binaries to depend on the Gradle task execution graph.

I also took the opportunity to improve the task logging.

Differential Revision: https://phabricator.services.mozilla.com/D12798

--HG--
extra : moz-landing-system : lando
2018-12-18 23:54:08 +00:00
Nick Alexander
b1f817c8c9 Bug 1509573 - Part 0: Only compile Java via Gradle in export tier. r=chmanchester.mielczarek
This was always an accident of history: we forced export tier without
avoiding it in the libs tier.

Differential Revision: https://phabricator.services.mozilla.com/D14893

--HG--
extra : moz-landing-system : lando
2018-12-18 23:25:55 +00:00
Brindusan Cristian
4eaaa7bc4c Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-12-18 19:37:00 +02:00
Dustin J. Mitchell
8ea05db701 Bug 1492664 - generate portable URLs for Android mach commands; r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D14219

--HG--
extra : moz-landing-system : lando
2018-12-18 17:26:47 +00:00
Makoto Kato
631a33d252 Bug 1497682 - Part 3. Add junit test. r=droeh
Summary:
Add autofill hint test if using Android 8+.

Depends on D12881

Reviewers: droeh

Reviewed By: droeh

Bug #: 1497682

Differential Revision: https://phabricator.services.mozilla.com/D12882

--HG--
extra : rebase_source : c4458b62d48434fe9d19f8ded04f2bc2666647ff
extra : histedit_source : 5ff01309b49965ff008e431059368ca0f05d56e6
2018-12-18 18:05:36 +09:00
Makoto Kato
e305b5ca33 Bug 1497682 - Part 2. Don't set inputType to all <input type=text>. r=droeh
Summary:
LastPass will fill password to all input elements which InputType is
TYPE_CALSS_TEXT and TYPE_TEXT_VARIATION_WEB_EDIT_TEXT and has no AutofillHint.
And it will fill username when InputType and AutofillHint is nothing in
<input type="text">.

Actually, current implementation of GeckoView sets InputType only for
<input type="text">, so LastPass fills password to all <input type="text">

So as workaround, we should set InputType and AutofillHint when input element
presumes username fields.

Depends on D12880

Reviewers: droeh

Reviewed By: droeh

Bug #: 1497682

Differential Revision: https://phabricator.services.mozilla.com/D12881

--HG--
extra : rebase_source : b5ab3deadf0dd67bbdb1aa7e7656fe677c6670c4
2018-12-18 17:20:10 +09:00
Kris Maglione
778252994f Bug 1513366: Part 5 - Migrate extension process script to a JSM. r=aswan
This simplifies things all around, and gets rid of one more unnecessary
component registration.

--HG--
rename : toolkit/components/extensions/extension-process-script.js => toolkit/components/extensions/ExtensionProcessScript.jsm
extra : rebase_source : 7ceb6ada0730f8241bbd5ddbd889a320da22b1b1
2018-12-12 17:58:19 -08:00
Dennis Schubert
3a160e5189 Bug 1487401 - Remove mobile UA override for eBay. r=twisniewski,kmag,miketaylr
Differential Revision: https://phabricator.services.mozilla.com/D14717

--HG--
extra : moz-landing-system : lando
2018-12-17 21:38:49 +00:00
Agi Sferro
e75266a619 Bug 1502118 - Enforce GV lints with apilint. r=snorp
This makes it so that apilints lints with "GV" codes are enforced and will fail
the build.

Depends on D13882

Differential Revision: https://phabricator.services.mozilla.com/D13883

--HG--
extra : moz-landing-system : lando
2018-12-17 22:32:11 +00:00
Agi Sferro
ba1aba5810 Bug 1502118 - Make FinderResult non-final for testing. r=snorp,esawin
This allows mocking for embedders.

Depends on D13881

Differential Revision: https://phabricator.services.mozilla.com/D13882

--HG--
extra : moz-landing-system : lando
2018-12-17 22:31:59 +00:00
Agi Sferro
e03913bdda Bug 1502118 - Add threading annotations to remaining APIs. r=snorp
Depends on D13880

Differential Revision: https://phabricator.services.mozilla.com/D13881

--HG--
extra : moz-landing-system : lando
2018-12-17 22:31:46 +00:00
Agi Sferro
4e6222e74d Bug 1502118 - Add @UiThread to all Delegate interfaces. r=snorp,esawin
Differential Revision: https://phabricator.services.mozilla.com/D13880

--HG--
extra : moz-landing-system : lando
2018-12-17 22:31:29 +00:00
John Lin
9ae8026add Bug 1486659 - p3: copy texture contents for remote allocated Surface. r=snorp
Child processes cannot access textures allocated in the parent process,
which is needed by the compositor to render video elements efficiently.
Unfortunately, Android doesn't expose Sufrace buffers (sharable across
processes) in the SDK/NDK as other platforms, so we need to generate
extra texture/surface in the child process and update texture images
through the surface, which is passed to the parent process for the remote
texture to copy its contents into.

Differential Revision: https://phabricator.services.mozilla.com/D11939

--HG--
rename : mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/gfx/ISurfaceAllocator.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/gfx/SyncConfig.aidl
extra : moz-landing-system : lando
2018-12-14 21:34:55 +00:00
John Lin
82531b5e45 Bug 1486659 - p2: expose native GL blitter to Java. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D11938

--HG--
extra : moz-landing-system : lando
2018-12-14 21:34:11 +00:00
John Lin
a1926ace73 Bug 1486659 - p1: conform SharedMemory.describeContents() to Android API spec. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D11936

--HG--
extra : moz-landing-system : lando
2018-12-14 21:34:09 +00:00
Petru Lingurar
cd5624af54 Bug 1509434 - Part 2 - Wait for AudioFocusAgent to be initialized before starting testMediaControl;r=JanH
Inside the tests from testMediaControl audio focus is not immediately checked
as for the tests from testAudioFocus but nonetheless we should make sure
AudioFocusAgent is initialized before proceeding with the media tests.

Depends on D14417

Differential Revision: https://phabricator.services.mozilla.com/D14418

--HG--
extra : moz-landing-system : lando
2018-12-16 19:48:16 +00:00
Petru Lingurar
7ad49069ce Bug 1509434 - Part 1 - Wait for AudioFocusAgent to be initialized before starting testAudioFocus;r=JanH
There is a small race between actually starting the test after Gecko:Ready and
having the AudioFocusAgent that the tests depend on initialized, which is also
done after Gecko:Ready.

To avoid this situation we will wait for Gecko:Ready and then for
AudioFocusAgent to complete it's initialization.

Differential Revision: https://phabricator.services.mozilla.com/D14417

--HG--
extra : moz-landing-system : lando
2018-12-17 07:59:44 +00:00
Jan Henning
7e0f4b06eb Bug 1492706 - Part 2: Cover common OOM causes in the Recent tabs panel. r=nalexander
Looking at Crash Stats, the most common causes of OOMs involving the RecentTabs-
Adapter happen while reading the previous session store file into memory for
parsing, respectively while stringifying the parsed data back into a flat String
for further storage.

In the former case, we give up completely, because there's nothing we can do
short of switching to a streaming JSON parser (which is out of scope for this
bug), while in the latter case, we only skip the affected tab in the hope that
at least some tabs might be small enough to not cause an OOM.

Differential Revision: https://phabricator.services.mozilla.com/D12963

--HG--
extra : moz-landing-system : lando
2018-12-14 21:08:32 +00:00
Jan Henning
f085c2f73f Bug 1492706 - Part 1: Catch OOM during startup session restore. r=nalexander
We just treat this like a defective session store file and first fall back to
the backup (although if the OOM is caused by a too-large file, it is likely that
the backup will be too large as well) and then turn off session restoring
completely.

We don't plug those failures into the session restore telemetry, though, because
that is supposed to only cover truly defective files.

Differential Revision: https://phabricator.services.mozilla.com/D12962

--HG--
extra : moz-landing-system : lando
2018-12-14 21:07:39 +00:00
Timothy Guan-tin Chien
3913ded230 Bug 1510848 - Do not unattach UA Widget Shadow Root if the element is already re-attached to the tree r=emilio,smaug
This patch moves all UA Widget calls to helper functions in Element.cpp. The helper function AttachAndSetUAShadowRoot sets the shadow root in a runnable, so that it is in the same order of NotifyUAWidget* runnables.

Differential Revision: https://phabricator.services.mozilla.com/D13479

--HG--
extra : moz-landing-system : lando
2018-12-15 02:48:46 +00:00
Cosmin Sabou
1186b6f937 Backed out changeset 9bfabcea5227 (bug 1514253) for geckoview crashes on geckoview.test.SessionLifecycleTest.readFromParcel_closeOpenAndLoad. CLOSED TREE 2018-12-15 01:11:34 +02:00
Agi Sferro
a7360dc455 Bug 1513395 - Ask gradle to download all dependencies. r=nalexander
This adds a task to each project called `downloadDependencies`. This task will
go through each configuration and resolve every dependency so that the gradle
cache contains a copy of every file needed for building and running tests. This
is intended to be used together with our nexus oss database but it can be used
locally too.

Note: `downloadDependencies` does not download dependencies added a runtime,
e.g. by plugins like apilint, checkstyle, findbugs... so we still need to run
those tasks to collect their dependencies.

Depends on D14516

Differential Revision: https://phabricator.services.mozilla.com/D14622

--HG--
extra : moz-landing-system : lando
2018-12-14 21:37:37 +00:00
Agi Sferro
46d5e9f8a4 Bug 1513395 - Vendor accessibility-test-framework in m-c. r=nalexander,geckoview-reviewers,snorp
This vendors accessibility-test-framework which has recently been remove by
accident from the Google maven repository, this library can be removed once
https://issuetracker.google.com/issues/120951637 is resolved.

Depends on D14514

Differential Revision: https://phabricator.services.mozilla.com/D14516

--HG--
extra : moz-landing-system : lando
2018-12-14 21:34:06 +00:00
Agi Sferro
95c7276481 Bug 1513395 - Upgrade com.android.tools to 26.2.1. r=snorp,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D14514

--HG--
extra : moz-landing-system : lando
2018-12-14 21:33:05 +00:00