Dorel Luca
46f8e543d9
Backed out 4 changesets (bug 1716963) for WPT failures in websockets/basic-auth.any.serviceworker.html?wpt_flags=h2. CLOSED TREE
...
Backed out changeset adb5fd73a3bc (bug 1716963)
Backed out changeset 6b896d1cd3db (bug 1716963)
Backed out changeset 02641f631413 (bug 1716963)
Backed out changeset 995c3b9b36dc (bug 1716963)
2021-06-24 03:09:49 +03:00
James Graham
8b51312eea
Bug 1716963 - Deserialize marionette message earlier, r=webdriver-reviewers,whimboo
...
This avoid the weirdness where we reach into the binary message data to
get the message type and then unconditionally deserialize as JSON anyway.
Differential Revision: https://phabricator.services.mozilla.com/D118452
2021-06-23 19:01:20 +00:00
James Graham
2c22583b9b
Bug 1716963 - Guard access to marionette socket with a lock, r=webdriver-reviewers,whimboo
...
This should ensure that we can't end up with multiple threads
interleaving reads or writes on the socket.
Differential Revision: https://phabricator.services.mozilla.com/D118148
2021-06-23 19:01:20 +00:00
James Graham
0445a443c0
Bug 1716963 - Don't call cleanup from __del__ if it already ran, r=webdriver-reviewers,whimboo
...
Allow marionette users to opt out of __del__ doing any work by first
explictly calling cleanup().
Differential Revision: https://phabricator.services.mozilla.com/D118147
2021-06-23 19:01:19 +00:00
James Graham
6164e66b1e
Bug 1716963 - Rewrite the message recv function in marionette, r=webdriver-reviewers,whimboo
...
The previous function used early return in a way that made it hard to
follow, and made undocumented assumptions about the minimum possible
size of a message. This version is intended to have clearer control
flow and make the assumptions more explicit.
Differential Revision: https://phabricator.services.mozilla.com/D118146
2021-06-23 19:01:19 +00:00
Henrik Skupin
f6de2de4ab
Bug 1527674 - [marionette] Always quit the browser for tests in test_profile_management.py. r=webdriver-reviewers,jdescottes
...
Differential Revision: https://phabricator.services.mozilla.com/D118322
2021-06-21 10:50:01 +00:00
surajeet310
535edf75ec
Bug 1714688 - Removed 'if PY2' logic from testing/marionette r=mhentges,webdriver-reviewers,jgraham
...
Python2 is no longer used in testing/marionette
Differential Revision: https://phabricator.services.mozilla.com/D118037
2021-06-16 19:21:00 +00:00
Henrik Skupin
fbc78630d6
Bug 1715517 - [marionette] Only return moz:debuggerAddress capability if CDP is active. r=webdriver-reviewers,jdescottes
...
Differential Revision: https://phabricator.services.mozilla.com/D117289
2021-06-14 07:01:54 +00:00
Julian Descottes
5f47d42219
Bug 1714348 - [marionette] Update chrome imports for Marionette modules to /remote/content/marionette r=webdriver-reviewers,Gijs,whimboo
...
Differential Revision: https://phabricator.services.mozilla.com/D116732
2021-06-07 10:08:24 +00:00
Julian Descottes
1ee8695215
Bug 1713775 - [marionette] Fail session creation if the webSocketUrl capability is passed r=remote-protocol-reviewers,marionette-reviewers,jgraham
...
Until a BiDi implementation can be successfully started, creating a session with the webSocketUrl capability should throw.
Differential Revision: https://phabricator.services.mozilla.com/D116590
2021-06-02 14:30:23 +00:00
Henrik Skupin
2c6099421a
Bug 1693993 - [marionette] Move Marionette server code to /remote/marionette. r=remote-protocol-reviewers,marionette-reviewers,jdescottes,webdriver-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D106311
2021-05-31 17:36:06 +00:00
Alexandru Michis
d30bd50d0f
Backed out changeset 37f2f9ef6ef8 (bug 1693993) for containing unreviewed changes.
...
CLOSED TREE
2021-05-31 15:55:11 +03:00
Henrik Skupin
55d4518049
Bug 1693993 - [marionette] Move Marionette server code to /remote/marionette. r=remote-protocol-reviewers,marionette-reviewers,jdescottes,webdriver-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D106311
2021-05-31 08:56:32 +00:00
James Graham
d9d050317e
Bug 1712994 - Remove block argument from wptserve consumers, r=whimboo,marionette-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D116104
2021-05-27 14:19:06 +00:00
Niklas Goegge
643d999174
Bug 1648825 - Ensure that Sec-Fetch-Site is only 'none' if the load was user triggered. r=ckerschb,marionette-reviewers,whimboo
...
Differential Revision: https://phabricator.services.mozilla.com/D109643
2021-05-25 17:37:08 +00:00
Olli Pettay
8773a51a50
Bug 1711753 - Ensure the right URI is used when exempting about: pages from bfcache, r=peterv,marionette-reviewers,whimboo
...
This fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1710380 and
https://bugzilla.mozilla.org/show_bug.cgi?id=1711733
Differential Revision: https://phabricator.services.mozilla.com/D115602
2021-05-25 12:38:55 +00:00
Henrik Skupin
e2bfd9a463
Bug 1695031 - Update Marionette and Remote Agent docs for --disable-webdriver build flag. r=remote-protocol-reviewers,marionette-reviewers,jdescottes
...
Differential Revision: https://phabricator.services.mozilla.com/D115592
2021-05-25 09:13:29 +00:00
Henrik Skupin
8a2c2c3a05
Bug 1661591 - [marionette] Inform the main thread when command in child actor has been completed. r=marionette-reviewers,webdriver-reviewers,jdescottes
...
Inform the main thread of the content process when the
command of the child command actor that causes the DOM
to change has been completed. It allows it to process
async follow-up tasks before the actual reply is sent
to the parent command actor.
Differential Revision: https://phabricator.services.mozilla.com/D115632
2021-05-21 04:37:39 +00:00
Andreea Pavel
87ae6eae9f
Backed out 3 changesets (bug 1695911, bug 1648825) for bc failures at browser_navigation.js on a CLOSED TREE
...
Backed out changeset 1d7e78cac600 (bug 1695911)
Backed out changeset d90566e41269 (bug 1648825)
Backed out changeset 5aece2a17f5d (bug 1648825)
2021-05-20 18:59:30 +03:00
Henrik Skupin
d64b384c81
Bug 1682062 - [marionette] Added Marionette unit tests for unloaded tab behavior. r=marionette-reviewers,jdescottes
...
Differential Revision: https://phabricator.services.mozilla.com/D115590
2021-05-20 12:58:33 +00:00
Niklas Goegge
f361b2288f
Bug 1648825 - Ensure that Sec-Fetch-Site is only 'none' if the load was user triggered. r=ckerschb,marionette-reviewers,whimboo
...
Differential Revision: https://phabricator.services.mozilla.com/D109643
2021-05-20 11:06:11 +00:00
Dana Keeler
a6eb3f69cd
Bug 1711599 - remove unused HSTS dynamic preloading implementation r=rmf,remote-protocol-reviewers,marionette-reviewers,whimboo
...
This patch removes the ability for Firefox profiles to receive dynamic HSTS
preloading information via kinto/remote settings. This feature was implemented
some time ago but was never used. It is being removed to make upcoming changes
easier.
Differential Revision: https://phabricator.services.mozilla.com/D115315
2021-05-20 00:27:12 +00:00
Henrik Skupin
baae4ef29d
Bug 1691047 - [marionette] Restrict to a single active WebDriver session only. r=marionette-reviewers,jdescottes
...
Differential Revision: https://phabricator.services.mozilla.com/D114939
2021-05-19 18:12:10 +00:00
Henrik Skupin
14cfbee5a9
Bug 1710370 - [marionette] Only handle an opened modal dialog when an active session is present. r=marionette-reviewers,jgraham
...
Differential Revision: https://phabricator.services.mozilla.com/D114997
2021-05-19 15:50:00 +00:00
Henrik Skupin
febafb8cbf
Bug 1710370 - [marionette] Hardening "WebDriver:DeleteSession". r=marionette-reviewers,jgraham
...
Unregistering the JSWindowActors has to happen after all the
registered listeners and observers have been removed to avoid
possible race conditions.
Differential Revision: https://phabricator.services.mozilla.com/D114996
2021-05-19 15:50:00 +00:00
Henrik Skupin
3f77473883
Bug 1710370 - [marionette] Hardening getMarionetteCommandsActorProxy for null browsing contexts. r=marionette-reviewers,jdescottes
...
Differential Revision: https://phabricator.services.mozilla.com/D114995
2021-05-19 15:50:00 +00:00
Henrik Skupin
b5d77875cb
Bug 1710370 - [marionette] With no active session getBrowsingContext() has to return null. r=marionette-reviewers,jdescottes
...
Differential Revision: https://phabricator.services.mozilla.com/D114832
2021-05-19 15:49:59 +00:00
Henrik Skupin
d0d78f21f0
Bug 1710935 - [marionette] Always return proxy capabilities for WebDriver:NewSession. r=marionette-reviewers,webdriver-reviewers,jdescottes
...
Differential Revision: https://phabricator.services.mozilla.com/D115129
2021-05-19 15:33:11 +00:00
Butkovits Atila
2f484063ff
Backed out changeset 0cc6b9d31a1d (bug 1710935) for causing failures at test_session.js and timeouts.py. CLOSED TREE
2021-05-18 00:05:30 +03:00
Henrik Skupin
ff5074f2b2
Bug 1710935 - [marionette] Always return proxy capabilities for WebDriver:NewSession. r=marionette-reviewers,webdriver-reviewers,jdescottes
...
Differential Revision: https://phabricator.services.mozilla.com/D115129
2021-05-17 19:45:12 +00:00
Alex Lopez
455d9a088b
Bug 1696251 - Pass MachCommandBase object as first argument for Mach Commands. r=mhentges,remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers
...
As an intermediate step to allow mach commands as standalone functions, the MachCommandBase
subclass instance that currently corresponds to self has to be made available as a separate
argument (named command_context).
Differential Revision: https://phabricator.services.mozilla.com/D109650
2021-05-17 16:15:58 +00:00
Julian Descottes
8b5b9036b5
Bug 1680479 - [marionette] Use stable unique ids as window handles r=marionette-reviewers,webdriver-reviewers,whimboo
...
Differential Revision: https://phabricator.services.mozilla.com/D113879
2021-05-17 13:26:26 +00:00
Valentin Gosu
aa1e738320
Bug 1703805 - Remove marionette FTP proxying support. r=marionette-reviewers,webdriver-reviewers,jdescottes
...
Depends on D112906
Differential Revision: https://phabricator.services.mozilla.com/D111256
2021-05-12 17:12:13 +00:00
Nika Layzell
f7e496bbeb
Bug 1708734 - Part 4: Don't create the actor for some JSActor events, r=mconley,marionette-reviewers,whimboo
...
Differential Revision: https://phabricator.services.mozilla.com/D114794
2021-05-11 17:29:25 +00:00
Henrik Skupin
a957c5485b
Bug 1704697 - [marionette] Use the XULFrameLoaderCreated event to detect remoteness changes. r=marionette-reviewers,smaug,jdescottes
...
Especially with BFCache enabled for Fission there is no new
browsing context created when a page comes out of the cache.
As such the current logic to detect remoteness changes doesn't
work. Instead the "XULFrameLoaderCreated" event on the tabbrowser
object can be used instead, which is always fired.
Differential Revision: https://phabricator.services.mozilla.com/D113769
2021-05-11 13:34:05 +00:00
Henrik Skupin
59630f1ad4
Bug 1704697 - [marionette] Add addEventListener and removeEventListener to MobileTabBrowser shim. r=marionette-reviewers,agi,jgraham
...
Differential Revision: https://phabricator.services.mozilla.com/D114771
2021-05-11 13:34:05 +00:00
Henrik Skupin
b58a90ec5f
Bug 1704697 - [marionette] Don't require a page unload event for navigation when a remoteness change occurred. r=marionette-reviewers,smaug,jdescottes
...
When there is a browsing context change the order of page load
events is not guaranteed. As such a "pagehide" event from the
current page might be received after a "pageshow" event from
the target page.
Differential Revision: https://phabricator.services.mozilla.com/D113768
2021-05-11 13:34:05 +00:00
Henrik Skupin
bdef6a5fc4
Bug 1704697 - [marionette] Remove unused frameRegsPending property from Context class. r=marionette-reviewers,jdescottes
...
Differential Revision: https://phabricator.services.mozilla.com/D113766
2021-05-11 13:34:04 +00:00
Iulian Moraru
e436deb69c
Bug 1708191
- fixed eslint failures. a=lint-fix CLOSED TREE
2021-05-11 09:01:20 +03:00
Henrik Skupin
35dbb8baa7
Bug 1708191
- [marionette] Reduce memory footprint when checking for open user prompts. r=marionette-reviewers,Gijs
...
Calling "getTabDialogBox()" and "getTabModalPromptBox()"
unnecessarily creates new instances for
"TabModalPromptBox" and "TabDialogBox". To avoid that
directly access "tabDialogBox" and "tabModalPromptBox"
on the content browser.
Differential Revision: https://phabricator.services.mozilla.com/D114638
2021-05-11 05:08:28 +00:00
Butkovits Atila
0b90caf494
Backed out 4 changesets (bug 1704697) for causing wpt failures. CLOSED TREE
...
Backed out changeset 6f587a056ef3 (bug 1704697)
Backed out changeset 079b8863727b (bug 1704697)
Backed out changeset 64e2c34d5cbb (bug 1704697)
Backed out changeset e2a390ce81a9 (bug 1704697)
2021-05-10 15:47:09 +03:00
Henrik Skupin
3e8e88a04a
Bug 1704697 - [marionette] Use the XULFrameLoaderCreated event to detect remoteness changes. r=marionette-reviewers,smaug,jdescottes
...
Especially with BFCache enabled for Fission there is no new
browsing context created when a page comes out of the cache.
As such the current logic to detect remoteness changes doesn't
work. Instead the "XULFrameLoaderCreated" event on the tabbrowser
object can be used instead, which is always fired.
Differential Revision: https://phabricator.services.mozilla.com/D113769
2021-05-10 12:05:35 +00:00
Henrik Skupin
13574cc385
Bug 1704697 - [marionette] Don't require a page unload event for navigation when a remoteness change occurred. r=marionette-reviewers,smaug,jdescottes
...
When there is a browsing context change the order of page load
events is not guaranteed. As such a "pagehide" event from the
current page might be received after a "pageshow" event from
the target page.
Differential Revision: https://phabricator.services.mozilla.com/D113768
2021-05-10 12:05:35 +00:00
Henrik Skupin
77b18fb2de
Bug 1704697 - [marionette] Remove unused frameRegsPending property from Context class. r=marionette-reviewers,jdescottes
...
Differential Revision: https://phabricator.services.mozilla.com/D113766
2021-05-10 12:05:34 +00:00
Henrik Skupin
aa66989830
Bug 1480107 - [geckodriver] Use "WebDriver:AcceptAlert" instead of "WebDriver:AcceptDialog". r=webdriver-reviewers,marionette-reviewers,jgraham
...
Differential Revision: https://phabricator.services.mozilla.com/D114148
2021-05-07 20:37:08 +00:00
Henrik Skupin
12165e8b40
Bug 1708972 - [marionette] findModalDialogs should not return a not yet finished loading dialog. r=marionette-reviewers,webdriver-reviewers,Gijs,jdescottes
...
Differential Revision: https://phabricator.services.mozilla.com/D114351
2021-05-07 18:43:03 +00:00
Henrik Skupin
05ea26d8c4
Bug 1686741 - [marionette] Add support for the new content modal dialog. r=Gijs,marionette-reviewers,jdescottes
...
Differential Revision: https://phabricator.services.mozilla.com/D104814
2021-04-29 12:53:26 +00:00
Valentin Gosu
8687ca2149
Bug 1574475 - Don't check marionette FTP proxy support in test_session.js r=whimboo,marionette-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D112906
2021-04-28 09:33:47 +00:00
Julian Descottes
787af6e1f4
Bug 1691500 - [marionette] Move open/close/focusWindow from browser module to window-manager.js r=marionette-reviewers,whimboo
...
Depends on D109432
Differential Revision: https://phabricator.services.mozilla.com/D111648
2021-04-26 13:01:07 +00:00
Julian Descottes
8c14a1a25f
Bug 1691500 - [marionette] Move findWindow to window-manager.js r=marionette-reviewers,whimboo
...
Depends on D109431
Move the helper, rename it and add another API to `getWindowProperties`.
Allows to remove 2 call sites to findWindow in reftest.js, which didn't really try to "find" a window, and instead only needed to convert the window to a window handle/properties object.
Differential Revision: https://phabricator.services.mozilla.com/D109432
2021-04-26 13:01:07 +00:00