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

3868 Коммитов

Автор SHA1 Сообщение Дата
Kashav Madan 7b36c504c4 Bug 1590540 - Remove BrowserTestUtils.contentPainted, r=mconley
This helper only has 2 callers. Just use BrowserTestUtils.waitForContentEvent
directly.

Depends on D51441

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

--HG--
extra : moz-landing-system : lando
2019-11-08 16:24:40 +00:00
Kashav Madan 53846e37ba Bug 1588193 - Fix BrowserTestUtils.waitForContentEvent with Fission, r=mccr8
This also changes BrowserTestUtils.addContentEventListener to use browsing
contexts to track added listeners and their associated targets.

Depends on D52105

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

--HG--
extra : moz-landing-system : lando
2019-11-07 21:16:01 +00:00
Kashav Madan 86d7dbce4d Bug 1588193 - Swallow InvalidStateError exceptions caused by docshell retrievals, r=mccr8
These are thrown when the actor no longer has a manager but attempts to access
its docshell or browsing context. We may arrive at this state without seeing
a willDestroy() if the process is being shutdown or the actor was destroyed from
the parent.

Depends on D51440

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

--HG--
extra : moz-landing-system : lando
2019-11-07 21:14:53 +00:00
Kashav Madan b04d861c5d Bug 1588193 - Register the ContentEventListener actor for every browsing context, r=mconley
Various BrowserTestUtils.waitForContentEvent call sites expect to see an event
on a browser element that was open before the call was made. For this reason,
each of the browsers need to also have a ContentEventListener actor.

Depends on D51439

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

--HG--
extra : moz-landing-system : lando
2019-11-07 21:16:01 +00:00
Dorel Luca 97387d0d91 Backed out 4 changesets (bug 1588193) for Broswer-chrome failures on browser/base/content/test/favicons/browser_favicon_change_not_in_document.js. CLOSED TREE
Backed out changeset df4c4004abc5 (bug 1588193)
Backed out changeset 1beab20978b2 (bug 1588193)
Backed out changeset 1ada54e7ba7c (bug 1588193)
Backed out changeset a0d9537d24c6 (bug 1588193)
2019-11-06 21:30:29 +02:00
Kashav Madan 9ee8eab423 Bug 1588193 - Fix BrowserTestUtils.waitForContentEvent with Fission, r=mccr8
This also changes BrowserTestUtils.addContentEventListener to use browsing
contexts to track added listeners and their associated targets.

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

--HG--
extra : moz-landing-system : lando
2019-11-06 15:35:18 +00:00
Kashav Madan 6a79513ba4 Bug 1588193 - Register the ContentEventListener actor for every browsing context, r=mconley
Various BrowserTestUtils.waitForContentEvent call sites expect to see an event
on a browser element that was open before the call was made. For this reason,
each of the browsers need to also have a ContentEventListener actor.

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

--HG--
extra : moz-landing-system : lando
2019-11-06 15:35:18 +00:00
Brindusan Cristian 3eaf139d31 Backed out 4 changesets (bug 1588193) for bc failures at browser_mixedcontent_aboutblocked.js. CLOSED TREE
Backed out changeset 0bbb1f92bb47 (bug 1588193)
Backed out changeset 074bb8a6fd68 (bug 1588193)
Backed out changeset b10ec4058ec3 (bug 1588193)
Backed out changeset c90bab12f4cb (bug 1588193)
2019-11-06 02:39:32 +02:00
Kashav Madan 18d9cf260f Bug 1588193 - Fix BrowserTestUtils.waitForContentEvent with Fission, r=mccr8
This also changes BrowserTestUtils.addContentEventListener to use browsing
contexts to track added listeners and their associated targets.

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

--HG--
extra : moz-landing-system : lando
2019-11-05 21:52:36 +00:00
Kashav Madan 9e963221bc Bug 1588193 - Register the ContentEventListener actor for every browsing context, r=mconley
Various BrowserTestUtils.waitForContentEvent call sites expect to see an event
on a browser element that was open before the call was made. For this reason,
each of the browsers need to also have a ContentEventListener actor.

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

--HG--
extra : moz-landing-system : lando
2019-11-05 21:52:23 +00:00
Anny Gakhokidze 1045c9332f Bug 1585777 - Part 1: Make BrowserTestUtils.loadURI Fission-compatible, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D50370

--HG--
extra : moz-landing-system : lando
2019-10-30 21:44:15 +00:00
Kevin Jacobs ac1216ba9e Bug 1592175 - Enable TLS session tickets in ssltunnel r=keeler
This patch updates ssltunnel to enable TLS session tickets. With the NSS change to update the TLS version default to 1.3 (where it was 1.2 prior), this is necessary to support resumption.

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

--HG--
extra : moz-landing-system : lando
2019-10-30 21:26:38 +00:00
Gijs Kruitbosch f02d1fa467 Bug 1591183 - fix tabbrowser's expectations about state_start with documentchannel and add a test, r=dao
Differential Revision: https://phabricator.services.mozilla.com/D51081

--HG--
extra : moz-landing-system : lando
2019-10-30 19:10:21 +00:00
Andrew McCreight 07dc2afa5b Bug 1586393, part 2 - Fix BrowserTestUtils.addContentEventListener() with Fission. r=mconley
The current implementation of addContentEventListener() is centered
around the message manager. When any message manager goes away, it
cleans up everything, which does not work when Fission is enabled and
we do a cross-process navigation.

My new implementation instead uses window actors. Message manager
shared state is used to store the set of expected event listeners. New
windows, after the function is called for the first time in a test,
will get listeners added properly. Of windows that exist at the first
time the function is called in a test, only windows associated with
the BC of the browser that is passed in will get added, which is a
disadvantage relative to the current setup. That could probably be
fixed.

We auto remove at the end of the test, not when any message manager is
torn down, so there's never a need to disable auto removal.

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

--HG--
extra : moz-landing-system : lando
2019-10-29 21:29:02 +00:00
Andrew McCreight 9cdc76e45f Bug 1586393, part 1 - Add test-complete observer notification. r=mconley
This allows generic code, like a testing JSM, to do clean up when a
test completes, in a way that will work in different test suites.

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

--HG--
extra : moz-landing-system : lando
2019-10-29 21:25:02 +00:00
Kashav Madan 606d4d405a Bug 1590774 - Fix shutdown leaks in browser_newWindowDrop.js, r=nika
Adds an additional "unload" listener in BrowserTestUtils.browserLoaded to
unregister the original load listener and reject the promise.

This was broken because BrowserTestUtils.waitForNewWindow adds an observer that
fires for every new window. The observer calls BrowserTestUtils.browserLoaded on
all of these windows, and since only one of them loads the URL we care about, we
never unregister the event listeners from the remaining windows.

Depends on D49005

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

--HG--
extra : moz-landing-system : lando
2019-10-29 16:23:42 +00:00
Kashav Madan f1dca37d04 Bug 1578465 - Remove the content-utils.js framescript, r=nika
This also updates the two functions (BrowserTestUtils.firstBrowserLoaded,
browser_broadcastchannel.js#browserFrameLoaded) that rely on the previous
event to use the new one.

Depends on D49001

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

--HG--
extra : moz-landing-system : lando
2019-10-29 16:23:16 +00:00
Kashav Madan 44cb59c817 Bug 1578465 - Make BrowserTestUtils.browserLoaded() Fission-compatiable, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D49001

--HG--
extra : moz-landing-system : lando
2019-10-29 16:23:03 +00:00
Neil Deakin 233e4e8324 Bug 1589664, add BrowserTestUtils methods to listen to observers in the content process, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D49734

--HG--
extra : moz-landing-system : lando
2019-10-29 06:20:40 +00:00
Dana Keeler 2e5c90833c bug 1590888 - reinstate filtering of client certificate selection during the TLS handshake r=kjacobs
Bug 1267643 removed filtering of client certificates based on the
"certificate_authorities" list sent in the client certificate request from the
server in TLS handshakes because it is impossible to implement as specified
without false negatives (i.e. excluding certificates that could be usable but
don't seem to be according to the certificates the client is aware of). In
practice, however, it seems enough users rely on this behavior[0] that we
should add it back until the platform can save client certificate selections
across restarts and the "select one automatically" option is removed (see also
bug 634697).

[0] See e.g. bug 1588703, bug 1590297, bug 1590596, bug 1074195 comment 27,
and any other duplicates of this bug.

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

--HG--
extra : moz-landing-system : lando
2019-10-25 17:11:25 +00:00
Gurzau Raul c40f10546e Backed out 6 changesets (bug 1578465) for mochitest leakcheck failures on a CLOSED TREE.
Backed out changeset 46073b8c1da9 (bug 1578465)
Backed out changeset bd41e1217534 (bug 1578465)
Backed out changeset 38a4c02bc815 (bug 1578465)
Backed out changeset a3857bf2b069 (bug 1578465)
Backed out changeset ca658e02223d (bug 1578465)
Backed out changeset 4420f02e5c3a (bug 1578465)
2019-10-25 02:02:07 +03:00
Geoff Brown 57dbb44533 Bug 1588969 - Add --run-until-failure and --repeat options for |mach geckoview-junit|; r=bc,hiro
Added a loop for repeating the requested test(s).
With --run-until-failure, loop until a test fails.
With --repeat=N, repeat N times. eg, --repeat=1 implies 2 runs total (same as mochitest).
(Incidentally moved code for --enable-webrender since it was not in the appropriate section.)

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

--HG--
extra : moz-landing-system : lando
2019-10-23 22:45:49 +00:00
Kashav Madan 3b22805481 Bug 1578465 - Remove the content-utils.js framescript, r=nika
This also updates the two functions (BrowserTestUtils.firstBrowserLoaded,
browser_broadcastchannel.js#browserFrameLoaded) that rely on the previous
event to use the new one.

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

--HG--
extra : moz-landing-system : lando
2019-10-22 20:44:40 +00:00
Kashav Madan b4ca3b2db3 Bug 1578465 - Make BrowserTestUtils.browserLoaded() Fission-compatiable, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D49001

--HG--
extra : moz-landing-system : lando
2019-10-22 20:44:24 +00:00
Geoff Lankow a8540dfab9 Bug 1589305 - Disable leaked window/docshell reporting for Thunderbird mochitests; r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D49557

--HG--
extra : moz-landing-system : lando
2019-10-18 13:42:44 +00:00
Andrew McCreight 2e32ec2b4b Bug 1589138 - Make addContentEventListener take an options object for the listener. r=Gijs
All but browser_bug744745.js seem to pass even without the fixes I
made, which seems odd.

browser_bug1058164.js is a little odd because it passes in {} instead
of a boolean for the useCapture argument. I think this ends up calling
addEventListener(..., {}, false), which should be the equivalent of
addEventListener(..., {}).

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

--HG--
extra : moz-landing-system : lando
2019-10-16 17:36:44 +00:00
Christian Holler a157a20300 Bug 1587463 - Remove LSan/UBSan suppressions option from automation. r=ahal
Depends on D48786

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

--HG--
extra : moz-landing-system : lando
2019-10-16 16:11:23 +00:00
Geoff Brown c906073cd5 Bug 1585119 - Re-enable many mochitests on android; r=geckoview-reviewers,snorp
Most of these tests have been disabled for a long time; they run well
in the current test environment.
With the additional tests running, task times increase; I have added one
more test chunk for android mochitest-plain.
These tests were identified from a random sampling of mochitest manifests;
I intend to enable more mochitests in future patches.

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

--HG--
extra : moz-landing-system : lando
2019-10-15 15:07:09 +00:00
Brian Grinstead eab92c4995 Bug 1588855 - Remove browser-instrumentation job r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D49326

--HG--
extra : moz-landing-system : lando
2019-10-15 17:47:12 +00:00
Ms2ger 30b4e2a534 Bug 1194860 - Remove dom/imptests; r=jgraham
This leaves the testharness files, because they are used in various mochitests.

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

--HG--
extra : moz-landing-system : lando
2019-10-15 08:22:15 +00:00
shindli 56880b8b3b Backed out changeset 8fb923925923 (bug 1194860) for causing perma mda3 failures in dom/media/webaudio/test/test_convolverNodeChannelInterpretationChanges.html CLOSED TREE
--HG--
extra : histedit_source : f6827f0392c7d385c8a78cb2ec2458cf679afa4a
2019-10-14 19:27:08 +03:00
Ms2ger 6d1c58e46c Bug 1194860 - Remove dom/imptests; r=jgraham
This leaves the testharness files, because they are used in mochitest-chrome
tests in dom/animation/test.

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

--HG--
extra : moz-landing-system : lando
2019-10-14 15:13:32 +00:00
shindli 8aa10c0b78 Backed out changeset 73cbc0f61053 (bug 1194860) for causing lint failure in /builds/worker/checkouts/gecko/dom/imptests/testharness.js CLOSED TREE 2019-10-14 16:43:11 +03:00
Ms2ger ea25c9e00d Bug 1194860 - Remove dom/imptests; r=jgraham
This leaves the testharness files, because they are used in mochitest-chrome
tests in dom/animation/test.

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

--HG--
extra : moz-landing-system : lando
2019-10-14 12:59:10 +00:00
Andrew Halberstadt 142851700b Bug 1587206 - [lint.flake8] Enable F811 across the tree, r=sylvestre
This prevents redefinition of unused variables.

Depends on D48610

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

--HG--
extra : moz-landing-system : lando
2019-10-10 18:51:20 +00:00
Kashav Madan 8dc620b8bc Bug 1583240 - Make BrowserTestUtils.waitForDocLoadAndStopIt Fission-compatible, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D47649

--HG--
extra : moz-landing-system : lando
2019-10-10 23:21:22 +00:00
Kris Maglione 3dfef17d14 Bug 1587580 - Use the actual source filename and line number for SpecialPowers.spawn callback. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D48758

--HG--
extra : moz-landing-system : lando
2019-10-09 21:05:46 +00:00
Johann Hofmann d0da7de770 Bug 1475404 - Make EventUtils available to use in content task scopes. r=mconley,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D47588

--HG--
extra : moz-landing-system : lando
2019-10-09 18:03:35 +00:00
Perry Jiang 289cec9298 Bug 1456995 - enable Service Workers' parent-intercept mode on Nightly r=asuth,jgraham
Due to limitations in the test harness, the "serviceworker_e10s" (for mochitest
and xpcshell) and "sw-e10s" (for WPT) values will match mozinfo's "nightly_build"
value, unless overridden by "--setpref dom.serviceWorkers.parent_intercept=..."
provided at the CLI.

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

--HG--
extra : moz-landing-system : lando
2019-10-08 23:47:48 +00:00
Neil Deakin 71ba434e0a Bug 1573839, modify BrowserTestUtils.synthesizeMouse/Key/etc to handle fission. Remove support for passing arrays of selectors and instead modify the last argument to be a browsing context, or browser. Fix up tests that use this obsolete form, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D46307

--HG--
extra : moz-landing-system : lando
2019-10-07 08:51:52 +00:00
Daniel Varga 1a37376531 Backed out 6 changesets (bug 1456995) for devtools failure at browser/browser_aboutdebugging_serviceworker_timeout.js. On a CLOSED TREE
Backed out changeset 2237ceb903a4 (bug 1456995)
Backed out changeset 5ce169fa82fb (bug 1456995)
Backed out changeset e64553b959f9 (bug 1456995)
Backed out changeset 7c53d7ca5ef7 (bug 1456995)
Backed out changeset 67e23c511201 (bug 1456995)
Backed out changeset e127b732bab0 (bug 1456995)
2019-10-05 01:58:08 +03:00
Perry Jiang 278a5d0501 Bug 1456995 - enable Service Workers' parent-intercept mode on Nightly r=asuth,jgraham
Due to limitations in the test harness, the "serviceworker_e10s" (for mochitest
and xpcshell) and "sw-e10s" (for WPT) values will match mozinfo's "nightly_build"
value, unless overridden by "--setpref dom.serviceWorkers.parent_intercept=..."
provided at the CLI.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 14:34:48 +00:00
Geoff Brown 0e59b1bfda Bug 1585416 - Disable support for Android mochitest-chrome in mochitest harness; r=bc
mochitest-chrome is not supported with geckoview and attempts to run chrome
tests with geckoview result in a hang. mach test runs can accidentally attempt
to run chrome tests if the flavor is not specified and the directory contains
a chrome.ini manifest.
Existing harness support allows for filtering flavors based on buildapp, like
android, but not by run-time app like geckoview, so this patch disables
mochitest-chrome for all android runs.

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

--HG--
extra : moz-landing-system : lando
2019-10-02 17:43:27 +00:00
Nika Layzell 5ce2b25357 Bug 1584271 - Add a 'Running with fission:' log message to runtests.py, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D47296

--HG--
extra : moz-landing-system : lando
2019-09-26 19:58:12 +00:00
Kris Maglione e57df5ef8b Bug 1583386: Part 2 - Enable DocumentChannel in mochitest Fission runs. r=mattwoodrow,ahal
Differential Revision: https://phabricator.services.mozilla.com/D47009

--HG--
extra : moz-landing-system : lando
2019-09-26 20:02:44 +00:00
Kris Maglione 790387cced Bug 1583386: Part 1 - Enable serviceworker rewrite in mochitest Fission runs. r=mattwoodrow,ahal
Differential Revision: https://phabricator.services.mozilla.com/D47008

--HG--
extra : moz-landing-system : lando
2019-09-26 19:51:28 +00:00
Christoph Kerschbaumer 30285b4a58 Bug 1499354: Add object-src 'none' to the CSP of all about: pages. r=freddyb
Differential Revision: https://phabricator.services.mozilla.com/D46950

--HG--
extra : moz-landing-system : lando
2019-09-26 16:22:41 +00:00
Andrew Halberstadt 898dfb96b4 Bug 1567642 - [lint.flake8] Fix misc flake8 under Python 3 lint issues r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D45417

--HG--
extra : moz-landing-system : lando
2019-09-24 14:44:01 +00:00
Geoff Brown bd569c8e85 Bug 1580832 - Remove robocop test and support files; r=snorp
Removes all the robocop test files and most robocop support. @RobocopTarget annotations and some build configuration is intentionally left untouched at this time, in case there is additional risk involved; a good task for follow-up.

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

--HG--
extra : moz-landing-system : lando
2019-09-24 15:10:21 +00:00
Matthew Noorenberghe 0b4eb51041 Bug 1550631 - Record telemetry for direct navigation to about:logins. r=jaws
Also remove empty `filter` query params.

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

--HG--
extra : moz-landing-system : lando
2019-09-22 15:15:29 +00:00