Commit Graph

1434 Commits

Author SHA1 Message Date
James Graham
2313f21853 Bug 1792090 - Add input module support to WebDriver BiDi r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D157972
2023-03-30 15:23:17 +00:00
James Graham
5562f02a7c Bug 1792090 - Move action module to remote/shared/webdriver r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D157970
2023-03-30 15:23:17 +00:00
Alexandra Borovova
b050900241 Bug 1802137 - [bidi] Enhance support for serialization and deserialization of platform objects of type Node for ShadowRoot. r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D173297
2023-03-30 08:17:36 +00:00
ogiorgis
f59f695642 Bug 1621950 - fix some myst ref warnings r=firefox-source-docs-reviewers,devtools-reviewers,sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D173843
2023-03-30 08:01:22 +00:00
Lata
5528bda290 Bug 1823612 - Remove usage of marionette.log.level from Log.sys.mjs. r=whimboo,webdriver-reviewers,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D173207
2023-03-29 15:21:16 +00:00
Julian Descottes
4bbf1c5698 Bug 1815460 - [devtools] Merge addRequestPostData, addResponseHeaders, addResponseCookies into addResponseStart r=webdriver-reviewers,ochameau,bomsy,devtools-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D168538
2023-03-25 20:29:59 +00:00
Csoregi Natalia
a04681d292 Backed out 2 changesets (bug 1815460) for causing netmonitor devtools failures. CLOSED TREE
Backed out changeset 14ac0e2bcccb (bug 1815460)
Backed out changeset 7765cf9b63f5 (bug 1815460)
2023-03-24 22:20:30 +02:00
Julian Descottes
cbe400b445 Bug 1815460 - [devtools] Merge addRequestPostData, addResponseHeaders, addResponseCookies into addResponseStart r=webdriver-reviewers,ochameau,bomsy,devtools-reviewers,whimboo
Depends on D169361

Differential Revision: https://phabricator.services.mozilla.com/D168538
2023-03-24 16:14:44 +00:00
Frazier Odhiambo
8ab1f55f02 Bug 1610317 - [cdp] Use SpecialPowers.spawn instead of ContentTask.spawn in browser chrome tests. r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D172399
2023-03-23 13:45:53 +00:00
Alexandra Borovova
6d1ad5f6f8 Bug 1791819 - [marionette] Add support for the orientation parameter in WebDriver:Print. r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D173413
2023-03-23 13:08:29 +00:00
CanadaHonk
2165378ccd Bug 1823089 - [cdp] Request longer timeout for consoleAPICalled tests r=webdriver-reviewers,whimboo
Fixes perma test fails due to more tests added previously triggering
timeouts.

Differential Revision: https://phabricator.services.mozilla.com/D173255
2023-03-22 16:02:31 +00:00
Julian Descottes
37482a46bd Bug 1822772 - [bidi] Use windowRoot to monitor load events r=webdriver-reviewers,whimboo
Depends on D173132

Event listeners are removed when using document.open, so we should use windowRoot instead

Differential Revision: https://phabricator.services.mozilla.com/D173020
2023-03-22 13:18:22 +00:00
Julian Descottes
0232a50aa5 Bug 1823670 - [messagehandler] Destroy MessageHandlers when pages move to BFCache r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D173132
2023-03-22 13:18:22 +00:00
Henrik Skupin
43234ab776 Bug 1823464 - [marionette] Handle DOMTokenList instances as collection. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D173068
2023-03-21 18:28:36 +00:00
Frazier Odhiambo
9ac5475c8f Bug 1816664 Rename addSessionData/removeSessionData methods of RootMessageHandler to addSessionDataItem/removeSessionDataItem r=webdriver-reviewers,Sasha
Differential Revision: https://phabricator.services.mozilla.com/D172513
2023-03-21 07:57:31 +00:00
Julian Descottes
0b454f39f1 Bug 1585622 - [marionette] Add support for getComputedRole and getComputedLabel r=webdriver-reviewers,whimboo
A base getAccessible helper is extracted from the accessibility.Checks module to avoid issues related to the "strict" flag, which do not make sense here.

Differential Revision: https://phabricator.services.mozilla.com/D172146
2023-03-20 21:46:01 +00:00
Dan Robertson
126bc64c16 Bug 1168182 - Update webdriver recommended prefs. r=whimboo,webdriver-reviewers,jdescottes
Update the webdriver recommended preferences to include
dom.events.wheel-event-groups.enabled=false

Differential Revision: https://phabricator.services.mozilla.com/D172025
2023-03-20 12:19:36 +00:00
CanadaHonk
3dc5d98c1a Bug 1679887 - [cdp] Emit past console messages on Runtime.enable r=jdescottes
Emit past console messages with Runtime.consoleAPICalled as
Runtime.enable is ran. Also added new test.

Depends on D170131

Differential Revision: https://phabricator.services.mozilla.com/D170136
2023-03-16 20:25:31 +00:00
CanadaHonk
366960831d Bug 1679981 - [cdp] Implement stackTrace for Runtime.consoleAPICalled r=webdriver-reviewers,whimboo
Implemented stackTrace for Runtime.consoleAPICalled. Added new tests
covering it as well. Tweaked internals for Runtime to have separate
functions for creating stack traces for console and exception types,
as they differ unfortunately.

Differential Revision: https://phabricator.services.mozilla.com/D170131
2023-03-16 20:25:30 +00:00
Alexandra Borovova
fda4583388 Bug 1700095 - [marionette] Add support for finding elements from shadow roots. r=webdriver-reviewers,jdescottes,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D172212
2023-03-16 19:19:40 +00:00
Alexandra Borovova
8ecbf74a4f Bug 1700095 - [marionette] Move fromUUID helper from WebReference to WebElement class. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D172687
2023-03-16 19:19:40 +00:00
Julian Descottes
ab3931ad56 Bug 1806794 - Support "network.response" events for cached responses r=webdriver-reviewers,whimboo,devtools-reviewers,ochameau
This fixes two issues:
- the transferred size was missing from cached responseStarted events
- the fromCache flag needs to be read on the initial network event payload from devtools, because relying on the isFromCache logic used to build the addResponseStart payload does not properly detect all cached responses (eg for a cached 301)

Differential Revision: https://phabricator.services.mozilla.com/D171508
2023-03-16 14:01:03 +00:00
Alexandra Borovova
8f8a400ed5 Bug 1783086 - [marionette] Rename printBackground to background for WebDriver compatibility. r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D171693
2023-03-13 16:20:18 +00:00
CanadaHonk
e617726b87 Bug 1820459 - [cdp] Split-off Promise tests for evaluate and callFunctionOn r=webdriver-reviewers,whimboo
Split-off (await)Promise tests for evaluate and callFunctionOn into
their own separate test files to avoid timeouts whilst testing.

Differential Revision: https://phabricator.services.mozilla.com/D172053
2023-03-09 11:45:33 +00:00
Henrik Skupin
14f639087f Bug 1770733 - [bidi] Serialize and deserialize objects of type Node with sharedId field. r=webdriver-reviewers,Sasha,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D169490
2023-03-08 22:30:05 +00:00
Julian Descottes
b5e9114eb4 Bug 1815459 - [devtools] Remove NetworkUtils.createNetworkEvent r=ochameau,bomsy,devtools-reviewers
Depends on D168537

Differential Revision: https://phabricator.services.mozilla.com/D168791
2023-03-07 21:36:06 +00:00
Julian Descottes
2396effc3f Bug 1815459 - [devtools] Remove addRequestHeaders and addRequestCookies r=webdriver-reviewers,ochameau,bomsy,whimboo,devtools-reviewers
Depends on D168536

Differential Revision: https://phabricator.services.mozilla.com/D168537
2023-03-07 21:36:06 +00:00
Henrik Skupin
6c0d552a19 Bug 1818159 - [webdriver-bidi] When serializing platform objects of type Node only include "children" field if those were collected. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D171865
2023-03-07 21:06:29 +00:00
Julian Descottes
ee0ed5a948 Bug 1819875 - [bidi] Remove isRedirect from the network events base parameters r=webdriver-reviewers,Sasha
Differential Revision: https://phabricator.services.mozilla.com/D171840
2023-03-07 13:59:15 +00:00
Henrik Skupin
41ba80361e Bug 1819965 - [cdp] Re-load framescript when browsing context gets replaced due to a navigation. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D171498
2023-03-06 22:09:16 +00:00
Henrik Skupin
be600672dc Bug 1820487 - [remote] RemoteAgent fails to stop the httpd.js listener if CDP and/or BiDi fail to stop. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D171727
2023-03-06 22:09:16 +00:00
Mark Banner
80cc721b82 Bug 1820498 - Convert PerTestCoverageUtils to an ES module. r=marco,webdriver-reviewers,perftest-reviewers,sparky,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D171689
2023-03-06 19:13:58 +00:00
CanadaHonk
6805974fcc Bug 1702860 - [cdp] Fix ProtocolError on returning a rejected Error with awaitPromise r=webdriver-reviewers,whimboo
Fixed an internal error causing a ProtocolError when a Promise ran using
Runtime.evaluate/Runtime.callFunctionOn and rejects with an Error(),
while using the awaitPromise option. Also added tests for such cases.

With Promises, rejections should be also made into debuggee values, not
just successful resolutions.

Differential Revision: https://phabricator.services.mozilla.com/D167496
2023-03-03 08:46:23 +00:00
Julian Descottes
f57b9920af Bug 1819320 - [cdp] Use waitForNewTab to monitor the load of invalid URLs in browser_createTarget.js r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D171316
2023-03-01 11:05:57 +00:00
Alexandra Borovova
8d4f57a4d7 Bug 1806810 - [bidi] Implement "browsingContext.print" as PDF command. r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D170353
2023-03-01 08:18:54 +00:00
Henrik Skupin
db752eaf4c Bug 1819029 - [marionette] Fix returning response wrapped in "value" field. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D171084
2023-02-28 20:55:55 +00:00
Julian Descottes
621bd2b0a3 Bug 1819120 - [bidi] Migrate test_RemoteValue.js to a browser mochitest r=webdriver-reviewers,whimboo
Depends on D170809
Migrate the test to a browser mochitest and start testing deserialization in WindowRealm

Differential Revision: https://phabricator.services.mozilla.com/D171107
2023-02-28 13:24:18 +00:00
CanadaHonk
3236c91a7b Bug 1817258 - [cdp] Support url option for Target.createTarget r=webdriver-reviewers,whimboo
Added support for url option for Target.createTarget (required).
Also added new tests for Target.createTarget as full dedicated tests
did not exist beforehand, and tweaked some internal usage without url.

Differential Revision: https://phabricator.services.mozilla.com/D171079
2023-02-28 10:47:32 +00:00
Mark Banner
55bba8e918 Bug 1819019 - Update consumers of services/common to import ES modules directly. r=markh,webdriver-reviewers,extension-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D171055
2023-02-28 10:11:55 +00:00
Frazier Odhiambo
cad57921d1 Bug 1810101 - [remote] Use add_task() instead of add_test() for xpcshell tests. r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D170809
2023-02-28 07:32:29 +00:00
CanadaHonk
22ee5824f9 Bug 1625417 - [cdp] Use number as nodeId for DOM methods r=webdriver-reviewers,jdescottes
Use a number as nodeId instead of a UUID string as per CDP spec.
Also fixed tests expecting number to be an invalid type and string to be
valid instead.

Differential Revision: https://phabricator.services.mozilla.com/D167316
2023-02-28 06:37:24 +00:00
CanadaHonk
62060b7fed Bug 1744925 - [marionette] Fix extra change event with WebDriver:ElementClear for content editables r=webdriver-reviewers,whimboo
Fixed extra change event being emitted when WebDriver:ElementClear is
called for content editable elements.

Differential Revision: https://phabricator.services.mozilla.com/D170282
2023-02-27 08:30:52 +00:00
Henrik Skupin
7eddaf2fd1 Bug 1817934 - [puppeteer] Update test expection data. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D170800
2023-02-25 10:14:26 +00:00
Henrik Skupin
33c84b1801 Bug 1817934 - [puppeteer] Vendor Puppeteer v19.7.2. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D170799
2023-02-25 10:14:26 +00:00
Henrik Skupin
13840898bb Bug 1817934 - [puppeteer] Update Puppeteer vendoring documentation. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D170798
2023-02-25 10:14:25 +00:00
CanadaHonk
ff90131cd0 Bug 1808688 - [bidi] Remove before request sent map spec assert r=jdescottes,webdriver-reviewers
Removed the "before request sent map" spec assert which is now unneeded
as to document invariants in the implementation.

Also updated WPT test expectations.

Differential Revision: https://phabricator.services.mozilla.com/D170335
2023-02-21 21:25:35 +00:00
Alexandra Borovova
a93f88bfa8 Bug 1803392 - Remove usage of temporary file when printing to PDF. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D169795
2023-02-17 13:54:07 +00:00
Marian-Vasile Laza
8c0dd89bbe Backed out changeset b92093717dcd (bug 1803392) for wp failures on block-page-break-inside-avoid-1-print.html. 2023-02-16 18:20:19 +02:00
Alexandra Borovova
689922e0fa Bug 1803392 - Remove usage of temporary file when printing to PDF. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D169795
2023-02-16 14:04:23 +00:00
Alexandra Borovova
c98bd43a44 Bug 1806465 - [bidi] Implement "script.removePreloadScript" command. r=webdriver-reviewers,jdescottes
Depends on D169420

Differential Revision: https://phabricator.services.mozilla.com/D169421
2023-02-16 12:45:33 +00:00