CanadaHonk
5cf1dabcc0
Bug 1811049 - [cdp] Implement filter option for Target.setDiscoverTargets r=webdriver-reviewers,whimboo
...
Implement the filter option for Target.setDiscoverTargets, using
internal function created previously.
Also rewrote tests for Target.setDiscoverTargets, and some internal test
helpers.
Tweaked Puppeteer to accommodate for these changes, now using a
filter for Target.setDiscoverTargets like Chrome.
Upstream: https://github.com/puppeteer/puppeteer/pull/9693
Differential Revision: https://phabricator.services.mozilla.com/D167209
2023-04-06 15:25:08 +00:00
Henrik Skupin
f90e86c710
Bug 1826709 - [CDP] Prevent "/json/*" pages from being loaded within an iframe. r=webdriver-reviewers,freddyb,jdescottes
...
Differential Revision: https://phabricator.services.mozilla.com/D174860
2023-04-06 11:42:16 +00:00
Henrik Skupin
073ee7078b
Bug 1586503 - [cdp] Fix test eventsWhenNavigatingFrameSet for expected event order. r=webdriver-reviewers,jdescottes
...
Differential Revision: https://phabricator.services.mozilla.com/D174771
2023-04-05 20:54:38 +00:00
Julian Descottes
c0f871815e
Bug 1826366
- [remote] Manual fixes for valid-jsdoc in remote r=webdriver-reviewers,whimboo
...
Depends on D174738
Differential Revision: https://phabricator.services.mozilla.com/D174739
2023-04-05 16:25:48 +00:00
Julian Descottes
7ccbffb9f7
Bug 1826366
- [remote] Apply lint --fix for valid-jsdoc in remote r=webdriver-reviewers,whimboo
...
Differential Revision: https://phabricator.services.mozilla.com/D174738
2023-04-05 16:25:47 +00:00
Victoria Ajala
aebcad9703
Bug 1819174 Update test suite default tags for remote protocol component. r=whimboo,webdriver-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D174239
2023-04-05 15:36:28 +00:00
Henrik Skupin
9d12970ac8
Bug 1818080 - [remote] Add profile markers for CDP, Marionette and WebDriver BiDi commands and events. r=webdriver-reviewers,canaltinova,jdescottes
...
Differential Revision: https://phabricator.services.mozilla.com/D174211
2023-03-31 12:42: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
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
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
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
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
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
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
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
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
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
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
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
Henrik Skupin
4ef6f23775
Bug 1813981 - [geckodriver] Don't disable Fission when `moz:debuggerAddress` is used. r=jdescottes
...
Differential Revision: https://phabricator.services.mozilla.com/D168369
2023-01-31 19:25:17 +00:00
Gijs Kruitbosch
96480e22fb
Bug 1795255 - bustage fix: fix up some more imports that shouldn't have been removed because of confused environment conflicts. CLOSED TREE
...
Differential Revision: https://phabricator.services.mozilla.com/D168379
2023-01-31 13:07:58 +00:00
Gijs Kruitbosch
01261997d7
Bug 1795255 - autofix duplicate imports in tests under docshell, dom, layout, security, testing, toolkit and widget, r=Standard8,webdriver-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D167715
2023-01-31 11:48:42 +00:00
Mark Banner
8b2a7a80c7
Bug 1812977 - Remove now unnecessary import-globals-from statements in other directories. r=Gijs,webdriver-reviewers,whimboo
...
Differential Revision: https://phabricator.services.mozilla.com/D168074
2023-01-30 19:33:39 +00:00
CanadaHonk
8e0454bf81
Bug 1810230
- [cdp] Update JSONHandler to set "/json" as alias for "/json/list" r=webdriver-reviewers,whimboo
...
Added /json as an alias for /json/list endpoint in the HTTP routes.
Also added tests for /json/list generally.
Differential Revision: https://phabricator.services.mozilla.com/D166829
2023-01-20 14:47:15 +00:00
CanadaHonk
70ce66342c
Bug 1810253 - [cdp] Support trailing slashes for supported JSONHandler endpoints r=webdriver-reviewers,whimboo
...
Added support for trailing slashes when using HTTP endpoints
(eg: /json/protocol/), previously they would return 404, not conforming
with CDP docs / expected result. Also added tests for such cases.
Depends on D167048
Differential Revision: https://phabricator.services.mozilla.com/D166873
2023-01-20 14:47:15 +00:00
CanadaHonk
bedadc5cd8
Bug 1810726 - [cdp] Fix JSONHandler for "/json/list" to not include the main process target. r=webdriver-reviewers,whimboo
...
The list given by /json/list should not include the main process target
(/json/version should be used instead), Chromium does the same.
General tests for /json/list including using this fixed behavior are
added by the commit after to avoid having to fix newly added tests.
Differential Revision: https://phabricator.services.mozilla.com/D167048
2023-01-20 14:47:14 +00:00
Gijs Kruitbosch
8be066753c
Bug 1810995 - update BrowserTestUtils.loadURI consumers to use loadURIString (automated) - other directories - r=Standard8,webdriver-reviewers,whimboo
...
Differential Revision: https://phabricator.services.mozilla.com/D167154
2023-01-19 20:16:43 +00:00
Barret Rennie
d4eecd8ee4
Bug 1724687 - Remove osfile.jsm usage from remote/cdp r=webdriver-reviewers,nika,whimboo
...
This patch replaces the internals of the StreamRegistry et al to use a new
Stream class as the stream type. Under the hood, it delegates the IO to
IOUtils.
In the case where a PDF's data is returned directly (i.e., they don't request a
stream), we write the data to an nsIStorageStream in memory and hand over the
contents without touching the disk.
Differential Revision: https://phabricator.services.mozilla.com/D163372
2023-01-18 18:05:38 +00:00
Mark Banner
d691c51a0d
Bug 1808173 - Convert prompts imports to direct ES imports. r=Gijs,webdriver-reviewers,necko-reviewers,application-update-reviewers,credential-management-reviewers,valentin,whimboo,dimi,bytesized
...
Differential Revision: https://phabricator.services.mozilla.com/D165794
2023-01-16 13:32:20 +00:00
Henrik Skupin
9d9a32281c
Bug 1809105 - [cdp] Increase TIMEOUT_MULTIPLIER for browser chrome tests for debug, ASAN/TSAN, and CCOV builds. r=webdriver-reviewers,Sasha,jdescottes
...
Depends on D166826
Differential Revision: https://phabricator.services.mozilla.com/D166827
2023-01-16 11:23:07 +00:00
Henrik Skupin
8647837ae8
Bug 1734312 - [cdp] Request longer timeout for browser_lifecycleEvent.js. r=webdriver-reviewers,Sasha,jdescottes
...
Differential Revision: https://phabricator.services.mozilla.com/D166826
2023-01-16 11:23:06 +00:00
CanadaHonk
95c057ba8f
Bug 1809712 - [cdp] Fix /json/version reporting incorrect Protocol-Version r=webdriver-reviewers,whimboo
...
The HTTP endpoint /json/version reports Protocol-Version as 1.0, when it
should be 1.3 (as Browser.getVersion correctly reports already). Also
updates test which validates endpoint.
Differential Revision: https://phabricator.services.mozilla.com/D166583
2023-01-12 13:05:05 +00:00
CanadaHonk
0fb5e948b4
Bug 1809051 - [cdp] Browser.getVersion: compute jsVersion and add tests r=webdriver-reviewers,whimboo
...
Compute jsVersion using Firefox version instead of using a hardcoded
value. Also added relevant tests where existing version checks are.
Differential Revision: https://phabricator.services.mozilla.com/D166574
2023-01-12 13:05:04 +00:00
Julian Descottes
ec379681a7
Bug 1775791 - [cdp] Wait for progress listener to be ready before starting requests in browser_setCacheDisabled.js r=webdriver-reviewers,whimboo
...
We should wait for the progress listener to be setup otherwise we are racing against the ContentTask.spawn
Differential Revision: https://phabricator.services.mozilla.com/D166577
2023-01-12 09:02:59 +00:00
Sandor Molnar
809e1ecfd6
Backed out changeset 11c0626c2b80 (bug 1724687) for causing xpc failures in test_StreamRegistry
2023-01-11 20:26:39 +02:00