Commit Graph

28649 Commits

Author SHA1 Message Date
chrmod
eb49662142 Bug 1539144 - GeckoView extensions support chrome.tabs.create r=snorp,agi,geckoview-reviewers,robwu,rpl
Differential Revision: https://phabricator.services.mozilla.com/D32796

--HG--
rename : mobile/android/geckoview/src/androidTest/assets/web_extensions/messaging/background.js => mobile/android/geckoview/src/androidTest/assets/web_extensions/tabs/background.js
extra : moz-landing-system : lando
2019-07-11 10:18:02 +00:00
John Lin
95099600d5 Bug 1563734 - always sync session ID from remote decoder. r=jya
In bug 1552607/D36382, RemoteDataDecoder always increases session ID but
CodecProxy only performs flush IPC when neccessary. This will cause the
ID numbers out of sync and prevent remote decoder from receiving any
more input. By reading the session ID in dequeued input samples, the
numbers can always be in sync.

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

--HG--
extra : moz-landing-system : lando
2019-07-11 07:25:30 +00:00
Nicholas Nethercote
4dada5f88a Bug 1562305 - Make browser.cache.memory.capacity a static pref. r=michal
Differential Revision: https://phabricator.services.mozilla.com/D37182

--HG--
extra : moz-landing-system : lando
2019-07-11 04:11:39 +00:00
Nicholas Nethercote
678da168fa Bug 1562305 - Make browser.cache.disk.smart_size.enabled a static pref. r=michal
Differential Revision: https://phabricator.services.mozilla.com/D37181

--HG--
extra : moz-landing-system : lando
2019-07-11 04:40:17 +00:00
Nicholas Nethercote
dcb65203e0 Bug 1562305 - Make browser.cache.memory.enable a static pref. r=michal
Differential Revision: https://phabricator.services.mozilla.com/D37178

--HG--
extra : moz-landing-system : lando
2019-07-11 04:10:13 +00:00
Nicholas Nethercote
17b83b6b8b Bug 1562305 - Make browser.cache.disk.enable a static pref. r=michal
Differential Revision: https://phabricator.services.mozilla.com/D37177

--HG--
extra : moz-landing-system : lando
2019-07-11 04:09:50 +00:00
Agi Sferro
cbde79674f Bug 1545931 - Double timeout for CrashTest.crashContent. r=bholley
This test is a little slow sometimes and times out (even though nothing is
going wrong). Doubling the timeout seems to be enough.

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

--HG--
extra : moz-landing-system : lando
2019-07-11 03:31:57 +00:00
Gijs Kruitbosch
c71b8f39cc Bug 1565064 - remove obsolete pref from default files, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D37657

--HG--
extra : moz-landing-system : lando
2019-07-10 22:26:35 +00:00
James Willcox
d8e61a2603 Bug 1564846 - Do better at managing secondary windows in TestRunnerActivity r=kats
Differential Revision: https://phabricator.services.mozilla.com/D37570

--HG--
extra : moz-landing-system : lando
2019-07-10 15:36:15 +00:00
ksenia
956774ff41 Bug 1563839 - add UA for rolb.santanderbank.com r=twisniewski,rhelmer
Differential Revision: https://phabricator.services.mozilla.com/D37455

--HG--
extra : moz-landing-system : lando
2019-07-09 18:14:03 +00:00
Ciure Andrei
f372470e10 Merge inbound to mozilla-central. a=merge 2019-07-10 12:41:47 +03:00
Nicholas Nethercote
40fa4b7402 Bug 1563996 - [Attempt 2] Make consoleservice.logcat a static pref. r=erahm
Differential Revision: https://phabricator.services.mozilla.com/D37203
2019-07-09 20:59:59 +10:00
Csoregi Natalia
d574162f0d Backed out changeset fb76e4e1d9e0 (bug 1563996) for crashes on consoleservice.logcat. CLOSED TREE 2019-07-09 13:26:14 +03:00
Nicholas Nethercote
508aad2c70 Bug 1563996 - Make consoleservice.logcat a static pref. r=erahm
Differential Revision: https://phabricator.services.mozilla.com/D37203

--HG--
extra : moz-landing-system : lando
2019-07-09 07:59:41 +00:00
Nicholas Nethercote
7c43c6f952 Bug 1563996 - Make browser.xul.error_pages.enabled a static pref. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D37201

--HG--
extra : moz-landing-system : lando
2019-07-09 07:59:03 +00:00
Agi Sferro
68d3e0d0c1 Bug 1553515 - Always send navigation events for about:blank. r=snorp
Some background information on this change:

DocShell loads about:blank when first starting up. This initial load can be
avoided by setting `nodefaultsrc` on the browser element, but this will still
cause some load events related to `about:blank` to fire anyway, as they are
specified in the DOM spec (see e.g. bz's Comment #2 Bug 1447406). In particular
`onSecurityChange` and `onLocationChange` are still fired, `onPageStart` and
onPageStop` are not.

These messages are unreliable and sometimes do not fire, to unrestand why it's
helpful to look at a timeline of the events when starting up a GeckoSession.

page           about:blank ---------------------------------------------------------

nsDocShell     --- startup --- onPageStart --- onLocationChange --- onPageStop -----

busyState      idle ---------- busy ------------------------------------------ idle-
                ^           ^               ^                    ^               ^
geckoview.js   (0)         (1)             (2)                  (3)             (4)

geckoview.js loads in parallel with nsDocShell startup process (and loading of
about:blank). This means that consumers of GeckoView might start receiving
navigation events at any of the points marked with (0) - (4). E.g. if geckoview
starts up at (4) a consumer waiting for onPageStop for `about:blank` will
actually wait forever (this is what happens before this change for our tests).

As it can be seen there's not really a way to detect in which of the (0) - (4)
state DocShell is when starting up geckoview.js. Checking for the busy state is
not enough as an `idle` busy state might mean that we're in (0) or (4).
Furthermore a consumer of geckoview has no way to know which onPageStop
messages to wait for after an initial loadUri as e.g. the following is what
would happen if geckoview.js happens to startup at (3):

- loadUri(hello.html)
- onPageStop (for about:blank)
- onLoadRequest (for hello.html)

which confuses any code that just waits for onPageStop.

Desktop deals with this in `TabProgressListener.onStateChange` where the
initial `about:blank` navigation is ignored and fake events are triggered at a
convenient time.

To patch implements a very similar behavior for geckoview, we ignore the
initial `about:blank` `onLoadRequest` call, set `nodefaultsrc` so `onPageStart`
and `onPageStop` events don't fire and fire the above calls when the
`GeckoViewProgress` module has finished loading.

This makes `about:blank` events deterministic with the exception of reloading
an empty `GeckoSession`, which will often not fire any extra events. To account
for that we load a dummy html page before the tests that used to rely on this
behavior (which would actually fail occasionally due to the startup race
condition explained above).

This makes the tests pass reliably on x86_64 (20/20 runs passed in try).

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

--HG--
extra : moz-landing-system : lando
2019-07-08 21:08:32 +00:00
Agi Sferro
c33d97d67e Bug 1553515 - Re-enable geckoview-junit on x86_64. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D35949

--HG--
extra : moz-landing-system : lando
2019-07-09 00:13:28 +00:00
Agi Sferro
faad566428 Bug 1551278 - Make WebExtension listeners per-extension. r=snorp
Right now listeners for a given native app receive messages from all
WebExtensions. This is wrong as listeners should be extension specific so that
only the intended extension can send messages to the app.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 21:08:15 +00:00
Agi Sferro
32c65ee29f Bug 1553515 - Wait for link color in HistoryDelegateTest.getVisited. r=snorp
This helps making this test more reliable.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 21:08:29 +00:00
Agi Sferro
f7f8ee977b Bug 1553515 - Remove all remaining bits of RDP for tests. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D32594

--HG--
extra : moz-landing-system : lando
2019-07-08 21:08:22 +00:00
Agi Sferro
53e4399d87 Bug 1553515 - Move getLinkColor to WebExtension. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D32593

--HG--
extra : moz-landing-system : lando
2019-07-08 21:08:20 +00:00
Agi Sferro
0f3dc76ea8 Bug 1553515 - Use WebExtension to set prefs in tests. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D32592

--HG--
extra : moz-landing-system : lando
2019-07-08 21:08:18 +00:00
Agi Sferro
47985d1c39 Bug 1553515 - Fix for ContentDelegateTest.autoFill_navigation. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D32591

--HG--
extra : moz-landing-system : lando
2019-07-08 21:08:16 +00:00
Agi Sferro
9c675d278a Bug 1553515 - Add GeckoSessionTestRule.createFromParcel. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D32590

--HG--
extra : moz-landing-system : lando
2019-07-08 21:08:14 +00:00
Agi Sferro
e022f20c31 Bug 1553515 - Use .equals instead of == for GeckoSession. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D32589

--HG--
extra : moz-landing-system : lando
2019-07-08 21:08:07 +00:00
Agi Sferro
5364996b9f Bug 1553515 - Use WebExtension to run content javascript in tests. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D32587

--HG--
extra : moz-landing-system : lando
2019-07-08 21:08:05 +00:00
Agi Sferro
55537adc42 Bug 1553515 - Make sure runtime has started before running tests. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D32584

--HG--
extra : moz-landing-system : lando
2019-07-08 20:48:44 +00:00
Agi Sferro
f23e6ab814 Bug 1553515 - Replace loopUntilIdle -> waitForCondition. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D32583

--HG--
extra : moz-landing-system : lando
2019-07-08 20:48:42 +00:00
Agi Sferro
c54dc66a26 Bug 1553515 - Add GeckoResult.accept. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D32582

--HG--
extra : moz-landing-system : lando
2019-07-08 20:48:35 +00:00
Agi Sferro
f3c69e1f87 Bug 1553515 - Add waitForCondition. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D32581

--HG--
extra : moz-landing-system : lando
2019-07-08 20:48:33 +00:00
Agi Sferro
7371119f56 Bug 1553515 - Use lambads in GeckoResultTest for readability. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D32580

--HG--
extra : moz-landing-system : lando
2019-07-08 20:48:31 +00:00
Agi Sferro
2948bcd9a2 Bug 1553515 - Add FOREGROUND_SERVICE for CrashTest. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D32579

--HG--
extra : moz-landing-system : lando
2019-07-08 20:48:29 +00:00
Agi Sferro
346d13b264 Bug 1553515 - Never reuse session. r=snorp
Reusing sessions doesn't actually save that much time and avoids a lot of
hard-to-debug intermittents.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 20:48:27 +00:00
Agi Sferro
ba4c3abb36 Bug 1553515 - Use javascript to track scrolling instead of ScrollDelegate. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D32577

--HG--
extra : moz-landing-system : lando
2019-07-08 20:48:25 +00:00
Agi Sferro
a9366e6af5 Bug 1553515 - Account for errors in PermissionDelegateTest.geolocation. r=snorp
Sometime the geolocation test fails because the position is not retrieved
quickly enough, this is OK as we're just trying to make sure that the
permission is correct.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 20:48:23 +00:00
Agi Sferro
1049cdd19e Bug 1553515 - Use environment.defaultTimeoutMillis in tests. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D32575

--HG--
extra : moz-landing-system : lando
2019-07-08 20:48:22 +00:00
Agi Sferro
42874778c0 Bug 1553515 - Wait to load a page in crashContentMultipleSessions. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D32574

--HG--
extra : moz-landing-system : lando
2019-07-08 20:48:20 +00:00
Agi Sferro
d28d2f70e2 Bug 1553515 - Don't use reflection in ContentDelegateTest. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D32573

--HG--
extra : moz-landing-system : lando
2019-06-27 21:21:15 +00:00
Jonathan Kingston
31441f82ea Bug 1560455 - rename CodebasePrincipal to ContentPrincipal. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D35504

--HG--
extra : moz-landing-system : lando
2019-07-08 16:37:45 +00:00
Eugen Sawin
4365e8f0ed Bug 1561385 - [1.0] Change GeckoView cookie behavior default to block third-party trackers (ETP). r=snorp,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D36980

--HG--
extra : moz-landing-system : lando
2019-07-08 14:47:15 +00:00
Mihai Alexandru Michis
4837addb3d Bug 1542525 - Disable PermissionDelegateTest.notification_reject and TextInputDelegateTest.restartInput_temporaryFocus for frequent failures r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D37255

--HG--
extra : moz-landing-system : lando
2019-07-08 14:16:26 +00:00
Noemi Erli
bdf68fe902 Bug 1561844 - ES lint failure fix CLOSED TREE 2019-07-08 17:03:25 +03:00
Andrei Lazar
5f0926e20d Bug 1561844 Remove OpenH264 plugin from about:addons r=VladBaicu
Removed OpenH264 plugin from addons list for users that doesn't have it installed.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 12:15:44 +00:00
Mihai Alexandru Michis
6484e16fce Bug 1532186 - Disable SessionLifecycleTest.readFromParcel_throwOnAlreadyOpen for frequent failures r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D37236

--HG--
extra : moz-landing-system : lando
2019-07-08 12:14:41 +00:00
Karan Sapolia
64633547a3 Bug 1562903 - Fix adding a search engine from a web page on android. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D37456

--HG--
extra : moz-landing-system : lando
2019-07-09 19:52:46 +00:00
Jan Henning
04b5ee610a Bug 1563039 - Fix erroneous base domain highlighting. r=VladBaicu
Domain highlighting needs to find the *last* instance of the base domain within
the domain part of the URL. Otherwise, there's a chance we mistakenly highlight
(parts of) a subdomain if it matches the base domain, too.

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

--HG--
extra : moz-landing-system : lando
2019-07-09 11:43:32 +00:00
Johan Lorenzo
fb4aabb03b Bug 1557269 - part 1: Re-expose all maven artifacts and beetmove them r=mtabara
Differential Revision: https://phabricator.services.mozilla.com/D34865

--HG--
extra : moz-landing-system : lando
2019-07-05 15:19:14 +00:00
Dylan Roeh
3a35c73191 Bug 1563353 - Disable two PromptDelegate tests for intermittent failures. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D37071

--HG--
extra : moz-landing-system : lando
2019-07-05 15:19:48 +00:00
Randall E. Barker
0f6b776ba1 Bug 1556540 - Fix GeckoSession.loadData() so that it can load data URLs r=geckoview-reviewers,agi,esawin,snorp
Differential Revision: https://phabricator.services.mozilla.com/D37343

--HG--
extra : moz-landing-system : lando
2019-07-09 17:27:05 +00:00
Andrei Lazar
2aa60f3671 Bug 1554071 Added support for Enhanced Tracking Protection. r=esawin
Exposed "Enabled, excluding tracking cookies" Cookie behavior option.

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

--HG--
extra : moz-landing-system : lando
2019-07-09 12:38:06 +00:00