Граф коммитов

1420 Коммитов

Автор SHA1 Сообщение Дата
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
Alexandra Borovova 9c89992359 Bug 1806420 - [bidi] Implement "script.addPreloadScript" command. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D169420
2023-02-16 12:45:32 +00:00
Gijs Kruitbosch 9d7452a247 Bug 1810141 - update consumers of CanonicalBrowsingContext.loadURI to use fixup or pass a URI object if they have it, r=mak,webdriver-reviewers,whimboo
Depends on D168389

Differential Revision: https://phabricator.services.mozilla.com/D168390
2023-02-13 23:50:38 +00:00
Cristina Horotan 5f4356e527 Backed out 9 changesets (bug 1810141) for several test failures on a CLOSED TREE
Backed out changeset 8781a0d1254d (bug 1810141)
Backed out changeset 131037295784 (bug 1810141)
Backed out changeset 3852fbe290f4 (bug 1810141)
Backed out changeset 118f131a524a (bug 1810141)
Backed out changeset ab5d76846e10 (bug 1810141)
Backed out changeset dce3aa683445 (bug 1810141)
Backed out changeset 4dc41d90dbb3 (bug 1810141)
Backed out changeset 50b57ba1a061 (bug 1810141)
Backed out changeset 569de94781e4 (bug 1810141)
2023-02-13 16:05:30 +02:00
Gijs Kruitbosch e460aa10f3 Bug 1810141 - update consumers of CanonicalBrowsingContext.loadURI to use fixup or pass a URI object if they have it, r=mak,webdriver-reviewers,whimboo
Depends on D168389

Differential Revision: https://phabricator.services.mozilla.com/D168390
2023-02-13 12:55:22 +00:00
CanadaHonk e8cfba51b6 Bug 1680780 - [cdp] Set correct attached status in TargetInfo r=webdriver-reviewers,whimboo
Now checks if the target is attached by going through all sessions in
the CDP connection. Also updated and added tests.

Differential Revision: https://phabricator.services.mozilla.com/D167322
2023-02-10 19:25:00 +00:00
Alexandra Borovova 231b3e98e0 Bug 1810687 - [messagehandler] Group SessionData initial updates by moduleName and category. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D169312
2023-02-10 08:12:07 +00:00
Henrik Skupin e503a97720 Bug 1815838 - [cdp] Split-off return by value tests from browser_evaluate.js into a new file. r=webdriver-reviewers,Sasha,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D169291
2023-02-10 08:03:24 +00:00
CanadaHonk 2899a87902 Bug 1815221 - [cdp] Implement SystemInfo.getProcessInfo r=webdriver-reviewers,whimboo
Implement SystemInfo.getProcessInfo and start SystemInfo domain.
Also added new tests.

Differential Revision: https://phabricator.services.mozilla.com/D168950
2023-02-09 20:22:47 +00:00
Henrik Skupin eac20afa3f Bug 1794552 - [marionette] Fix Bugzilla components for Marionette related files. r=webdriver-reviewers,Sasha,jgraham DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D169201
2023-02-09 19:38:39 +00:00
CanadaHonk f82840d705 Bug 1810812 - [cdp] Implement filter option for Target.getTargets r=webdriver-reviewers,whimboo
Implement the filter option for Target.getTargets, by creating an
internal function for handling TargetFilters generally so support can be
added for other methods easier later. Also added relevant tests.

Differential Revision: https://phabricator.services.mozilla.com/D167172
2023-02-09 12:11:06 +00:00
Henrik Skupin eaf8dde117 Bug 1786299 - [cdp] Values including a Symbol should not be serialized. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D169056
2023-02-08 13:39:52 +00:00
Henrik Skupin e91a39e2be Bug 1786299 - [cdp] Use custom error message unknown contexts and cyclic objects for serialization by value. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D169055
2023-02-08 13:39:52 +00:00
Alexandra Borovova 96f643b327 Bug 1806413 - [bidi] Add scheduling of preloaded scripts for execution. r=webdriver-reviewers,whimboo,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D168543
2023-02-03 18:43:26 +00:00
CanadaHonk 3bf32814f0 Bug 1811290 - [cdp] Implement Target.getBrowserContexts r=webdriver-reviewers,whimboo
Depends on D168203

Differential Revision: https://phabricator.services.mozilla.com/D167293
2023-02-03 16:07:36 +00:00