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

1262 Коммитов

Автор SHA1 Сообщение Дата
Mark Banner 2ffde1e92f Bug 1792341 - Migrate more toolkit/modules consumers to use direct ES module import. r=Gijs,webdriver-reviewers,perftest-reviewers,necko-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,sgalich,owlish,bytesized,AlexandruIonescu,whimboo,mconley,mixedpuppy
Mainly automated changes. Some manual ESLint fixes and whitespace cleanup.

Differential Revision: https://phabricator.services.mozilla.com/D158452
2022-10-18 11:21:26 +00:00
Benjamin VanderSloot 066e83f229 Bug 1793647, part 1 - Create new Sec-Fetch-Dest value for WebIdentity (FedCM), r=freddyb,webdriver-reviewers,whimboo
This is to keep up with WHATWG Fetch https://github.com/whatwg/fetch/pull/1495 .
Also revised to not include the new destination type in the RequestDestination enum, per https://github.com/whatwg/fetch/pull/1500 .

I added an element to nsIContentPolicy::nsContentPolicyType as my starting point and
proceeded from there, following the instructions at the end of the internal enum.

Differential Revision: https://phabricator.services.mozilla.com/D158657
2022-10-17 16:07:50 +00:00
Julian Descottes fc6fd7345d Bug 1765619 - [webdriver-bidi] Add context parameter to browsingContext.create command r=webdriver-reviewers,Sasha,whimboo
Depends on D159334

Differential Revision: https://phabricator.services.mozilla.com/D143651
2022-10-14 20:43:01 +00:00
Julian Descottes 60cb11e9ff Bug 1765619 - [remote] Add getTabForBrowsingContext helper in TabManager r=webdriver-reviewers,whimboo
Depends on D159121

Differential Revision: https://phabricator.services.mozilla.com/D159334
2022-10-14 20:43:01 +00:00
Julian Descottes e41ebdb2d7 Bug 1765619 - [remote] Add referenceTab parameter to TabManager addTab r=webdriver-reviewers,Sasha,whimboo
The updated version of the browsingContext.create spec mentions that the new tab should be added right after the reference context when
provided. We need to extend TabManager.addTab in order to support this behavior:

Differential Revision: https://phabricator.services.mozilla.com/D159121
2022-10-14 20:43:00 +00:00
David Burns d250baab62 Bug 1771942: Update the Selenium Atoms used by Marionette. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D151123
2022-10-13 11:40:59 +00:00
Henrik Skupin 268d0ae791 Bug 1794553 - [marionette] isReftestReady has to check the navigation status based on the webProgress' browsing context. r=webdriver-reviewers,Sasha,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D159022
2022-10-11 13:17:40 +00:00
Alexandre Poirot 76aed8f004 Bug 1793575 - [devtools] Convert jsdebugger.jsm to jsdebugger.sys.mjs. r=Honza,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D158571
2022-10-06 14:21:22 +00:00
Henrik Skupin 00fc04265e Bug 1792088 - [remote] Prefer IPv4 over IPv6 for resolved IP addresses of localhost. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D158563
2022-10-05 14:54:50 +00:00
Henrik Skupin e75a84eaa1 Bug 1141335 - [marionette] Use in_app by default for quit() and restart(). r=webdriver-reviewers,jdescottes,perftest-reviewers,AlexandruIonescu
Hereby the "in_app" argument is required to be specified in case some
other argument eg. "clean" requires a termination of the application.

Differential Revision: https://phabricator.services.mozilla.com/D157219
2022-10-04 09:04:25 +00:00
James Graham 114a5d427e Bug 1791736 - Move the caret to the end for send_keys r=webdriver-reviewers,jdescottes,whimboo
Only if the element isn't already focused. If it is already focused,
don't alter the focus.

Differential Revision: https://phabricator.services.mozilla.com/D158084
2022-10-03 15:18:41 +00:00
Julian Descottes f7b11c4769 Bug 1790473 - [remote] Remove remote/.eslintrc.js r=webdriver-reviewers,whimboo
Depends on D158298

Differential Revision: https://phabricator.services.mozilla.com/D158299
2022-09-30 11:08:09 +00:00
Julian Descottes 5db63c4432 Bug 1790473 - [cdp] Convert /remote/cdp JSM modules to ESM r=webdriver-reviewers,whimboo
Depends on D158297

Differential Revision: https://phabricator.services.mozilla.com/D158298
2022-09-30 11:08:09 +00:00
Julian Descottes 3635b10bad Bug 1790472 - [bidi] Convert /remote/webdriver-bidi JSM modules to ESM r=webdriver-reviewers,whimboo
Depends on D158296

Differential Revision: https://phabricator.services.mozilla.com/D158297
2022-09-30 11:08:08 +00:00
Julian Descottes 4a1ddfd485 Bug 1790471 - [marionette] Convert /remote/marionette JSM modules to ESM r=webdriver-reviewers,whimboo
Depends on D158295

Differential Revision: https://phabricator.services.mozilla.com/D158296
2022-09-30 11:08:08 +00:00
Julian Descottes bf82c5039a Bug 1790468 - [remote] Convert /remote/server JSM modules to ESM r=webdriver-reviewers,whimboo
Depends on D158294

Differential Revision: https://phabricator.services.mozilla.com/D158295
2022-09-30 11:08:07 +00:00
Julian Descottes b24d46c99d Bug 1790468 - [remote] Convert /remote/components JSM modules to ESM r=webdriver-reviewers,whimboo
Depends on D158293

Differential Revision: https://phabricator.services.mozilla.com/D158294
2022-09-30 11:08:07 +00:00
Julian Descottes d1f7dbe55e Bug 1790468 - [remote] Convert /remote/shared JSM modules to ESM r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D158293
2022-09-30 11:08:06 +00:00
Butkovits Atila 539f87fe4f Backed out changeset 3e220bf19d7b (bug 1141335) for causing failures at awsy/test_memory_usage.py. CLOSED TREE 2022-09-30 02:12:58 +03:00
Henrik Skupin 932d46b87f Bug 1141335 - [marionette] Use in_app by default for quit() and restart(). r=webdriver-reviewers,jdescottes
Hereby the "in_app" argument is required to be specified in case some
other argument eg. "clean" requires a termination of the application.

Differential Revision: https://phabricator.services.mozilla.com/D157219
2022-09-29 18:34:25 +00:00
Mark Banner 8d1ebcb9d6 Bug 1792365 - Convert toolkit/modules consumers to use ES module imports directly. r=webdriver-reviewers,perftest-reviewers,geckoview-reviewers,extension-reviewers,preferences-reviewers,desktop-theme-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,robwu,Gijs,sgalich,bytesized,AlexandruIonescu,dao,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D158094
2022-09-29 06:52:34 +00:00
Henrik Skupin d5c7f69016 Bug 1789659 - [remote] Make TabManager.removeTab asynchronous. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158252
2022-09-28 15:39:23 +00:00
Julian Descottes 895acde24b Bug 1780005 - [remote] Add more trace logs to ProgressListener r=webdriver-reviewers,whimboo
Depends on D158142

Tried to cover all branches so that we know exactly why a progress listener stops or hangs.
Added a #trace private helper for readability.

Differential Revision: https://phabricator.services.mozilla.com/D158143
2022-09-27 13:24:53 +00:00
Julian Descottes c62ef2f36b Bug 1763109 - [remote] ProgressListener should not resolve early if waitForExplicitStart is true r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D158142
2022-09-27 13:24:52 +00:00
Alexandra Borovova f32dba0420 Bug 1770754 - [bidi] Support serialization of complex objects with container value fields. r=webdriver-reviewers,jdescottes,whimboo
Depends on D157813

Differential Revision: https://phabricator.services.mozilla.com/D157635
2022-09-27 11:31:27 +00:00
Alexandra Borovova f3094bccfc Bug 1770754 - [bidi] Add internal ids to the duplicated objects for a given serialization. r=webdriver-reviewers,jdescottes,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D157634
2022-09-27 11:31:26 +00:00
Julian Descottes f52f1c98c3 Bug 1788861 - [bidi] Deserialization of remote references should not create new objects r=Sasha,webdriver-reviewers,whimboo
Depends on D156691

Differential Revision: https://phabricator.services.mozilla.com/D156717
2022-09-20 13:29:50 +00:00
Alexandra Borovova 6ca2b6a083 Bug 1778976 - [bidi] Enable "script.evaluate", "script.callFunction" and "script.disown" on release channels. r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D157091
2022-09-20 09:12:51 +00:00
Alexandra Borovova 9f3df6a72a Bug 1779231 - [bidi] Add Realm support to "target" argument for "script.evaluate", "script.callFunction" and "script.disown" r=webdriver-reviewers,jdescottes,whimboo
Depends on D156051

Differential Revision: https://phabricator.services.mozilla.com/D156690
2022-09-20 09:12:49 +00:00
Dana Keeler bdb75eecd3 Bug 1790451 - remove now-unnecessary QueryInterface(Ci.nsITransportSecurityInfo) calls r=jschanck,webdriver-reviewers,necko-reviewers,application-update-reviewers,nalexander,valentin
Differential Revision: https://phabricator.services.mozilla.com/D157166
2022-09-20 03:58:50 +00:00
Henrik Skupin 1b97aa447f Bug 1790950 - [remote] Improve logging for Remote Agent protocol messages. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D157431
2022-09-19 19:19:23 +00:00
Henrik Skupin 119e894f82 Bug 1790950 - [marionette] Improve logger output for protocol messages. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D157430
2022-09-19 19:19:22 +00:00
Henrik Skupin f27030b222 Bug 1790950 - [remote] Remove deprecated Marionette preferences from documentation. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D157428
2022-09-19 19:19:22 +00:00
James Graham 265bbc2061 Bug 1781066 - Disallow missing pointerMove / wheel scroll coordinates, r=webdriver-reviewers,whimboo
The spec claims that undefined is allowed for these values, but later
treats them as if they're always integers. I suspect the original
intent was to default to 0, but since there seems to be interop around
rasing an exception, make geckodriver and marionette explicitly check
for valid integers and disallow missing/undefined values.

Differential Revision: https://phabricator.services.mozilla.com/D152645
2022-09-19 16:25:12 +00:00
Butkovits Atila 0a4c1b25bc Backed out changeset 95bc55ad64d7 (bug 1781066) for causing linting failures. CLOSED TREE 2022-09-14 21:07:02 +03:00
James Graham 90ca0c23d3 Bug 1781066 - Disallow missing pointerMove / wheel scroll coordinates, r=webdriver-reviewers,whimboo
The spec claims that undefined is allowed for these values, but later
treats them as if they're always integers. I suspect the original
intent was to default to 0, but since there seems to be interop around
rasing an exception, make geckodriver and marionette explicitly check
for valid integers and disallow missing/undefined values.

Differential Revision: https://phabricator.services.mozilla.com/D152645
2022-09-14 17:48:17 +00:00
Alexandra Borovova 87706fdb4e Bug 1766240 - [bidi] Implement "script.getRealms" command. r=webdriver-reviewers,jdescottes,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D156049
2022-09-12 12:35:19 +00:00
Henrik Skupin fd1f1425ea Bug 1506782 - [remote] Add support for opening and closing tabs on Android. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D156746
2022-09-09 11:58:45 +00:00
Henrik Skupin 16d96ac3fd Bug 1789357 - [remote] Make AppInfo a shared class for remote protocols. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D156745
2022-09-09 11:58:44 +00:00
Marian-Vasile Laza 27fd1e9739 Backed out 2 changesets (bug 1789357, bug 1506782) for causing xpcshell failures on test_Capabilities.js. CLOSED TREE
Backed out changeset 144d4be497c6 (bug 1506782)
Backed out changeset 0884729fca31 (bug 1789357)
2022-09-09 12:34:02 +03:00
Henrik Skupin f747c73194 Bug 1506782 - [remote] Add support for opening and closing tabs on Android. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D156746
2022-09-09 08:55:33 +00:00
Henrik Skupin 3246749215 Bug 1789357 - [remote] Make AppInfo a shared class for remote protocols. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D156745
2022-09-09 08:55:33 +00:00
James Graham 0f8a84132a Bug 1746601 - Implement wheel input support in marionette, r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D139123
2022-09-08 13:45:22 +00:00
Alexandra Borovova c9433699f7 Bug 1756619 - [bidi] Implement "browsingContext.load" event. r=webdriver-reviewers,jdescottes,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D155820
2022-09-06 08:11:54 +00:00
Julian Descottes 584c2ea03d Bug 1770740 - [bidi] Implement "script.disown" command r=webdriver-reviewers,Sasha,whimboo
Depends on D155522

Differential Revision: https://phabricator.services.mozilla.com/D155634
2022-09-05 08:53:15 +00:00
Julian Descottes 84dec7594d Bug 1763137 - [messagehandler] Filter events based on context descriptor used to subscribe to them r=webdriver-reviewers,whimboo
Depends on D155070

Differential Revision: https://phabricator.services.mozilla.com/D155243
2022-09-02 12:04:15 +00:00
Julian Descottes 5bb89bff06 Bug 1762334 - [messagehandler] Use EventsDispatcher in session module r=webdriver-reviewers,whimboo
Depends on D155062

Some additional corrections had to be made on the EventsDispatcher module at the same time.

Differential Revision: https://phabricator.services.mozilla.com/D155070
2022-09-02 12:04:14 +00:00
Julian Descottes a06ffb598a Bug 1762334 - [messagehandler] Remove _subscribe/_unsubscribeEvent commands in favor of SessionData r=webdriver-reviewers,whimboo
Depends on D155061

All events now only react to SessionData and the session module can directly add/remove session data instead of using internal commands.
In the next patch, it will start relying on EventsDispatcher directly.

Differential Revision: https://phabricator.services.mozilla.com/D155062
2022-09-02 12:04:14 +00:00
Julian Descottes fb6fa92fdf Bug 1788124 - [bidi] Deserialize remote values with handle field r=webdriver-reviewers,whimboo
Depends on D155446

With this you can retrieve a remote value with a handle from script.execute and then use it in your next call to script.callFunction

Differential Revision: https://phabricator.services.mozilla.com/D155522
2022-08-31 22:59:31 +00:00
Julian Descottes d3b9951dbf Bug 1783820 - [bidi] Add resultOwnership support for script.evaluate and script.callFunction r=webdriver-reviewers,Sasha,whimboo
Depends on D156121

Differential Revision: https://phabricator.services.mozilla.com/D155446
2022-08-31 22:59:31 +00:00