Commit Graph

611 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
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
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
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
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
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
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
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
Alexandra Borovova
3250d94dc2 Bug 1879438 - [bidi] Create BiDi network events for cached stylesheets. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D220572
2024-09-06 14:47:24 +00:00
Julian Descottes
9125598ea4 Bug 1914469 - [remote] Reuse the logLevel lazy getter to compute Log.verbose r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D219920
2024-09-06 13:09:43 +00:00
Henrik Skupin
ac93fa1e46 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-06 13:00:14 +00:00
Henrik Skupin
35895f5e1c 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-06 13:00:13 +00:00
Henrik Skupin
606a235cde Bug 1904665 - [webdriver] Update JSdoc in Actions module. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D220542
2024-09-06 13:00:13 +00:00
Liam DeBeasi
ec095b58a2 Bug 1910087 - Remove preRegisteredNavigationIds in favor of navigations. r=webdriver-reviewers,Sasha
Differential Revision: https://phabricator.services.mozilla.com/D220643
2024-09-04 11:39:59 +00:00
Julian Descottes
130fde1336 Bug 1913737 - [bidi] Add support for statusCode and reasonPhrase arguments for network.continueResponse r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D219683
2024-08-29 13:49:49 +00:00
Julian Descottes
930671ce03 Bug 1853887 - [bidi] Add support for cookies and headers arguments for network.continueResponse r=webdriver-reviewers,Sasha
Differential Revision: https://phabricator.services.mozilla.com/D219661
2024-08-23 18:40:08 +00:00
Mark Banner
a99d89a12c Bug 1870226 - Upgrade eslint-plugin-jsdoc to version 43.2.0. r=frontend-codestyle-reviewers,credential-management-reviewers,issammani
This switches from the deprecated/removed jsdoc/newline-after-description rule to using the replacement jsdoc/tag-lines rule.

Differential Revision: https://phabricator.services.mozilla.com/D219512
2024-08-23 16:43:57 +00:00
Mark Banner
a55c556aad Bug 1870226 - Use typescript Record definitions rather than Object<> generic forms for jsdoc. r=zombie,webdriver-reviewers,omc-reviewers,aminomancer,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D219511
2024-08-23 16:43:56 +00:00
Cristian Tuns
24d07e533a Backed out 4 changesets (bug 1853887, bug 1914018) for causing wd failures in headers.py CLOSED TREE
Backed out changeset 3bb4680e845b (bug 1914018)
Backed out changeset 1da1c517324f (bug 1853887)
Backed out changeset 9ade690726e2 (bug 1853887)
Backed out changeset 0369bdef1027 (bug 1853887)
2024-08-23 11:01:37 -04:00
Julian Descottes
cb5af2e1a7 Bug 1853887 - [bidi] Add support for cookies and headers arguments for network.continueResponse r=webdriver-reviewers,Sasha
Differential Revision: https://phabricator.services.mozilla.com/D219661
2024-08-23 13:46:54 +00:00
Butkovits Atila
2837d313b2 Backed out 7 changesets (bug 1870226) for causing build bustages. CLOSED TREE
Backed out changeset 619244623dba (bug 1870226)
Backed out changeset e85a5647cae4 (bug 1870226)
Backed out changeset 21ea9baf83ea (bug 1870226)
Backed out changeset a506c0f0ce28 (bug 1870226)
Backed out changeset 77c78201a206 (bug 1870226)
Backed out changeset 7a98dfef087f (bug 1870226)
Backed out changeset f64ad89c2406 (bug 1870226)
2024-08-23 12:22:02 +03:00
Mark Banner
09fa5144e1 Bug 1870226 - Upgrade eslint-plugin-jsdoc to version 43.2.0. r=frontend-codestyle-reviewers,credential-management-reviewers,issammani
This switches from the deprecated/removed jsdoc/newline-after-description rule to using the replacement jsdoc/tag-lines rule.

Differential Revision: https://phabricator.services.mozilla.com/D219512
2024-08-23 08:55:49 +00:00
Mark Banner
38fa6dd49f Bug 1870226 - Use typescript Record definitions rather than Object<> generic forms for jsdoc. r=zombie,webdriver-reviewers,omc-reviewers,aminomancer,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D219511
2024-08-23 08:55:49 +00:00
Alexandra Borovova
a99f2ae264 Bug 1905083 - [bidi] Fail "browsingContext.navigate" command when the "navigation-failed" event received. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D218646
2024-08-13 13:24:09 +00:00