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

1262 Коммитов

Автор SHA1 Сообщение Дата
Henrik Skupin fc98681137 Bug 1775141 - [webdriver-bidi] Send live "browsingContext.contextCreated" events with "about:blank" as URL. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D151321
2022-07-08 10:01:47 +00:00
Julian Descottes 87ebacdf14 Bug 1750541 - [bidi] Implement basic support for "script.callFunction" command r=webdriver-reviewers,whimboo
Depends on D150245

Differential Revision: https://phabricator.services.mozilla.com/D150822
2022-07-06 19:34:33 +00:00
Julian Descottes 25cf447901 Bug 1770477 - [bidi] Return the innerWindowId as realm id for script.evaluate r=webdriver-reviewers,jgraham,whimboo
Depends on D149413

Differential Revision: https://phabricator.services.mozilla.com/D150245
2022-07-06 19:34:32 +00:00
Julian Descottes 62cafcc5f3 Bug 1770477 - [bidi] Handle javascript errors in script.evaluate r=webdriver-reviewers,whimboo
Depends on D150467

Differential Revision: https://phabricator.services.mozilla.com/D149413
2022-07-06 19:34:32 +00:00
Julian Descottes 26cb8439ba Bug 1777936 - [bidi] script.evaluate awaitPromise should be mandatory r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D150920
2022-07-05 07:11:41 +00:00
Tooru Fujisawa 9afd92bff5 Bug 1776837 - Part 1: Do not use lazy getter for eagerly loaded modules. r=mossop,webdriver-reviewers,application-update-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D150935
2022-07-05 01:01:34 +00:00
Alexandra Borovova d47145fdcc Bug 1767260 - [bidi] Add support for source to log.entryAdded event. r=webdriver-reviewers,jdescottes,whimboo
Depends on D150107

Differential Revision: https://phabricator.services.mozilla.com/D150405
2022-07-04 06:02:00 +00:00
Alexandra Borovova 147e207e97 Bug 1775463 - Allow windowglobal-in-root modules to intercept events from their corresponding windowglobal module. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D150107
2022-07-04 06:01:59 +00:00
Julian Descottes d86a6ea69a Bug 1770461 - [bidi] Add support for awaitPromise to script.evaluate r=webdriver-reviewers,whimboo,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D149412
2022-07-03 20:24:03 +00:00
Mark Banner 05e3f1ea83 Bug 1646183 - Extend ESLint rule reject-importGlobalProperties to also handle defineLazyGlobalGetters. r=arai,webdriver-reviewers,webcompat-reviewers,extension-reviewers,whimboo,twisniewski,kmag
Differential Revision: https://phabricator.services.mozilla.com/D150353
2022-06-29 22:37:57 +00:00
Henrik Skupin 745a8f5c2b Bug 1775036 - [marionette] Remove support for ChromeWebElements. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D149956
2022-06-24 08:38:13 +00:00
Henrik Skupin fb3e2b8be8 Bug 1775036 - [marionette] Fix JSDoc comments in element.js. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D150179
2022-06-24 08:38:12 +00:00
Henrik Skupin fba9aab1f1 Bug 1775036 - [marionette] Rename ContentShadowRoot to ShadowRoot. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D150178
2022-06-24 08:38:12 +00:00
Henrik Skupin a2c4a1e752 Bug 1775036 - [marionette] Rename ContentWebWindow to WebWindow. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D149960
2022-06-24 08:38:11 +00:00
Henrik Skupin 495f3169a0 Bug 1775036 - [marionette] Rename ContentWebFrame to WebFrame. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D149959
2022-06-24 08:38:11 +00:00
Henrik Skupin ada89cd0d6 Bug 1775036 - [marionette] Rename ContentWebElement to WebElement. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D149958
2022-06-24 08:38:11 +00:00
Henrik Skupin 394b39cd02 Bug 1775036 - [marionette] Rename WebElement to WebReference. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D149957
2022-06-24 08:38:10 +00:00
Alexandra Borovova f49bf0fabd Bug 1741861 - Move shared logic from _subscribeEvent and _unsubscribeEvent. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D149401
2022-06-22 12:15:08 +00:00
Tooru Fujisawa baf350744e Bug 1772969 - Part 1: Define lazy getter for ModuleRegistry.jsm on different objects for each protocol. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D149707
2022-06-22 07:36:49 +00:00
Henrik Skupin 53819cc312 Bug 1775064 - [marionette] Return chrome element references for elements within any privileged document. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D149852
2022-06-21 18:45:26 +00:00
criss de373eee8c Backed out changeset d24535fc8fc5 (bug 1775064) for causing mochitest failures on browser_all_files_referenced.js . CLOSED TREE 2022-06-21 20:47:12 +03:00
Henrik Skupin e9a9660f44 Bug 1775064 - [marionette] Return chrome element references for elements within any privileged document. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D149852
2022-06-21 16:42:50 +00:00
Julian Descottes 5a9f0dbb27 Bug 1770476 - [bidi] Add support for return values in script.evaluate r=webdriver-reviewers,whimboo
Depends on D148907

Differential Revision: https://phabricator.services.mozilla.com/D149411
2022-06-21 13:55:22 +00:00
Salil Mishra :naming_is_hard f7b6465372 Bug 1771760 - [marionette] Rename vendor specific capability `platformVersion` to `moz:platformVersion` r=whimboo,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D149694
2022-06-20 21:11:36 +00:00
Alexandra Borovova 23b3bd73b9 Bug 1770751 - Add support for deserialization of complex objects with simple value fields. r=webdriver-reviewers,whimboo,jdescottes
Depends on D149407

Differential Revision: https://phabricator.services.mozilla.com/D148901
2022-06-20 07:36:42 +00:00
Alexandra Borovova 8a09c96cd0 Bug 1770751 - Make Date serialization return Date Time string. r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D149407
2022-06-20 07:36:42 +00:00
criss 81774d378d Bug 1742979 - Fix ES lint failure. CLOSED TREE 2022-06-16 23:50:59 +03:00
Julian Descottes f5a579509a Bug 1742979 - [bidi] Implement basic support for "script.evaluate" command r=webdriver-reviewers,whimboo,ochameau
Adds a new root script module, and a new windowglobal script module.
The root script module supports the public command evaluate, with the following limitations:
- awaitPromise is not supported
- the RealmTarget type is not supported
- sandbox is not supported for the ContextTarget type
- evaluation return values are not supported
- exception handling is not supported
- ownership model is not supported

wdspec tests will be added via https://github.com/web-platform-tests/wpt/pull/34162

Differential Revision: https://phabricator.services.mozilla.com/D148907
2022-06-16 19:44:43 +00:00
Henrik Skupin 85dac95fed Bug 1772484 - [marionette] Update JSDoc @throws entries for WebDriver commands. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D149266
2022-06-16 09:40:33 +00:00
Henrik Skupin 8c97174e34 Bug 1772484 - [marionette] Raise "stale element reference" error if a stale element is returned by executing a script. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D149265
2022-06-16 09:40:33 +00:00
Tooru Fujisawa 5e0731b2a4 Bug 1608282 - Part 4: Remove Cu.defineLazyGlobalGetters from JSM. r=webdriver-reviewers,extension-reviewers,jdescottes,kmag
Depends on D149196

Differential Revision: https://phabricator.services.mozilla.com/D149197
2022-06-16 00:19:54 +00:00
Butkovits Atila 8218713aac Backed out 4 changesets (bug 1608282) for causing hazard failures. CLOSED TREE
Backed out changeset 32aebc8be201 (bug 1608282)
Backed out changeset 37c970364269 (bug 1608282)
Backed out changeset ced8d82cc2d2 (bug 1608282)
Backed out changeset e26e480c7dd6 (bug 1608282)
2022-06-16 03:10:02 +03:00
Tooru Fujisawa 2337bc5418 Bug 1772299 - Reject modification to globalThis inside system module. r=Standard8,webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D148116
2022-06-15 22:20:53 +00:00
Tooru Fujisawa 25d05032b1 Bug 1773829 - Part 6: Stop using lazy getter unnecessarily in remote/. r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D149015
2022-06-15 20:56:24 +00:00
Tooru Fujisawa 8b8d6b141a Bug 1608282 - Part 4: Remove Cu.defineLazyGlobalGetters from JSM. r=webdriver-reviewers,extension-reviewers,jdescottes,kmag
Depends on D149196

Differential Revision: https://phabricator.services.mozilla.com/D149197
2022-06-15 20:34:35 +00:00
Tooru Fujisawa b79dac722c Bug 1607331 - Part 1: Do not use global this in remote/shared/messagehandler/transports/FrameTransport.jsm. r=jdescottes,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D148550
2022-06-13 20:03:01 +00:00
Alexandra Borovova 2794384788 Bug 1770752 - Add support for serialization of complex objects with simple value fields. r=webdriver-reviewers,jdescottes,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D148100
2022-06-13 14:26:56 +00:00
Julian Descottes cbca674b9e Bug 1773939 - [marionette] Add a trace log when MarionetteCommandsActorProxy returns null r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D149047
2022-06-13 09:45:56 +00:00
James Graham 159ca0c579 Bug 1773264 - Refactor actions support, r=webdriver-reviewers,whimboo
Move from having lots of switch/case statements to dispatch the
correct actions to a more normal OO setup where each action type is
represented by a class with a static fromJSON method for construction,
and a `dispatch()` method for emitting the event.

The state is also passed around explictly rather than being stored in
a module global. This will allow us to have e.g. different state per
session.

Differential Revision: https://phabricator.services.mozilla.com/D139119
2022-06-13 09:03:33 +00:00
Tooru Fujisawa c1095df1e5 Bug 1772014 - Fix use-isInstance rule to support lazy.OS.File. r=Standard8,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D147808
2022-06-10 20:42:21 +00:00
Cosmin Sabou a8fe62db96 Backed out 2 changesets (bug 1773265, bug 1773264) for causing wpt mouse-pointer related failures.
Backed out changeset a4dd1e07fbf5 (bug 1773265)
Backed out changeset 96fbfb8cd08a (bug 1773264)
2022-06-09 18:57:30 +03:00
James Graham 91ec3edca9 Bug 1773264 - Refactor actions support, r=webdriver-reviewers,whimboo
Move from having lots of switch/case statements to dispatch the
correct actions to a more normal OO setup where each action type is
represented by a class with a static fromJSON method for construction,
and a `dispatch()` method for emitting the event.

The state is also passed around explictly rather than being stored in
a module global. This will allow us to have e.g. different state per
session.

Differential Revision: https://phabricator.services.mozilla.com/D139119
2022-06-09 12:55:27 +00:00
ui.sayuree 78181c00b8 Bug 1723058 - [cdp] Enhance Browser.getVersion with product name including application version. r=whimboo,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D147883
2022-06-09 06:16:34 +00:00
Karl Tomlinson 8b39a8e258 Bug 1745595 wait for expected geometry after move or resize r=whimboo,webdriver-reviewers
The requestAnimationFrame() callback used in IdlePromise() may run sooner than
1/60 second, providing insufficient time for changes to be effected.
https://searchfox.org/mozilla-central/rev/e567185fa464270f94430e7cf62d134f4df9a69f/layout/base/nsRefreshDriver.cpp#1730-1731

Waiting for the "resize" and "MozUpdateWindowPos" events should provide
minimum wait in the common cases that the OS completes the changes requested.

This change should also resolve
https://bugzilla.mozilla.org/show_bug.cgi?id=1702255

Differential Revision: https://phabricator.services.mozilla.com/D147729
2022-06-09 02:32:17 +00:00
Tooru Fujisawa 19087e48c1 Bug 1772096 - Part 9: Use plain object for lazy getter in remote/webdriver-bidi/. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D148006
2022-06-06 07:10:45 +00:00
Tooru Fujisawa cda5ad9e91 Bug 1772096 - Part 8: Use plain object for lazy getter in remote/shared/. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D148005
2022-06-06 07:10:45 +00:00
Tooru Fujisawa 2d20b01ca6 Bug 1772096 - Part 7: Use plain object for lazy getter in remote/shared/webdriver/. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D148004
2022-06-06 07:10:44 +00:00
Tooru Fujisawa f0d1eaf7b1 Bug 1772096 - Part 6: Use plain object for lazy getter in remote/shared/messagehandler/. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D148003
2022-06-06 07:10:44 +00:00
Tooru Fujisawa 631a13a650 Bug 1772096 - Part 5: Use plain object for lazy getter in remote/shared/listeners/. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D148002
2022-06-06 07:10:43 +00:00
Tooru Fujisawa ab140eb7bd Bug 1772096 - Part 4: Use plain object for lazy getter in remote/server/. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D148001
2022-06-06 07:10:43 +00:00
Tooru Fujisawa 1ef92ec3a2 Bug 1772096 - Part 3: Use plain object for lazy getter in remote/marionette/. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D148000
2022-06-06 07:10:43 +00:00
Tooru Fujisawa 433bb2ca9f Bug 1772096 - Part 2: Use plain object for lazy getter in remote/components/. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D147999
2022-06-06 07:10:42 +00:00
Tooru Fujisawa 43afe4f072 Bug 1772096 - Part 1: Use plain object for lazy getter in remote/cdp/. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D147998
2022-06-06 07:10:42 +00:00
Tooru Fujisawa 4f96aa80b2 Bug 1772360 - Remove unnecessary call for XPCOMUtils.defineLazyGlobalGetters. r=florian,webdriver-reviewers,webcompat-reviewers,denschub,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D148168
2022-06-06 04:42:10 +00:00
Tooru Fujisawa 6b0608c9bd Bug 1772351 - Part 3: Stop calling XPCOMUtils.defineLazyModuleGetters for AppConstants. r=florian,webdriver-reviewers,whimboo,robwu
Differential Revision: https://phabricator.services.mozilla.com/D148166
2022-06-06 04:42:09 +00:00
Tooru Fujisawa f7650958c8 Bug 1772313 - Part 7: Stop calling XPCOMUtils.defineLazyModuleGetters for Services. r=kmag,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D148160
2022-06-06 04:42:06 +00:00
Molnar Sandor 77402a5caa Backed out 15 changesets (bug 1772313, bug 1772351, bug 1772360) for causing xpc failures in telemetry/tests/unit/test_SocketScalars.js CLOSED TREE
Backed out changeset c8b0a2ed239e (bug 1772360)
Backed out changeset 1922adad6abe (bug 1772351)
Backed out changeset 6d3634cce489 (bug 1772351)
Backed out changeset f03968a9d053 (bug 1772351)
Backed out changeset e7a38ef90fe4 (bug 1772351)
Backed out changeset b389e7654771 (bug 1772313)
Backed out changeset 59a33598ff51 (bug 1772313)
Backed out changeset ab60885a8a93 (bug 1772313)
Backed out changeset aad8efac9d05 (bug 1772313)
Backed out changeset 4378e519a8e7 (bug 1772313)
Backed out changeset 302ac54741f8 (bug 1772313)
Backed out changeset 74c59f9fd51c (bug 1772313)
Backed out changeset 575fb877c56c (bug 1772313)
Backed out changeset 2eaa68f10b19 (bug 1772313)
Backed out changeset 4a8b3ba193dc (bug 1772313)
2022-06-06 07:04:25 +03:00
Tooru Fujisawa c7229a1a17 Bug 1772360 - Remove unnecessary call for XPCOMUtils.defineLazyGlobalGetters. r=florian,webdriver-reviewers,webcompat-reviewers,denschub,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D148168
2022-06-06 02:49:14 +00:00
Tooru Fujisawa b200384ddb Bug 1772351 - Part 3: Stop calling XPCOMUtils.defineLazyModuleGetters for AppConstants. r=florian,webdriver-reviewers,whimboo,robwu
Differential Revision: https://phabricator.services.mozilla.com/D148166
2022-06-06 02:49:13 +00:00
Tooru Fujisawa fc45e50920 Bug 1772313 - Part 7: Stop calling XPCOMUtils.defineLazyModuleGetters for Services. r=kmag,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D148160
2022-06-06 02:49:10 +00:00
Julian Descottes 8fa17f2e94 Bug 1764314 - [bidi] Allow browsingContext.navigate to retry the _getBaseURL command r=webdriver-reviewers,whimboo
Depends on D147715

No test added, hopefully this should address intermittents such as Bug 1767226
_getBaseURL is so far the only command explicitly sent to a windowglobal MessageHandler,
and therefore is the only one we should consider for the retry behavior.

Differential Revision: https://phabricator.services.mozilla.com/D147719
2022-06-02 18:42:04 +00:00
Julian Descottes 9b0cc99afd Bug 1764314 - [remote] Allow MessageHandler commands to be retried upon AbortError r=webdriver-reviewers,whimboo
Depends on D147713

This adds a "retryOnAbort" property on MessageHandler Commands.
When set to true, this will allow the FrameTransport to retry a command up to 10 times in case of an AbortError.
Difference with Marionette, this doesn't attempt to detect BrowsingContexts in bfcache, because retrying commands
does not make sense in bfcache (this is not a temporary state, retrying in a loop will most likely not help).

A browser mochitest is added to cover various retry scenarios.

Differential Revision: https://phabricator.services.mozilla.com/D147715
2022-06-02 18:42:04 +00:00
Julian Descottes f2157ae0e6 Bug 1764314 - [bidi] Cleanup private methods for events in windowglobal/log module r=webdriver-reviewers,whimboo
Two private methods which were still listed as internal commands.

Differential Revision: https://phabricator.services.mozilla.com/D147713
2022-06-02 18:42:04 +00:00
Alexandra Borovova 2f91f4d05d Bug 1763133 - Ignore cache error in browsingContext.navigate. r=webdriver-reviewers,whimboo,nika,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D147300
2022-06-02 10:25:49 +00:00
Gabriele Svelto fd3fc54c5d Bug 1771875 - Add BrowserTestUtils.reloadTab() and use it everywhere r=mconley,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D147732
2022-06-01 09:34:05 +00:00
ui.sayuree bef8f04748 Bug 1723079 - added revision to Browser and updated tests.r=whimboo,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D146691
2022-06-01 07:12:26 +00:00
Tooru Fujisawa 441904c318 Bug 1771460 - Part 2: Remove redundant global variable that conflicts with lazy getter. r=Standard8,webdriver-reviewers
Depends on D147592

Differential Revision: https://phabricator.services.mozilla.com/D147593
2022-05-30 20:50:21 +00:00
Tooru Fujisawa 266e05342c Bug 1610653 - Part 17: Do not store lexical variable also to global this property in remote/shared/webdriver. r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D144124
2022-05-30 15:19:41 +00:00
Tooru Fujisawa 254ae3eb3a Bug 1610653 - Part 16: Do not store lexical variable also to global this property in remote/marionette. r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D144123
2022-05-30 15:19:41 +00:00
Tooru Fujisawa 5d5801331b Bug 1610653 - Part 15: Do not store lexical variable also to global this property in remote/cdp. r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D144122
2022-05-30 15:19:40 +00:00
Tooru Fujisawa 15b0b687c1 Bug 1610653 - Part 6: Do not use global this property assignment to define global variable in remote/shared. r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D144113
2022-05-30 15:19:37 +00:00
Tooru Fujisawa f42d269cfa Bug 1610653 - Part 5: Do not use global this property assignment to define global variable in remote/marionette. r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D144112
2022-05-30 15:19:37 +00:00
Henrik Skupin 97278a4db7 Bug 1763124 - [webdriver-bidi] Support error handling for browsingContext.navigate. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D146908
2022-05-24 04:38:10 +00:00
Henrik Skupin 18dcc1968e Bug 1763124 - [remote] Use Deferred instead of a plain Promise for ProgressListener. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D146907
2022-05-24 04:38:09 +00:00
Julian Descottes 42dc9793cb Bug 1636453 - [cdp] Support Page.navigate for hash navigation r=webdriver-reviewers,whimboo
Depends on D146985

The previous changeset changed the implementation of navigatedWithinDocument to
be emitted in the proper scenarios (ie, same document navigation).

However our Page.navigate implementation would still timeout waiting on a
network request if you tried to programmatically perform a hash navigation.
Meaning hash navigation was only working when triggered from the page.

With this changeset, we try to detect hash navigations in Page.navigate and
treat them as "network-less" navigations (same as for non http/https navigations)

Differential Revision: https://phabricator.services.mozilla.com/D147076
2022-05-23 19:06:12 +00:00
Julian Descottes ee5e9e8926 Bug 1636453 - [cdp] Move Page.navigatedWithinDocument to hashChange r=webdriver-reviewers,whimboo
Depends on D146984

This is needed to be forward compatible with new versions of puppeteer
The navigatedWithinDocument event should only have been emitted for same
document navigation (either hashchange or history navigation), but it was
emitted on load.

Differential Revision: https://phabricator.services.mozilla.com/D146985
2022-05-23 19:06:12 +00:00
Julian Descottes 4a2012ba2d Bug 1632008 - [cdp] Return a randomly generated loaderId for file/data/about navigations r=webdriver-reviewers,whimboo
Per CDP documentation, loaderId should be a string so we generate a random uuid here.
To make sure the loaderId will be consistent with other events, we notify the content Page domain
about this loaderId via "_updateLoaderId" which is already used to map browsing context ids to
loader ids.

Differential Revision: https://phabricator.services.mozilla.com/D146984
2022-05-23 19:06:11 +00:00
Alexandra Borovova 0354f52f8e Bug 1767924 - Handle navigation between urls with the same hashes. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D146918
2022-05-23 08:01:38 +00:00
Julian Descottes 788e418691 Bug 1770195 - [bidi] cleanup method declarations in windowglobal/log.jsm r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D146826
2022-05-19 20:24:32 +00:00
Henrik Skupin ee5c6046af Bug 1757701 - [puppeteer] Disable Husky when installing Puppeteer via npm. r=webdriver-reviewers,jdescottes
Depends on D145857

Differential Revision: https://phabricator.services.mozilla.com/D145858
2022-05-17 21:52:11 +00:00
Henrik Skupin 4a53582427 Bug 1757701 - [puppeteer] Allow to skip the installation of Husky in the prepare step. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D145857
2022-05-17 21:52:10 +00:00
Alexandra Borovova c0b8074405 Bug 1763127 - Add support for hash changes for browsingContext.navigate. r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D146108
2022-05-17 07:58:23 +00:00
Jonathan Watt 6e5bce1349 Bug 1769388 - Change nsIPrintSettingsService's 'newPrintSettings' attribute to a 'createNewPrintSettings' function. r=bobowen,webdriver-reviewers,whimboo
Having an attribute be a constructor is just...wrong.

Differential Revision: https://phabricator.services.mozilla.com/D146383
2022-05-16 11:50:34 +00:00
Cristian Tuns d2ecccf757 Backed out changeset 400255519b66 (bug 1533058) for causing multiple web platform tests failures CLOSED TREE 2022-05-13 12:14:22 -04:00
Henrik Skupin 8954c02657 Bug 1765727 - [remote] Add explanation comment to error.isWebDriverError() to explain why not using instanceof. r=webdriver-reviewers,jgraham DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D146123
2022-05-13 12:51:25 +00:00
Henrik Skupin 466753ca05 Bug 1533058 - [marionette] "WebDriver:NewWindow" for type "tab" has to open "about:blank". r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D139058
2022-05-13 09:45:18 +00:00
Joel Maher ab1727d3e3 Bug 1762991 - switch to --disable-fission and fission by default. r=gbrown,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D144985
2022-05-10 17:41:03 +00:00
Henrik Skupin 6534c7686e Bug 1726465 - [marionette-client] Add silent restart option on MacOS to Marionette client. r=webdriver-reviewers,jdescottes
Depends on D134277

Differential Revision: https://phabricator.services.mozilla.com/D134387
2022-05-10 15:08:20 +00:00
Henrik Skupin 266ffea2f6 Bug 1726465 - [marionette] Don't wait for initial window when new "moz:windowless" capability is set. r=webdriver-reviewers,jdescottes
Depends on D142727

Differential Revision: https://phabricator.services.mozilla.com/D134277
2022-05-10 15:08:19 +00:00
Henrik Skupin e01270a585 Bug 1726465 - [marionette] Improve reliablitly of waitForInitialApplicationWindowLoaded. r=webdriver-reviewers,jdescottes
Depends on D134276

Differential Revision: https://phabricator.services.mozilla.com/D142727
2022-05-10 15:08:19 +00:00
Henrik Skupin 64a9901794 Bug 1726465 - [marionette] Initialize Marionette before the first top-level window has been opened. r=webdriver-reviewers,agi,jdescottes,mossop,bytesized
Depends on D134275

Differential Revision: https://phabricator.services.mozilla.com/D134276
2022-05-10 15:08:18 +00:00
Henrik Skupin 7a02223f3a Bug 1726465 - [marionette] Remove handling of GFX sanity window. r=webdriver-reviewers,jdescottes
Since Firefox 84 the GFX sanity window is force disabled in
Marionette by a preference (bug 1572687). As such the related
code can be removed.

Depends on D145934

Differential Revision: https://phabricator.services.mozilla.com/D134275
2022-05-10 15:08:18 +00:00
criss 70783e1c31 Backed out 8 changesets (bug 1726465) for causing failures on browser_preferences_usage.js. CLOSED TREE
Backed out changeset 4b57310622a0 (bug 1726465)
Backed out changeset 0c6c4a15621a (bug 1726465)
Backed out changeset 081a0f91e0a7 (bug 1726465)
Backed out changeset 60bceb18ff57 (bug 1726465)
Backed out changeset f241655ea876 (bug 1726465)
Backed out changeset 7bc0a3aeb254 (bug 1726465)
Backed out changeset b2f7c710daef (bug 1726465)
Backed out changeset e9b90fd1b4ec (bug 1726465)
2022-05-10 13:59:54 +03:00
Henrik Skupin c408cc705d Bug 1726465 - [marionette-client] Add silent restart option on MacOS to Marionette client. r=webdriver-reviewers,jdescottes
Depends on D134277

Differential Revision: https://phabricator.services.mozilla.com/D134387
2022-05-10 09:04:05 +00:00
Henrik Skupin 09b795477f Bug 1726465 - [marionette] Don't wait for initial window when new "moz:windowless" capability is set. r=webdriver-reviewers,jdescottes
Depends on D134276

Differential Revision: https://phabricator.services.mozilla.com/D134277
2022-05-10 09:04:05 +00:00
Henrik Skupin 25618e908d Bug 1726465 - [marionette] Improve reliablitly of waitForInitialApplicationWindowLoaded. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D142727
2022-05-10 09:04:04 +00:00
Henrik Skupin 371d0b1fab Bug 1726465 - [marionette] Initialize Marionette before the first top-level window has been opened. r=webdriver-reviewers,agi,jdescottes,mossop,bytesized
Depends on D134275

Differential Revision: https://phabricator.services.mozilla.com/D134276
2022-05-10 09:04:04 +00:00
Henrik Skupin d9243cf19e Bug 1726465 - [marionette] Remove handling of GFX sanity window. r=webdriver-reviewers,jdescottes
Since Firefox 84 the GFX sanity window is force disabled in
Marionette by a preference (bug 1572687). As such the related
code can be removed.

Differential Revision: https://phabricator.services.mozilla.com/D134275
2022-05-10 09:04:04 +00:00
Tooru Fujisawa 32bc0bc61e Bug 1768022 - Use globalThis instead of Cu.getGlobalForObject(this). r=Standard8,webdriver-reviewers,necko-reviewers,whimboo,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D145842
2022-05-10 07:52:01 +00:00
Butkovits Atila 8a2fe790ec Backed out changeset 1ce55e10b927 (bug 1762991) for causing jit failures. CLOSED TREE 2022-05-10 09:41:32 +03:00
Joel Maher f33bac2082 Bug 1762991 - switch to --disable-fission and fission by default. r=gbrown,webdriver-reviewers,whimboo
updated patch for android_hardware_unittests.py, asking for a review- please look at the interdiff to see recent changes.

Differential Revision: https://phabricator.services.mozilla.com/D144985
2022-05-10 00:41:01 +00:00
Cosmin Sabou 56702f5f93 Backed out 6 changesets (bug 1726465) for causing several browser-chrome failures. CLOSED TREE
Backed out changeset 74016350f302 (bug 1726465)
Backed out changeset e7dd44d08121 (bug 1726465)
Backed out changeset 25865657dd3c (bug 1726465)
Backed out changeset f874f1a56157 (bug 1726465)
Backed out changeset 2fea5a6446f3 (bug 1726465)
Backed out changeset 0f96ac926aac (bug 1726465)
2022-05-09 17:01:17 +03:00
Henrik Skupin 2064b538c6 Bug 1726465 - [marionette-client] Add silent restart option on MacOS to Marionette client. r=webdriver-reviewers,jdescottes
Depends on D134277

Differential Revision: https://phabricator.services.mozilla.com/D134387
2022-05-09 12:40:56 +00:00
Henrik Skupin 0c6c23d3f0 Bug 1726465 - [marionette] Don't wait for initial window when new "moz:windowless" capability is set. r=webdriver-reviewers,jdescottes
Depends on D134276

Differential Revision: https://phabricator.services.mozilla.com/D134277
2022-05-09 12:40:56 +00:00
Henrik Skupin 74ac88493e Bug 1726465 - [marionette] Improve reliablitly of waitForInitialApplicationWindowLoaded. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D142727
2022-05-09 12:40:56 +00:00
Henrik Skupin e6b4be97d6 Bug 1726465 - [marionette] Initialize Marionette before the first top-level window has been opened. r=webdriver-reviewers,agi,jdescottes,mossop,bytesized
Depends on D134275

Differential Revision: https://phabricator.services.mozilla.com/D134276
2022-05-09 12:40:55 +00:00
Henrik Skupin dfde22c1b7 Bug 1726465 - [marionette] Remove handling of GFX sanity window. r=webdriver-reviewers,jdescottes
Since Firefox 84 the GFX sanity window is force disabled in
Marionette by a preference (bug 1572687). As such the related
code can be removed.

Differential Revision: https://phabricator.services.mozilla.com/D134275
2022-05-09 12:40:55 +00:00
Norisz Fay 40387d8d75 Bug 1766217 - Fix lint failure r=fix CLOSED TREE 2022-05-09 13:33:59 +03:00
Alexandra Borovova eb159be8ad Bug 1766217 - Add expectNavigation flag to Webdriver BiDi Navigate. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D145617
2022-05-09 10:13:48 +00:00
Cristian Tuns 9462119251 Backed out changeset 60dcc095f627 (bug 1762991) for causing multiple failures (exit status 2). CLOSED TREE 2022-05-06 14:34:10 -04:00
Henrik Skupin 7b4b73ccde Bug 1749666 - [remote] Wait for TabSelect when switching tabs. r=webdriver-reviewers,whimboo
Depends on D139059

Differential Revision: https://phabricator.services.mozilla.com/D139060
2022-05-06 15:20:30 +00:00
Henrik Skupin 0961e10a66 Bug 1749666 - [marionette] Remove usage of waitForEvent in favor of EventPromise. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D139059
2022-05-06 15:20:30 +00:00
Joel Maher 8e2741c219 Bug 1762991 - switch to --disable-fission and fission by default. r=gbrown,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D144985
2022-05-06 15:01:22 +00:00
Jonathan Watt 600bd64a9b Bug 1712104 p1 - Refactor PrintUtils.startPrintWindow for easier reasoning. r=emilio,webdriver-reviewers
Having the called-back-for-new-static-doc logic mixed in with the
start-new-print logic was confusing. The new structure, function names
and comments should hopefully make it easier for people unfamiliar with the
various printing code flows to understand and reason about this code. It also
allows the addition of new print-via-system-dialog logic without things getting
completely out of hand.

Differential Revision: https://phabricator.services.mozilla.com/D135451
2022-05-06 14:30:24 +00:00
Alexandra Borovova 7f163ba39c Bug 1754132 - Use WebProgressListener to detect navigation start when PageLoadStrategy is "none". r=webdriver-reviewers,whimboo,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D144814
2022-05-04 12:29:52 +00:00
Henrik Skupin 20249ab796 Bug 1767387 - [remote-bidi] Also await browser startup finished when creating a newsession from Marionette. r=webdriver-reviewers,jdescottes
Previously the check has been added when starting the protocol.
But given that httpd.js gets started already in final-ui-startup
a new BiDi session request from Marionette can add required
path handlers, which results in accepting incoming commands
even with the browser not fully started up yet.

Differential Revision: https://phabricator.services.mozilla.com/D145311
2022-05-04 04:28:49 +00:00
Henrik Skupin 22d7c6a0be Bug 1767387 - [remote] Don't use sessionstore-windows-restored to determine whenapplication is fully started. r=webdriver-reviewers,jdescottes
This observer notification is only available on desktop and for
applications that actually use the feature. This is not the case
for GeckoView and as such it cannot be used.

Instead the notifications "browser-idle-startup-tasks-finished"
and "mail-idle-startup-tasks-finished" can be used. These also
align to our formerly used custom "remote-startup-requested"
notification, which now no longer exists.

Differential Revision: https://phabricator.services.mozilla.com/D145310
2022-05-04 04:28:49 +00:00
Henrik Skupin 63b664b0cd Bug 1767387 - [remote-cdp] Register handlers for httpd.js before waiting for the initial application window. r=webdriver-reviewers,jdescottes
Similar to WebDriver BiDi the JSON handlers for the CDP protocol
should be immediately registered, so that only the announcement
that CDP is enabled gets delayed.

Differential Revision: https://phabricator.services.mozilla.com/D145325
2022-05-04 04:28:48 +00:00
Doug Thayer 04d1c8fd1e Bug 1756823 - Replace ConsoleAPIStorage observer calls with js array r=nchevobbe,webdriver-reviewers,geckoview-reviewers,agi,jdescottes
See the comment in the file explaining it. For a case of logging 100k numbers,
this dropped the time per number from 15 microseconds to 9 with the console
closed, and 55 microseconds to 38 with the console open. I think we could shave
off more with a native approach, but I don't know that it's worth it and it's
much more likely for that to introduce bugs.

Differential Revision: https://phabricator.services.mozilla.com/D143782
2022-05-03 17:21:59 +00:00
Tooru Fujisawa 39b29ad9f4 Bug 1765167 - Part 8: Stop using Cu.import in remote/. r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D144101
2022-05-03 06:32:31 +00:00
Julian Descottes e1a0f3e103 Bug 1753997 - [remote] Add documentation about remote hosts and origins for RemoteAgent r=webdriver-reviewers,jgraham
Depends on D144847

Differential Revision: https://phabricator.services.mozilla.com/D144851
2022-05-02 19:45:48 +00:00
Julian Descottes 87503e11b9 Bug 1753997 - [remote] Enable WebDriver BiDi on all channels r=webdriver-reviewers,whimboo
Depends on D144984

Differential Revision: https://phabricator.services.mozilla.com/D144846
2022-05-02 19:45:47 +00:00
Henrik Skupin dcd3dae49f Bug 1719505 - [remote] Add CDP and WebDriver BiDi tests for navigator.webdriver. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D144984
2022-04-29 17:38:14 +00:00
Henrik Skupin 4d7a8c9ac8 Bug 1719505 - [remote] Add Remote Agent class for content processes. r=webdriver-reviewers,jdescottes
When accessing the nsIRemoteAgent interface from a content
process the running state cannot be determined without
communicating with the Remote Agent class from the parent
process.

Similar to Marionette this patch adds a dedicated class of
the Remote Agent for content processes, and exports an
instance of the appropriate class depending on in which
process the Remote Agent gets created in.

Differential Revision: https://phabricator.services.mozilla.com/D144983
2022-04-29 17:38:14 +00:00
Henrik Skupin 78f7bbce86 Bug 1719505 - [remote] Unify Remote Agent's running state with Marionette. r=webdriver-reviewers,mossop,smaug,keeler,jdescottes
Both components are related to WebDriver and should expose the
same flag for their running state.

Differential Revision: https://phabricator.services.mozilla.com/D144982
2022-04-29 17:38:14 +00:00
Henrik Skupin 19c9ee78f9 Bug 1719505 - [remote] Remove no longer used methods from Remote Agent interface. r=webdriver-reviewers,jdescottes
Both methods have been removed via bug 1717899 and can no
longer be used.

Differential Revision: https://phabricator.services.mozilla.com/D144980
2022-04-29 17:38:13 +00:00
Butkovits Atila fc54f60211 Backed out 6 changesets (bug 1719505) for causing failures at browser_Troubleshoot.js. CLOSED TREE
Backed out changeset 915b5331f6b2 (bug 1719505)
Backed out changeset 8df69b3445e5 (bug 1719505)
Backed out changeset 674fe8523cf6 (bug 1719505)
Backed out changeset f40c2fe6872d (bug 1719505)
Backed out changeset 3e3df2a6b1e3 (bug 1719505)
Backed out changeset 621024810236 (bug 1719505)
2022-04-29 17:32:32 +03:00
Henrik Skupin 7ef2a5fe1d Bug 1719505 - [remote] Add CDP and WebDriver BiDi tests for navigator.webdriver. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D144984
2022-04-29 11:55:43 +00:00
Henrik Skupin dba3b8b30a Bug 1719505 - [remote] Add Remote Agent class for content processes. r=webdriver-reviewers,jdescottes
When accessing the nsIRemoteAgent interface from a content
process the running state cannot be determined without
communicating with the Remote Agent class from the parent
process.

Similar to Marionette this patch adds a dedicated class of
the Remote Agent for content processes, and exports an
instance of the appropriate class depending on in which
process the Remote Agent gets created in.

Differential Revision: https://phabricator.services.mozilla.com/D144983
2022-04-29 11:55:43 +00:00
Henrik Skupin 8a69201f2e Bug 1719505 - [remote] Unify Remote Agent's running state with Marionette. r=webdriver-reviewers,mossop,smaug,keeler,jdescottes
Both components are related to WebDriver and should expose the
same flag for their running state.

Differential Revision: https://phabricator.services.mozilla.com/D144982
2022-04-29 11:55:43 +00:00
Henrik Skupin 72288a3f87 Bug 1719505 - [remote] Remove no longer used methods from Remote Agent interface. r=webdriver-reviewers,jdescottes
Both methods have been removed via bug 1717899 and can no
longer be used.

Differential Revision: https://phabricator.services.mozilla.com/D144980
2022-04-29 11:55:42 +00:00
Henrik Skupin 12f8ed22e1 Bug 1766802 - [remote] Delay startup of WebDriver BiDi until all initial application windows have been restored. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D144963
2022-04-28 16:38:25 +00:00
Julian Descottes 668c1c61e7 Bug 1759559 - [webdriver-bidi] Implement browsingContext.create command r=webdriver-reviewers,whimboo
Depends on D144453

Differential Revision: https://phabricator.services.mozilla.com/D143648
2022-04-28 08:27:05 +00:00
Julian Descottes 43ad9bf453 Bug 1759559 - [remote] Add focus and window parameters to TabManager.addTab r=webdriver-reviewers,whimboo
Update the addTab API to support BiDi's browsingContext.create, including the context argument

Differential Revision: https://phabricator.services.mozilla.com/D144453
2022-04-28 08:27:04 +00:00
Henrik Skupin dcdabedb93 Bug 1717899 - [remote] Extend the lifetime of the Remote Agent to the Firefox session. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D144338
2022-04-27 05:43:23 +00:00
Alexandra Borovova 3511ca17e1 Bug 1764521 - Add pending Promise check in Navigation tests. r=webdriver-reviewers,jdescottes,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D144449
2022-04-26 12:47:35 +00:00
Henrik Skupin 72eb782161 Bug 1759169 - [remote] Initialize the Remote Agent before the first top-level window has been opened. r=webdriver-reviewers,geckoview-reviewers,jdescottes,agi,mossop
Differential Revision: https://phabricator.services.mozilla.com/D143380
2022-04-25 17:20:43 +00:00
Henrik Skupin 04defaf0a4 Bug 1759169 - [remote] Add DeferredPromise helper. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D140368
2022-04-25 17:20:43 +00:00
Henrik Skupin 06b4c49953 Bug 1759169 - [puppeteer] Also kill Firefox when temporary profile is used. r=webdriver-reviewers,jdescottes
Depends on D144027

Differential Revision: https://phabricator.services.mozilla.com/D144028
2022-04-25 17:20:42 +00:00
Henrik Skupin ed733b2679 Bug 1759169 - [puppeteer] Use separate tests for "Puppeteer.launch should filter out ignored default arguments". r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D144027
2022-04-25 17:20:42 +00:00
ui.sayuree b68c90a4d2 Bug 1666456 - [remote] added tests to Assert.positiveNumber. r=whimboo,jdescottes,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D144315
2022-04-22 08:15:49 +00:00
Alexandra Borovova c972e94585 Bug 1761443 - Remove unneeded getBrowserIdForBrowsingContext. r=jdescottes,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D144283
2022-04-21 14:52:43 +00:00
Henrik Skupin 9e73783530 Bug 1722090 - [remote] Move useful browser chrome tests for Remote Agent to wdspec. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D144213
2022-04-21 12:13:14 +00:00
Alexandra Borovova e97bcb6bf6 Bug 1760900 - Ensure a correct error message when trying to call an unknown internal command. r=jdescottes,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D144021
2022-04-21 11:49:29 +00:00
Henrik Skupin 1fdc18969d Bug 1764740 - [wdspec] Rename "parent" parameter of "browsingContext.getTree" to "root". r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D143733
2022-04-19 15:13:16 +00:00
Julian Descottes 5f1e21ad97 Bug 1764804 - [marionette] Check embedder element of content browsing contexts in assert.open r=webdriver-reviewers,whimboo
For content browsingContexts, assert.open should check if they are connected to a valid embedder element

Differential Revision: https://phabricator.services.mozilla.com/D143772
2022-04-19 11:55:19 +00:00
Tooru Fujisawa 6b7683af58 Bug 1764688 - Fix this variable in MessageHandlerFrameActor.register. r=jdescottes,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D143713
2022-04-14 23:08:01 +00:00
ui.sayuree 92dd774844 Bug 1702491 - remove redundant checks for QI. r=mkaply,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D143732
2022-04-14 20:20:38 +00:00
Henrik Skupin 2257a994e2 Bug 1756532 - [marionette] waitForInitialNavigationCompleted has to wait for a potential page load after about:blank. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D143181
2022-04-13 09:53:14 +00:00
Alexandra Borovova ad907ed4fb Bug 1723137: Create a shared module for PDF creation. r=whimboo,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D143449
2022-04-12 13:26:11 +00:00