Commit Graph

2102 Commits

Author SHA1 Message Date
Temidayo
6a50b65da7 Bug 1855025 - [webdriver-bidi] Implement "browser.getClientWindows" command. r=whimboo,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D225065
2024-11-05 19:18:52 +00:00
Alexandra Borovova
578b303229 Bug 1924859 - [bidi] Only allow "browsingContext.traverseHistory" command for top-level browsing contexts. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D227215
2024-10-29 16:33:45 +00:00
Julian Descottes
784964ba7b Bug 1927144 - [remote] Fix test helper hasPromiseResolved r=webdriver-reviewers,whimboo
Depends on D226890

Differential Revision: https://phabricator.services.mozilla.com/D227017
2024-10-29 13:14:19 +00:00
Henrik Skupin
2288505619 Bug 1927073 - [remote] Retrieve new browsing context if old one was replaced when forwarding a command to the window global. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D226890
2024-10-29 05:56:05 +00:00
pstanciu
8591f727f3 Backed out 2 changesets (bug 1914407) for causing Wd navigation related failure CLOSED TREE
Backed out changeset 098952454738 (bug 1914407)
Backed out changeset 59ae3c80d4f7 (bug 1914407)
2024-10-29 01:42:43 +02:00
Julian Descottes
25d94901c6 Bug 1914407 - [bidi] Send custom error when navigation is aborted because of another navigation r=webdriver-reviewers,whimboo
Depends on D226770

Differential Revision: https://phabricator.services.mozilla.com/D226774
2024-10-28 17:29:15 +00:00
Henrik Skupin
4554ed34e7 Bug 1926270 - [puppeteer] Fix setting of shard values for mach commands. r=webdriver-reviewers,Sasha
Differential Revision: https://phabricator.services.mozilla.com/D226478
2024-10-22 16:00:31 +00:00
Julian Descottes
a10311ba30 Bug 1924469 - [marionette] Include dialog text in unexpected alert open error message r=webdriver-reviewers,whimboo
Consumers seem to depend on having the dialog text in the error message, so we restore it here.

Differential Revision: https://phabricator.services.mozilla.com/D226289
2024-10-22 11:54:33 +00:00
Julian Descottes
8f75db2421 Bug 1923899 - [bidi] Wait for currentWindowGlobal when sending commands to window global message handlers r=webdriver-reviewers,Sasha
When attempting to send commands on a very early browsing context, the command might fail
due to a missing currentWindowGlobal.
This patch adds a helper to wait for the currentWindowGlobal property to be set and uses it from
RootTransport in order to avoid this issue.
A browser mochitest is added to cover this scenario.

Differential Revision: https://phabricator.services.mozilla.com/D225281
2024-10-15 14:33:29 +00:00
Liam DeBeasi
00a9c3e81a Bug 1916498 - Add _forwardToWindowGlobal helper r=jdescottes,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D224880
2024-10-15 08:31:01 +00:00
Julian Descottes
b21e6d226e Bug 1886518 - [remote] Add cached resource test for images and scripts r=webdriver-reviewers,Sasha
Differential Revision: https://phabricator.services.mozilla.com/D224505
2024-10-14 08:51:48 +00:00
Alexandra Borovova
4520602101 Bug 1857571 - [marionette] Handle window positioning on Wayland. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D224952
2024-10-10 13:54:27 +00:00
Temidayo
5023365fef Bug 1886382 - browsingContext.print" needs to raise "unsupported operation" error for PDFs with zero dimension. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D224329
2024-10-10 09:16:28 +00:00
Julian Descottes
eca3838731 Bug 1922327 - [bidi] Do not override ongoing navigations with fragment or same document navigation ids r=webdriver-reviewers,Sasha
Fragment and same-document navigations could override an ongoing navigation and lead browsing
context events such as load and domContentLoaded events to no longer be linked to the expected navigation
id.

Differential Revision: https://phabricator.services.mozilla.com/D224385
2024-10-09 12:26:19 +00:00
Julian Descottes
e50991db5e Bug 1898158 - [bidi] Support url parameter in network.continueRequest r=webdriver-reviewers,Sasha
Differential Revision: https://phabricator.services.mozilla.com/D223377
2024-10-08 17:30:45 +00:00
Calixte
676758d8f5 Bug 1923162 - Avoid to throw from CachedResourceListener::observe when the channel isn't a http one r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D224823
2024-10-08 13:46:29 +00:00
Julian Descottes
6ce4f710e6 Bug 1922390 - [bidi] Use asyncOpenTime instead of channelCreationTime for bidi network event timings r=webdriver-reviewers,Sasha
Differential Revision: https://phabricator.services.mozilla.com/D224442
2024-10-08 12:18:20 +00:00
Masayuki Nakano
033db44f68 Bug 1922709 - Make dom.isInView restore original style attribute r=webdriver-reviewers,jgraham
It sets `el.style.pointerEvents` to `"auto"`.  Then, it causes updating (or
adding) `style` attribute of `el`.  Finally, it'll restore the original
`el.style.pointerEvents` value, but unnecessary `style` attribute may stay
on `el`.  Therefore, it should restore original `style` attribute` state too.

Differential Revision: https://phabricator.services.mozilla.com/D224567
2024-10-07 23:06:06 +00:00
Tooru Fujisawa
44facc902b Bug 1919218 - Part 2: Merge http-on-stylesheet-cache-response notification to http-on-resource-cache-response. r=emilio,Sasha,webdriver-reviewers,devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D224432
2024-10-07 08:07:45 +00:00
Julian Descottes
a497a9f50d Bug 1921756 - [bidi] Avoid errors on uninitialized browsingContexts during command broadcast r=webdriver-reviewers,whimboo
The isExtensionContext and isParentProcess browsing context helpers could throw if the
browsingContext did not have a valid currentWindowGlobal property.

Here we perform an early check on currentWindowGlobal from the only caller of those helpers, which
is isBrowsingContextCompatible. For this helper, it makes sense to return false if the browsing
context is not correctly attached yet. But it is more difficult to return a meaningful value
from isExtensionContext or isParentProcess, because those 2 helpers cannot assess the browsing
context correctly.

Differential Revision: https://phabricator.services.mozilla.com/D224238
2024-10-03 08:46:22 +00:00
Alexandra Borovova
366c4b53b6 Bug 1912292 - Run puppeteer tests in several chunks. r=webdriver-reviewers,whimboo,ahal
Differential Revision: https://phabricator.services.mozilla.com/D223500
2024-10-02 07:06:34 +00:00
Henrik Skupin
0562020fcf Bug 1915798 - [remote] Add support for "Action queues" to sequencially perform actions without races. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D220900
2024-09-30 20:36:57 +00:00
Henrik Skupin
0449a3d041 Bug 1904665 - [remote] Prepare the Remote Agent code base for parent process event dispatching. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D220543
2024-09-30 20:36:57 +00:00
Henrik Skupin
965d913e9c Bug 1904665 - [webdriver] Update JSdoc in Actions module. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D220542
2024-09-30 20:36:56 +00:00
Henrik Skupin
84099ccb99 Bug 1854942 - [remote] Add documentation for the new "remote.retry-on-abort" preference. r=webdriver-reviewers,jdescottes
I initially forgot to add this documentation.

DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D223744
2024-09-26 16:27:27 +00:00
Benjamin VanderSloot
5ffc34408c Bug 1873418 - Support Partitioned cookie attribute for browser extensions - r=robwu,anti-tracking-reviewers,webdriver-reviewers,timhuang,Sasha
The part that is covered here is extending the partitionKey attribute, as in the proposal of aselya here:

https://github.com/w3c/webextensions/pull/581/files

Notably not included is adding the new Cookies.GetPartitionKey function.

Differential Revision: https://phabricator.services.mozilla.com/D219990
2024-09-26 05:36:00 +00:00
Butkovits Atila
18cff65ed8 Backed out changeset b8b6e3f85b20 (bug 1873418) for causing failures at test_getPartitionKeyFromURL.js. CLOSED TREE 2024-09-26 02:03:50 +03:00
Benjamin VanderSloot
bf000ea68c Bug 1873418 - Support Partitioned cookie attribute for browser extensions - r=robwu,anti-tracking-reviewers,webdriver-reviewers,timhuang,Sasha
The part that is covered here is extending the partitionKey attribute, as in the proposal of aselya here:

https://github.com/w3c/webextensions/pull/581/files

Notably not included is adding the new Cookies.GetPartitionKey function.

Differential Revision: https://phabricator.services.mozilla.com/D219990
2024-09-25 21:55:08 +00:00
Alexandra Borovova
9e2deb46de Bug 1899978 - [bidi] Use "network.cookie.CHIPS.enabled" preference in cookie APIs. r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D223321
2024-09-25 15:59:29 +00:00
Henrik Skupin
5b63deea14 Bug 1854942 - [remote] Retry invocation of module methods automatically. r=webdriver-reviewers,jdescottes
The message handler framework now automatically retries executing
module methods in the window global if the corresponding
JSWindowActor pair is destroyed or becomes inactive.

This behavior can be disabled by setting the preference
"remote.retry-on-abort" to false, in which case retries
will only occur during the initial navigation.

Additionally, the behavior can be explicitly controlled
by individual callers by passing the "retryOnAbort" flag.

Differential Revision: https://phabricator.services.mozilla.com/D223398
2024-09-25 13:05:51 +00:00
Henrik Skupin
2eaa19befe Bug 1920053 - [remote] Make sure to call ProgressListener.destroy() to not leak registered observers and events. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D222945
2024-09-21 06:33:00 +00:00
Julian Descottes
704b3ddf01 Bug 1919784 - [remote] Update browser mochitest for cachedResourceListener r=arai,webdriver-reviewers,whimboo
This should allow to reenable the test after https://phabricator.services.mozilla.com/D222791

Differential Revision: https://phabricator.services.mozilla.com/D222876
2024-09-20 08:39:07 +00:00
William Wen
be5526492f Bug 1913000 - Add more rate limiting to History interface. r=webidl,smaug,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D221255
2024-09-19 16:09:02 +00:00
Julian Descottes
b0dd829377 Bug 1916685 - [bidi] Convert all network event timings to milliseconds r=webdriver-reviewers,whimboo
Platform timestamps are in microseconds, while we expect network event timings in milliseconds

Differential Revision: https://phabricator.services.mozilla.com/D221033
2024-09-19 13:37:04 +00:00
Julian Descottes
c6d6d1e944 Bug 1918672 - [bidi] Retry all commands if the browsing context is loading or is initial r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D222602
2024-09-19 12:05:46 +00:00
Liam DeBeasi
71942cb113 Bug 1902377 - Rename "isRoot" argument to "includeParentId" r=whimboo,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D222385
2024-09-19 07:00:15 +00:00
Henrik Skupin
64c142ef73 Bug 1918287 - [webdriver-bidi] Retry viewport being resized check in "browsingContext.setViewport" when browsing context gets replaced. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D222368
2024-09-17 12:30:13 +00:00
Emilio Cobos Álvarez
1d882fecbf Bug 1919094 - Fix CDP tests after bug 1917458. r=webdriver-reviewers,jdescottes
Same fix as for puppeteer.

Differential Revision: https://phabricator.services.mozilla.com/D222331
2024-09-16 18:23:06 +00:00
Emilio Cobos Álvarez
7881b1d9c1 Bug 1917458 - Fix puppeteer/remote tests after D221995. r=webdriver-reviewers,webidl,smaug,jdescottes
Calling setViewport on a background tab would wait forever without this
tweak after D221995, because we won't resize it until it becomes active.

Some tests like the ones mentioned in comment 12 call newPage() multiple
times at once, and newPage() calls setViewport() if there is a default
viewport set, which triggered this bug.

Make this work by reusing the AppWindow logic for sizing popup windows,
with a tweak so that we also resize background tabs.

Differential Revision: https://phabricator.services.mozilla.com/D222227
2024-09-16 13:21:51 +00:00
Cristian Tuns
58dba161ea Backed out 6 changesets (bug 1915798, bug 1904665, bug 1918049) for causing wpt failures in input-events-get-target-ranges-joining-dl-elements.tentative.html CLOSED TREE
Backed out changeset 99755cd9107c (bug 1915798)
Backed out changeset 937789e1206d (bug 1915798)
Backed out changeset a204942669fe (bug 1904665)
Backed out changeset 56bcb0cc0d7f (bug 1904665)
Backed out changeset 148a13606d43 (bug 1904665)
Backed out changeset ae1bf54a9000 (bug 1918049)
2024-09-13 05:13:41 -04:00
Henrik Skupin
30211aca45 Bug 1915798 - [remote] Add support for "Action queues" to sequencially perform actions without races. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D220900
2024-09-13 07:32:20 +00:00
Henrik Skupin
3fdf8c520e Bug 1904665 - [remote] Prepare the Remote Agent code base for parent process event dispatching. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D220543
2024-09-13 07:32:20 +00:00
Henrik Skupin
2e9f5bb7bd Bug 1904665 - [webdriver] Update JSdoc in Actions module. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D220542
2024-09-13 07:32:18 +00:00
Tamas Szentpeteri
39ba517eea Backed out 5 changesets (bug 1915798, bug 1904665) for causing wpt failures related to ValueError: Selector. CLOSED TREE
Backed out changeset d0e02650c62f (bug 1915798)
Backed out changeset f971ce67915c (bug 1915798)
Backed out changeset d20f091c1aab (bug 1904665)
Backed out changeset ec79322c670d (bug 1904665)
Backed out changeset 046e38921371 (bug 1904665)
2024-09-10 20:22:40 +03:00
Henrik Skupin
e8090b5410 Bug 1915798 - [remote] Add support for "Action queues" to sequencially perform actions without races. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D220900
2024-09-10 13:12:34 +00:00
Henrik Skupin
dee4668b17 Bug 1904665 - [remote] Prepare the Remote Agent code base for parent process event dispatching. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D220543
2024-09-10 13:12:33 +00:00
Henrik Skupin
5155a142db Bug 1904665 - [webdriver] Update JSdoc in Actions module. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D220542
2024-09-10 13:12:33 +00:00
Julian Descottes
da3374f344 Bug 1917524 - [cdp] Disable network.cookie.useServerTime for CDP network mochitests r=webdriver-reviewers,whimboo
Depends on D221427

The RecommendedPreferences do not apply to mochitests

Differential Revision: https://phabricator.services.mozilla.com/D221553
2024-09-10 07:50:58 +00:00
Julian Descottes
d5095fa96d Bug 1917524 - [cdp] Disable network.cookies.useServerTime for CDP r=webdriver-reviewers,whimboo
This preference can make parsing the cookie expiry flaky for tests

Differential Revision: https://phabricator.services.mozilla.com/D221427
2024-09-09 13:51:51 +00:00
Noemi Erli
a4273350cc Backed out 5 changesets (bug 1915798, bug 1904665) for causing failures pointer_mouse_drag.py
Backed out changeset c163aae0b922 (bug 1915798)
Backed out changeset 27efecb55f94 (bug 1915798)
Backed out changeset 7670532062ec (bug 1904665)
Backed out changeset 669d9db4d064 (bug 1904665)
Backed out changeset a7ed7e623ec9 (bug 1904665)
2024-09-06 20:58:14 +03:00