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

973 Коммитов

Автор SHA1 Сообщение Дата
James Graham 000e39552d Bug 1757636 - Do case transformations for Element Send Keys, r=webdriver-reviewers,whimboo
When the shift special key has been included as part of a sendkeys command,
subsequent characters that appear on a US keyboard must be replaced by the
shifted character for that key.

Differential Revision: https://phabricator.services.mozilla.com/D139978
2022-03-02 10:50:59 +00:00
Henrik Skupin 23f58e65d5 Bug 1741854 - [webdriver-bidi] Prevent internal methods from being called via the WebSocket connection. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D140038
2022-03-02 10:11:59 +00:00
Henrik Skupin 0daff79242 Bug 1757523 - [puppeteer] Add "--no-install" argument to "mach puppeteer-test". r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D139921
2022-03-01 15:44:08 +00:00
Mark Banner ce31f4c0a4 Bug 1756563 - Define the WebExtension browser in-line for messagehandler head files. r=jdescottes,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D139815
2022-02-28 13:07:35 +00:00
James Graham a7d07bbe8d Bug 1686666 - Make marionette events use EventUtil.js directly, r=webdriver-reviewers,whimboo
Rather than copying over the code from EventUtils, load EventUtils.js
into event.js. This is slightly complicated by the fact that
EventUtils.js depends on the existence of a global named `window`. So
instead of loading the script as a normal component, we need to use
`loadSubScript` to create an instance of the script with the required
window binding (this is similar to the approach the CDP module uses).

The actual API changes for mouse events are ~trivial, but for key
events things are a little more involved. The code previously (in
effect) called synthesizeKey with the virtual keycode as the aKey
argument. However EventUtils.js documents this as deprecated, so we
switch to providing the actual key, with the `KEY_` prefix for
non-printable characters.

To make this easier, all the data about various keys from the
WebDriver spec is collapsed into a single lookup table, rather than
having a table for each interesting property.

Differential Revision: https://phabricator.services.mozilla.com/D138449
2022-02-25 18:12:11 +00:00
Henrik Skupin 0d7682b3d4 Bug 1646289 - [CDP] Compare by target id and not browsing context id. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D139317
2022-02-22 18:08:36 +00:00
Henrik Skupin 59bcc5d5fb Bug 1646289 - [CDP] Share unique TabTarget id with WebDriver. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D139316
2022-02-22 18:08:35 +00:00
Julian Descottes 45ba1a81d3 Bug 1755317 - [remote] Only validate origin headers if BiDi is enabled r=webdriver-reviewers,whimboo
When BiDi is disabled, skip the origin header check to support existing CDP clients.

Differential Revision: https://phabricator.services.mozilla.com/D138705
2022-02-16 06:25:35 +00:00
Julian Descottes 1aac6c54cd Bug 1753939 - [remote] Filter out webextensions in FrameContextUtils::isBrowsingContextCompatible r=rpl,webdriver-reviewers,whimboo
Depends on D138523

Given our current broadcast logic, we should not stumble on webextension contexts during broadcast.
This is because getAllBrowsingContextsInSubtree will not cross process boundaries.

Nevertheless, adding explicit support for WebExtensions in our filter method should be ok, with the added test.
Whenever we lift the JSWindowActor restrictions and rely on isBrowsingContextCompatible for filtering this will help avoid regressions.

Differential Revision: https://phabricator.services.mozilla.com/D138531
2022-02-14 23:07:45 +00:00
Julian Descottes a881d0f446 Bug 1753939 - [remote] Do not create message handlers for webextension contexts r=webdriver-reviewers,rpl,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D138523
2022-02-14 23:07:45 +00:00
Henrik Skupin af05588aaf Bug 1694389 - [webdriver-bidi] Add support for "browsingContext.contextCreated" event. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D134267
2022-02-14 05:47:55 +00:00
Henrik Skupin b2e39df5be Bug 1694389 - [remote] Add API to get the unique id for a browsing context. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D137540
2022-02-14 05:47:54 +00:00
Henrik Skupin 2f01d4dbd4 Bug 1723919 - [remote] MessageHandler has to also support other applications than Firefox desktop. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D138518
2022-02-11 11:33:22 +00:00
Henrik Skupin 9650db0322 Bug 1753288 - [remote] Return target URI from waitForInitialNavigationCompleted. r=webdriver-reviewers,jdescottes
When requested to return early from waitForInitialNavigationCompleted
when the navigation starts, the URIs of the current location and for the
destination will be returned.

Differential Revision: https://phabricator.services.mozilla.com/D137539
2022-02-11 11:28:32 +00:00
Julian Descottes 0c179363d6 Bug 1747107 - [remote] Replace FrameContextUtils::getOsPid with isParentProcess r=webdriver-reviewers,jgraham,whimboo. CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D134663
2022-02-01 14:35:25 +00:00
Butkovits Atila c4f5279fc3 Backed out changeset 083b25b3bb4a (bug 1747107) for causing assertion failures at nsHttpChannel.cpp. CLOSED TREE 2022-02-01 21:16:16 +02:00
Julian Descottes 30b25ec353 Bug 1747107 - [remote] Replace FrameContextUtils::getOsPid with isParentProcess r=webdriver-reviewers,jgraham,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D134663
2022-02-01 14:35:25 +00:00
Julian Descottes 4da968b463 Bug 1746154 - [cdp] Add error message and documentation about the required fission preferences r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D134328
2022-01-31 12:34:40 +00:00
Henrik Skupin 0c3fecd629 Bug 1751954 - [remote] Allow to return from waitForInitialNavigationCompleted when load started. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D137103
2022-01-28 20:29:10 +00:00
Henrik Skupin a8db661b79 Bug 1586503 - [remote] Skip browser_runtime_executionContext.js for Fission. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D137109
2022-01-27 09:49:50 +00:00
Henrik Skupin cd886ec059 Bug 1751844 - [webdriver-bidi] Write Websocket port to WebDriverBiDiActivePort file. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D136867
2022-01-25 13:42:05 +00:00
Henrik Skupin 174e59f1e4 Bug 1751844 - [remote] Unify handling of active port file for CDP and Marionette. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D136866
2022-01-25 13:42:04 +00:00
Henrik Skupin a5b7336880 Bug 1751361 - [marionette] Replace assertions for Firefox with Desktop. r=webdriver-reviewers,jdescottes
WebDriver commands that currently assert for Firefox should
actually check for desktop because Thunderbird also supports
all of these.

Differential Revision: https://phabricator.services.mozilla.com/D136574
2022-01-21 16:03:23 +00:00
Henrik Skupin 23875862ae Bug 1749675 - [remote] Don't apply session data for modules that don't exist for a given destination. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D134266
2022-01-20 07:28:38 +00:00
Henrik Skupin e7c2fe6d9a Bug 1750993 - [marionette] Always truncate URIs in Navigate.jsm. r=webdriver-reviewers,jdescottes
Depends on D134387

Differential Revision: https://phabricator.services.mozilla.com/D136389
2022-01-19 22:06:35 +00:00
Barret Rennie 32cf1f6e27 Bug 1745361 - Create unique directories and files with IOUtils r=Gijs,webdriver-reviewers,extension-reviewers,robwu
PathUtils::CreateUniquePath was doing main thread IO, so we're moving it to
IOUtils to use its event loop to do the IO.

Additionally, we're adding IOUtils::CreateUniqueDirectory which is the same as
::CreateUniqueFile, but for directories.

Differential Revision: https://phabricator.services.mozilla.com/D133841
2022-01-18 05:04:52 +00:00
Cristian Tuns ad8961c258 Backed out changeset e93fd0b78d3e (bug 1745361) for causing build bustages on PathUtils.cpp CLOSED TREE 2022-01-17 13:06:42 -05:00
Barret Rennie 003a65dd40 Bug 1745361 - Create unique directories and files with IOUtils r=Gijs,webdriver-reviewers,extension-reviewers,robwu
PathUtils::CreateUniquePath was doing main thread IO, so we're moving it to
IOUtils to use its event loop to do the IO.

Additionally, we're adding IOUtils::CreateUniqueDirectory which is the same as
::CreateUniqueFile, but for directories.

Differential Revision: https://phabricator.services.mozilla.com/D133841
2022-01-17 17:50:26 +00:00
Henrik Skupin 65e979f4be Bug 1747359 - [marionette] Improve checks for tab's initial page load. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D135594
2022-01-17 12:31:34 +00:00
Henrik Skupin d1b5c1b85a Bug 1747359 - [marionette] Keep reference to webProgress to unregister progress listener. r=webdriver-reviewers,jdescottes
If the navigation causes the browsing context to be replaced,
the listener cannot be unregistered. As such keep a reference
to the original webProgress instance that can still be used.

Differential Revision: https://phabricator.services.mozilla.com/D135595
2022-01-17 12:31:34 +00:00
Henrik Skupin c82f352880 Bug 1749000 - [remote] Fix broken links and outdated documentation. r=webdriver-reviewers,jgraham DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D136035
2022-01-17 10:49:42 +00:00
Julian Descottes 892ae10673 Bug 1747222 - [remote] Move browsing context APIs from browser.js and WindowManager to TabManager r=webdriver-reviewers,whimboo
Depends on D135414

Differential Revision: https://phabricator.services.mozilla.com/D135415
2022-01-14 21:19:53 +00:00
Julian Descottes 7d8052e4a0 Bug 1747222 - [remote] Migrate TOP BROWSING CONTEXT to use custom UUID instead of browserId r=webdriver-reviewers,whimboo
We are not supporting the TOP_BROWSING_CONTEXT yet in BiDi, but message handler already supports it, and assumes browser ids. But as discussed we will need to use custom UUIDs, and on the side have a mapping between browser ids and UUIDs, as browserids might be available late.

Differential Revision: https://phabricator.services.mozilla.com/D135414
2022-01-14 21:19:53 +00:00
Henrik Skupin beb1f69ae7 Bug 1749507 - [remote] Emit internal event when window global message handler has been initialized. r=webdriver-reviewers,jdescottes
Before an instance of a WindowGlobalMessageHandler is ready to be used the
initial session data needs to be applied. Because this happens asynchronously
an internal "window-global-handler-created" event will be used for which the
root message handler or any other module can listen for.

Differential Revision: https://phabricator.services.mozilla.com/D134265
2022-01-13 09:46:33 +00:00
Henrik Skupin d85900994d Bug 1749507 - [remote] Add support for internal message handler events. r=webdriver-reviewers,jdescottes
There are two kind of events that can be used by module implementations
to pass information within the message handler framework.

First, with internal events the different modules and the message handlers
themselves can send around information eg. informing the parent process
about specific DOM events happening in the child process. These events
are not intended to be sent to external clients.

Second, with protocol events the different modules can send events with
a payload as specified in the appropriate protocol. These events shouldn't
be intercepted, modified, or ignored and will be sent to external clients.

Differential Revision: https://phabricator.services.mozilla.com/D134264
2022-01-13 09:46:32 +00:00
James Graham 998e7b9425 Bug 1748845 - Update source-relative links in remote docs, r=firefox-source-docs-reviewers,webdriver-reviewers,sylvestre,whimboo
These were broken since the update to MyST.

Differential Revision: https://phabricator.services.mozilla.com/D135381
2022-01-11 10:48:20 +00:00
Kershaw Chang 5d806765a0 Bug 1741425 - Enable more mochitest with socket process, r=ahal,webdriver-reviewers,preferences-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D134485
2022-01-11 09:49:45 +00:00
Henrik Skupin 518343be3e Bug 1739369 - [marionette] Use webProgress to listen for the initial page being loaded in "WebDriver:NewWindow". r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D134542
2022-01-07 21:28:33 +00:00
Henrik Skupin 0ae2105fde Bug 1739369 - [marionette] Move wait for initial page load logic into shared navigate module. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D134541
2022-01-07 21:28:33 +00:00
Julian Descottes 0d39eef2ad Bug 1723592 - [remote] Throw InvalidArgumentException when passing invalid events to session subscribe/unsubscribe r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D132972
2022-01-05 12:26:16 +00:00
Julian Descottes 0b3d4cc455 Bug 1732958 - [puppeteer] Skip 2 new mandatory tests on Firefox r=webdriver-reviewers,whimboo
Depends on D134666

Differential Revision: https://phabricator.services.mozilla.com/D134667
2022-01-04 12:11:45 +00:00
Julian Descottes aa5938c302 Bug 1732958 - [puppeteer] Sync puppeteer v13.0.1 r=webdriver-reviewers,whimboo
Depends on D134665

Differential Revision: https://phabricator.services.mozilla.com/D134666
2022-01-04 12:11:44 +00:00
criss f177d7d796 Backed out changeset 4448cd53ed42 (bug 1745361) for causing hybrid bustages on PathUtils.cpp 2021-12-31 23:06:40 +02:00
Barret Rennie db46900c30 Bug 1745361 - Create unique directories and files with IOUtils r=Gijs,webdriver-reviewers,extension-reviewers,robwu
PathUtils::CreateUniquePath was doing main thread IO, so we're moving it to
IOUtils to use its event loop to do the IO.

Additionally, we're adding IOUtils::CreateUniqueDirectory which is the same as
::CreateUniqueFile, but for directories.

Differential Revision: https://phabricator.services.mozilla.com/D133841
2021-12-31 20:28:39 +00:00
Nafees Nehar 7d06f219e0 Bug 1605354 - [remote] Support for Network.getCookies's "urls" parameter. r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D126828
2021-12-23 15:39:46 +00:00
Julian Descottes 2379fd7062 Bug 1747041 - [cdp] Check if message manager exists in TabSession destructor r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D134507
2021-12-22 22:50:31 +00:00
Henrik Skupin 40c686eb47 Bug 1144075 - [marionette-client] Allow to restart Firefox in safe mode. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D134324
2021-12-21 18:46:37 +00:00
Henrik Skupin b535a82bf8 Bug 1144075 - [marionette-client] Remove obsolete restart code from before Firefox 55. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D134323
2021-12-21 18:46:36 +00:00
Julian Descottes 7dbbf9cd8f Bug 1746953 - [remote] Update error message when validating origin header r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D134334
2021-12-21 07:17:46 +00:00
Julian Descottes 73f68d16db Bug 1746595 - [bidi] Throw unknown command error when calling an unexpected bidi command adn Summary: r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D134247
2021-12-20 21:38:38 +00:00