Commit Graph

79 Commits

Author SHA1 Message Date
Mark Banner
1a1669c8c4 Bug 1786197 - Turn on ESLint rule for prefer-boolean-length-check for remote. r=whimboo,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D155173
2022-08-26 13:39:37 +00:00
Henrik Skupin
69cedc69ba Bug 1784957 - [marionette] Don't fail when unregistering "browser-delayed-startup-finished" observer. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D154687
2022-08-16 11:37:14 +00:00
Emilio Cobos Álvarez
10a8d9eb8a Bug 1780212 - Consistently use sizemodechange events to minimize/restore windows. r=webdriver-reviewers,jdescottes
Like we do to maximize/fullscreen. This makes the code less confusing
and more reliable over-all.

Differential Revision: https://phabricator.services.mozilla.com/D152177
2022-07-19 21:31:57 +00:00
Tooru Fujisawa
54623364da Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-12 04:21:34 +00:00
Andreea Pavel
7738a75fdd Backed out 11 changesets (Bug 1777486) for failing bc at browser_startup.js on a CLOSED TREE
Backed out changeset b6c4c386f1a6 (Bug 1777486)
Backed out changeset 195cc2de8433 (Bug 1777486)
Backed out changeset 20c746fb1648 (Bug 1777486)
Backed out changeset d5fd8173d62d (Bug 1777486)
Backed out changeset 6d758fab5a3e (Bug 1777486)
Backed out changeset e938b601ba15 (Bug 1777486)
Backed out changeset 0c4ea0b9416b (Bug 1777486)
Backed out changeset 0559c53cc668 (Bug 1777486)
Backed out changeset eea573d3a9f9 (Bug 1777486)
Backed out changeset 9ce3a6496a49 (bug 1777486)
Backed out changeset b0867652fc48 (bug 1777486)
2022-07-11 22:24:40 +03:00
Tooru Fujisawa
8cd6ed7409 Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-11 15:09:13 +00:00
Tooru Fujisawa
bf93d07148 Bug 1667455 - Part 5: Stop importing Services.jsm from chrome-priv JS code, top-level single-line cases. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,extension-reviewers,application-update-reviewers,pip-reviewers,twisniewski,m_kato,jdescottes,mconley,AlexandruIonescu,mossop
Differential Revision: https://phabricator.services.mozilla.com/D150894
2022-07-11 12:41:50 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Olivia Hall
4e4f917a30 Bug 1708105 - [marionette] Add support for user prompts on Android. r=webdriver-reviewers,whimboo
Added option to find GeckoView user prompts from the geckoview.js window.

Differential Revision: https://phabricator.services.mozilla.com/D134448
2022-03-28 13:12:25 +00:00
Cristian Tuns
2434b6afea Backed out 2 changesets (bug 1712414, bug 1708105) for causing wpt failures CLOSED TREE
Backed out changeset ffedefe9258c (bug 1708105)
Backed out changeset 460b9abdbec3 (bug 1712414)
2022-03-21 21:21:42 -04:00
Olivia Hall
894a9df7d6 Bug 1708105 - [marionette] Add support for user prompts on Android. r=webdriver-reviewers,whimboo
Added option to find GeckoView user prompts from the geckoview.js window.

Differential Revision: https://phabricator.services.mozilla.com/D134448
2022-03-22 00:13:45 +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
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
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
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
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
David Burns
d1ba70273a Bug 1700073: Add Get Shadow Root to Marionette. r=webdriver-reviewers,jgraham,whimboo
This adds the features as described in
https://w3c.github.io/webdriver/#get-element-shadow-root

Differential Revision: https://phabricator.services.mozilla.com/D110941
2021-12-01 14:57:16 +00:00
James Graham
b2389c73cc Bug 1678347 - [marionette] Implement pageRanges support. r=webdriver-reviewers,whimboo
This allows printing only specified page ranges.

We take them in the form ["1-2", 4, "5-"] and convert to a flat array
of the form [1,2,4,4,5,2147483647], which is appropriate for
nsIPrintSettings.

Testing relies on the fact that wpt vendored pdf.js for print
reftests; using the same mechaism we can ensure the correct pages were
printed.

Differential Revision: https://phabricator.services.mozilla.com/D97600
2021-11-08 10:17:52 +00:00
Julian Descottes
9539249363 Bug 1739008 - [marionette] Monitor navigation using the webprogresslistener for NewSession r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D130355
2021-11-08 09:35:48 +00:00
Cristian Tuns
e5e804d9a1 Backed out changeset 78d6ea95a82f (bug 1739008) for causing android wpt failures. CLOSED TREE DONTBUILD 2021-11-05 07:47:08 -04:00
Julian Descottes
a7941cac87 Bug 1739008 - [marionette] Monitor navigation using the webprogresslistener for NewSession r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D130355
2021-11-05 10:06:03 +00:00