Commit Graph

1556 Commits

Author SHA1 Message Date
Noemi Erli
e631ff3d66 Backed out changeset 790939d4314e (bug 1836204) for causing wd leak failures 2023-07-07 19:30:37 +03:00
Greg Tatum
36e99c64ea Bug 1836204 - Re-enable translations in automation; r=nordzilla,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D182926
2023-07-07 10:57:39 +00:00
Alexandra Borovova
c0dfb80659 Bug 1829334 - [bidi] Implement "browser.close" command. r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D181775
2023-07-07 10:50:06 +00:00
Alexandra Borovova
86a079c36f Bug 1829334 - [marionette] Move browser quit logic into shared module. r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D181774
2023-07-07 10:50:06 +00:00
Henrik Skupin
7ebedfced8 Bug 1792529 - [marionette] Remove "Marionette:SingleTap" and legacy actions module. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D158191
2023-06-29 10:10:39 +00:00
Micky
8c897e7756 Bug 1838149 - [remote] Use ".sys.mjs" to reference other ESM modules in ModuleCache.sys.mjs r=webdriver-reviewers,whimboo DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D182224
2023-06-28 07:19:54 +00:00
Henrik Skupin
6ddf5c0b09 Bug 1836514 - [webdriver-bidi] Unwaive Xrays once during Node serialization. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D181906
2023-06-27 12:17:58 +00:00
Peter Van der Beken
b52a207bb0 Bug 1522052 - remove nsIDOMChromeWindow. r=dom-core,webdriver-reviewers,devtools-reviewers,whimboo,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D34310
2023-06-23 14:21:05 +00:00
Alexandra Borovova
5208b45436 Bug 1829337 - [bidi] Implement the "session.end" command. r=webdriver-reviewers,whimboo
Depends on D178621

Differential Revision: https://phabricator.services.mozilla.com/D179671
2023-06-22 14:32:35 +00:00
Henrik Skupin
1f4f920af8 Bug 1490258 - [marionette] Remove moz:useNonSpecCompliantPointerOrigin capability. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D181280
2023-06-21 16:24:08 +00:00
Henrik Skupin
8bbb6cadee Bug 1838381 - Extend waitForInitialPageLoaded for "WebDriver:NewSession" for desktop builds. r=webdriver-reviewers,Sasha
Differential Revision: https://phabricator.services.mozilla.com/D181361
2023-06-19 09:49:28 +00:00
CanadaHonk
3f20822bb0 Bug 1810357 - [cdp] Add HTTP target routes r=webdriver-reviewers,whimboo
Added support for /json/new, /json/activate/{targetId},
/json/close/{targetId}. Rewrote JSONHandler internals to be async
and support different routes by HTTP method, and prefixed routes which
are required by activate and close due to inlining the targetId into the
request url. Also added new tests specific to each, and updated existing.

Should also allow more info to be given via HTTP endpoints in future due
to now being async.

Differential Revision: https://phabricator.services.mozilla.com/D166884
2023-06-16 09:36:47 +00:00
Julian Descottes
91bda90b8a Bug 1838238 - [bidi] Fix responseCompleted for redirects with browsing context swaps r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D180854
2023-06-15 20:57:24 +00:00
Gregory Pappas
03112fe0e9 Bug 1837770 - Remove unused browser.tabs.* prefs r=webdriver-reviewers,geckoview-reviewers,owlish,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D180559
2023-06-15 15:45:25 +00:00
Henrik Skupin
28158a3cc4 Bug 1830884 - [webdriver-bidi] Update Navigable's seen nodes map for known nodes. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D177496
2023-06-12 08:53:05 +00:00
Henrik Skupin
a63e4441fd Bug 1830884 - [webdriver-bidi] Add serialization / deserialization helpers to WindowGlobalBiDiModule. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D177495
2023-06-12 08:53:05 +00:00
Henrik Skupin
c8ac684a9b Bug 1830884 - [remote] Make element.sys.mjs a shared module for remote and separate out Marionette specific code. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D177493
2023-06-12 08:53:05 +00:00
Henrik Skupin
e3d5881ac5 Bug 1822466 - [marionette] Check Navigable's seen nodes map for known nodes. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D177492
2023-06-12 08:53:04 +00:00
Henrik Skupin
bf9656d456 Bug 1822466 - [marionette] Add global WebDriverSession map as singleton and allow access for Marionette command parent actor. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D177490
2023-06-12 08:53:04 +00:00
Alexandra Borovova
ca52b8145b Bug 1731730 - [bidi] Implement capability matching for features for the session.new command. r=webdriver-reviewers,jdescottes,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D178619
2023-06-09 17:34:48 +00:00
Narcis Beleuzu
0ec8e1f530 Backed out 3 changesets (bug 1731730) for Btime failures . CLOSED TREE
Backed out changeset 7d1262df9498 (bug 1731730)
Backed out changeset b7ccdf57f5aa (bug 1731730)
Backed out changeset a4e5f80c6793 (bug 1731730)
2023-06-08 21:23:28 +03:00
Alexandra Borovova
e031c9e914 Bug 1731730 - [bidi] Implement capability matching for features for the session.new command. r=webdriver-reviewers,jdescottes,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D178619
2023-06-08 11:47:39 +00:00
Mark Banner
6725448902 Bug 1834176 - Convert consumers of NetUtil.jsm to import the ES module directly. r=arai,webdriver-reviewers,perftest-reviewers,valentin,extension-reviewers,devtools-reviewers,sync-reviewers,cookie-reviewers,robwu,afinder,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D178589
2023-06-07 08:42:36 +00:00
Julian Descottes
46373aef81 Bug 1832891 - [remote] Set timeout to 5s for waitForInitialNavigation for new contexts r=webdriver-reviewers,whimboo
Extending the timeout only when we explicitly create a new window or tab should be safe.
On the other hand, initial windows from the browser or new tabs created by the browser UI can remain on the initial document forever, for instance on Android.
So for those cases we keep the current unloadTimeout value.

Differential Revision: https://phabricator.services.mozilla.com/D179710
2023-06-06 13:55:39 +00:00
Julian Descottes
00717ee390 Bug 1836926 - [bidi] Rename originTime to timeOrigin in network events fetchTimingInfo r=webdriver-reviewers,whimboo
We misnamed this field in the initial implementation, so this makes it consistent with the spec at
https://w3c.github.io/webdriver-bidi/#type-network-FetchTimingInfo

Differential Revision: https://phabricator.services.mozilla.com/D180064
2023-06-06 10:19:35 +00:00
Rob Wu
3c0c3a2676 Bug 1836482 - Replace AddonManager.jsm imports with AddonManager.sys.mjs r=Standard8,webcompat-reviewers,twisniewski
This patch was generated as follows:

Run:
`./mach esmify --imports . --prefix=toolkit/mozapps/extensions/AddonManager`
In the output there are linter/prettifier errors due to unused
XPCOMUtils or separate importESModule calls. These have been fixed
manually and verified with `./mach lint --outgoing`.

The `esmify` script also inserts many unwanted newlines around imports
that are broken on two lines due to length. Due to the number of these,
I fixed them programatically.

1. Create patch from the changes so far.
2. From the patch, delete all lines that consist of "+" (i.e. added blank line).
3. Reset the working dir and apply the revised patch.
4. Verify that the diff between step 1 and 3 looks reasonable.
5. Verify that this patch as a whole looks reasonable.

Commands:

```
git diff > rename.diff
:%g/^+$/d
git commit -va -m WIP-rename
git revert HEAD
git apply --recount rename.diff
git diff HEAD^  # and verify that the removed lines are ok.
git commit -va  # one last review to verify correctness of whole patch.
git rebase -i HEAD~3  # drop the WIP + reverted commit, pick only the last.
```

`git apply` has the `--recount` option to force it to ignore mismatches
in line counts, which happens because we deleted added lines (^+$)
without fixing up the line counts in the file headers.

Differential Revision: https://phabricator.services.mozilla.com/D179874
2023-06-04 13:44:45 +00:00
Julian Descottes
97a4425c18 Bug 1836093 - [remote] Disable browser.translations.enable in automation r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D179581
2023-06-01 06:21:23 +00:00
Norisz Fay
b8281d9d60 Backed out changeset 23a3b1b5a2b7 (bug 1816538) for causing Bug 1835822, Bug 1835819, Bug 1835796 CLOSED TREE 2023-05-30 16:00:14 +03:00
Julian Descottes
209bd1b851 Bug 1791715 - [bidi] Enable unlimited stack trace capturing for BiDi realms r=webdriver-reviewers,Sasha
Differential Revision: https://phabricator.services.mozilla.com/D179244
2023-05-30 09:52:28 +00:00
Julian Descottes
ae292ebba6 Bug 1816538 - [remote] WaitForInitialNavigation should use a longer unloadTimeout r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D179411
2023-05-30 06:54:13 +00:00
Henrik Skupin
dfacfcca83 Bug 1834971 - [remote] Add optional data field to WebDriver error classes. r=webdriver-reviewers,Sasha
Differential Revision: https://phabricator.services.mozilla.com/D179133
2023-05-26 16:54:18 +00:00
scottlynotlie
2f9be35cb4 Bug 1788013 - changed hasModule to hasModuleClass r=jdescottes,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D179128
2023-05-26 21:47:28 +00:00
Sandor Molnar
b99f663cd9 Backed out changeset 8ef568d7513d (bug 1834971) for causing leakcheck failures. CLOSED TREE 2023-05-26 21:30:29 +03:00
Henrik Skupin
111acc75c1 Bug 1834971 - [remote] Add optional data field to WebDriver error classes. r=webdriver-reviewers,Sasha
Differential Revision: https://phabricator.services.mozilla.com/D179133
2023-05-26 16:54:18 +00:00
michaelshum321
20e77a0edd Bug 1787997 - Refactor remote UUID Usage to a Shared UUID Module r=jdescottes,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D178727
2023-05-25 07:36:22 +00:00
Victoria Ajala
759eec6a96 Bug 1788050 - [remote] Use timer from Timer.sys.mjs to prevent throttling in background tabs r=whimboo,webdriver-reviewers
Using "window.setTimeout()" in content processes will throttle the code if the related window is in a background window. This could cause unexpected race conditions. By using the Timer module this behavior can be avoided.

Differential Revision: https://phabricator.services.mozilla.com/D177034
2023-05-24 12:41:50 +00:00
Natalia Csoregi
e87ecf485e Backed out 3 changesets (bug 1834222, bug 1834176) for causing RemoteProcessMonitor failures. CLOSED TREE
Backed out changeset 346d3a1568dd (bug 1834222)
Backed out changeset ea1d8b634bfc (bug 1834176)
Backed out changeset 74d1880272d3 (bug 1834176)
2023-05-24 04:29:45 +03:00
Mark Banner
fbc15bdb60 Bug 1834176 - Convert NetUtil.jsm to be an ES system module. r=arai,webdriver-reviewers,perftest-reviewers,valentin,extension-reviewers,devtools-reviewers,sync-reviewers,cookie-reviewers,robwu,afinder,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D178589
2023-05-23 19:09:29 +00:00
Katherine Patenio
75bab3bab8 Bug 1830809 - Convert JS modules in browser/components/syncedtabs to ES module r=webdriver-reviewers,Standard8,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D178368
2023-05-23 17:48:42 +00:00
Noemi Erli
aa2f146d78 Backed out 2 changesets (bug 1834176) for causing xpc failures in test_unload.js CLOSED TREE
Backed out changeset 57876d77a652 (bug 1834176)
Backed out changeset ae2f0837b528 (bug 1834176)
2023-05-23 12:14:37 +03:00
Mark Banner
e3e9a991b8 Bug 1834176 - Convert NetUtil.jsm to be an ES system module. r=arai,webdriver-reviewers,perftest-reviewers,valentin,extension-reviewers,devtools-reviewers,sync-reviewers,cookie-reviewers,robwu,afinder,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D178589
2023-05-23 08:13:08 +00:00
Dan Robertson
e5b4659701 Bug 1821733 - End the current wheel event group on perform action. r=webdriver-reviewers,whimboo
Ensure that a wheel event group does not live longer than the action
chain, by calling EndTransaction on performActions().

Depends on D177923

Differential Revision: https://phabricator.services.mozilla.com/D177924
2023-05-22 19:50:10 +00:00
Julian Descottes
548bf8633f Bug 1832028 - [bidi] Throw NoSuchElement if ElementOrigin's node is not an element r=webdriver-reviewers,whimboo
At the moment the actions module would already throw an InvalidArgument error, but for BiDi we want explicitly to throw NoSuchElement in this case.

Differential Revision: https://phabricator.services.mozilla.com/D178185
2023-05-22 14:05:27 +00:00
Mark Banner
2a53076d43 Bug 1826063 - Automatic fixes for enabling Prettier on production xhtml and html files. r=mossop,webdriver-reviewers,webcompat-reviewers,geckoview-reviewers,extension-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,fxview-reviewers,sgalich,nalexander,devtools-reviewers,sclements,denschub,robwu,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177938
2023-05-20 12:26:56 +00:00
Mark Banner
730da94f3a Bug 1826062 - Manual fixes for Prettier 2.8.8 upgrade. r=mossop,webdriver-reviewers,extension-reviewers,devtools-reviewers,robwu
Differential Revision: https://phabricator.services.mozilla.com/D177908
2023-05-20 12:26:55 +00:00
Mark Banner
130a655906 Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,calu
Differential Revision: https://phabricator.services.mozilla.com/D177027
2023-05-20 12:26:53 +00:00
Mark Banner
8219a5c503 Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177025
2023-05-20 12:26:49 +00:00
Natalia Csoregi
4ab7fd28a6 Merge mozilla-central to autoland. a=merge CLOSED TREE 2023-05-16 15:37:05 +03:00
Natalia Csoregi
2d404ebada Backed out 8 changesets (bug 1830884, bug 1822466) for causing regressions in the upstream wpt tests. a=backout
Backed out changeset 7f4052a38bc6 (bug 1830884)
Backed out changeset 67d5d6a5f321 (bug 1830884)
Backed out changeset 77f0334c7976 (bug 1830884)
Backed out changeset 31607d74ee69 (bug 1830884)
Backed out changeset 256239106623 (bug 1822466)
Backed out changeset d94b6d6cd713 (bug 1822466)
Backed out changeset 2c6d325cb248 (bug 1822466)
Backed out changeset b89608b3c46a (bug 1822466)
2023-05-16 15:33:54 +03:00
Henrik Skupin
4a00fc9777 Bug 1832380 - [webdriver-bidi] Remove experimental flag for "input.performActions" and "input.releaseActions". r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D178091
2023-05-16 06:03:56 +00:00