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

120 Коммитов

Автор SHA1 Сообщение Дата
Henrik Skupin 22d7c6a0be Bug 1767387 - [remote] Don't use sessionstore-windows-restored to determine whenapplication is fully started. r=webdriver-reviewers,jdescottes
This observer notification is only available on desktop and for
applications that actually use the feature. This is not the case
for GeckoView and as such it cannot be used.

Instead the notifications "browser-idle-startup-tasks-finished"
and "mail-idle-startup-tasks-finished" can be used. These also
align to our formerly used custom "remote-startup-requested"
notification, which now no longer exists.

Differential Revision: https://phabricator.services.mozilla.com/D145310
2022-05-04 04:28:49 +00:00
Henrik Skupin 63b664b0cd Bug 1767387 - [remote-cdp] Register handlers for httpd.js before waiting for the initial application window. r=webdriver-reviewers,jdescottes
Similar to WebDriver BiDi the JSON handlers for the CDP protocol
should be immediately registered, so that only the announcement
that CDP is enabled gets delayed.

Differential Revision: https://phabricator.services.mozilla.com/D145325
2022-05-04 04:28:48 +00:00
Doug Thayer 04d1c8fd1e Bug 1756823 - Replace ConsoleAPIStorage observer calls with js array r=nchevobbe,webdriver-reviewers,geckoview-reviewers,agi,jdescottes
See the comment in the file explaining it. For a case of logging 100k numbers,
this dropped the time per number from 15 microseconds to 9 with the console
closed, and 55 microseconds to 38 with the console open. I think we could shave
off more with a native approach, but I don't know that it's worth it and it's
much more likely for that to introduce bugs.

Differential Revision: https://phabricator.services.mozilla.com/D143782
2022-05-03 17:21:59 +00:00
Henrik Skupin dcd3dae49f Bug 1719505 - [remote] Add CDP and WebDriver BiDi tests for navigator.webdriver. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D144984
2022-04-29 17:38:14 +00:00
Henrik Skupin 78f7bbce86 Bug 1719505 - [remote] Unify Remote Agent's running state with Marionette. r=webdriver-reviewers,mossop,smaug,keeler,jdescottes
Both components are related to WebDriver and should expose the
same flag for their running state.

Differential Revision: https://phabricator.services.mozilla.com/D144982
2022-04-29 17:38:14 +00:00
Butkovits Atila fc54f60211 Backed out 6 changesets (bug 1719505) for causing failures at browser_Troubleshoot.js. CLOSED TREE
Backed out changeset 915b5331f6b2 (bug 1719505)
Backed out changeset 8df69b3445e5 (bug 1719505)
Backed out changeset 674fe8523cf6 (bug 1719505)
Backed out changeset f40c2fe6872d (bug 1719505)
Backed out changeset 3e3df2a6b1e3 (bug 1719505)
Backed out changeset 621024810236 (bug 1719505)
2022-04-29 17:32:32 +03:00
Henrik Skupin 7ef2a5fe1d Bug 1719505 - [remote] Add CDP and WebDriver BiDi tests for navigator.webdriver. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D144984
2022-04-29 11:55:43 +00:00
Henrik Skupin 8a69201f2e Bug 1719505 - [remote] Unify Remote Agent's running state with Marionette. r=webdriver-reviewers,mossop,smaug,keeler,jdescottes
Both components are related to WebDriver and should expose the
same flag for their running state.

Differential Revision: https://phabricator.services.mozilla.com/D144982
2022-04-29 11:55:43 +00:00
Henrik Skupin 12f8ed22e1 Bug 1766802 - [remote] Delay startup of WebDriver BiDi until all initial application windows have been restored. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D144963
2022-04-28 16:38:25 +00:00
Julian Descottes 43ad9bf453 Bug 1759559 - [remote] Add focus and window parameters to TabManager.addTab r=webdriver-reviewers,whimboo
Update the addTab API to support BiDi's browsingContext.create, including the context argument

Differential Revision: https://phabricator.services.mozilla.com/D144453
2022-04-28 08:27:04 +00:00
Henrik Skupin dcdabedb93 Bug 1717899 - [remote] Extend the lifetime of the Remote Agent to the Firefox session. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D144338
2022-04-27 05:43:23 +00:00
Henrik Skupin 72eb782161 Bug 1759169 - [remote] Initialize the Remote Agent before the first top-level window has been opened. r=webdriver-reviewers,geckoview-reviewers,jdescottes,agi,mossop
Differential Revision: https://phabricator.services.mozilla.com/D143380
2022-04-25 17:20:43 +00:00
Henrik Skupin 9e73783530 Bug 1722090 - [remote] Move useful browser chrome tests for Remote Agent to wdspec. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D144213
2022-04-21 12:13:14 +00:00
ui.sayuree 92dd774844 Bug 1702491 - remove redundant checks for QI. r=mkaply,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D143732
2022-04-14 20:20:38 +00:00
Henrik Skupin 7960d0832b Bug 1759998 - [remote] Only accept system-local loopback WebSocket connections for clients. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D143396
2022-04-12 04:31:08 +00:00
Kagami Sascha Rosylight 1409f37ca3 Bug 1703953 - Part 2: Apply mozilla/use-isInstance rules for .jsm files r=webdriver-reviewers,pip-reviewers,mhowell,Gijs,whimboo
This replaces all `instanceof` uses for DOM interfaces, since the operator in priviliged context works same as .isInstance().

Differential Revision: https://phabricator.services.mozilla.com/D141785
2022-04-06 11:57:57 +00:00
Henrik Skupin 0d5a0d6a98 Bug 1759994 - [remote] Use command line arguments for allowed hosts and origins for Remote Agent. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D142188
2022-04-02 11:47:16 +00:00
Emilio Cobos Álvarez 7e23a4287f Bug 1760836 - Support printing to an nsIOutputStream. r=jfkthame,jrmuizel,webdriver-reviewers,geckoview-reviewers,agi
The trickiest bits are the PrintTargetCG ones, the rest is just plumbing
and cleanups and tests, but let me know if you want those to be split
out, can do.

The GTK change to nsPrintSettingsGTK::GetResolution is a no-op (we only
read resolution on windows), but I did that because we assume that it
doesn't fail and GTK returns a sane default anyways.

Differential Revision: https://phabricator.services.mozilla.com/D142199
2022-03-30 18:51:58 +00:00
Iulian Moraru 7a3ed2ce2a Backed out changeset d42d7505c9cf (bug 1760836) for causing mochitest failures on browser_print_stream.js. CLOSED TREE 2022-03-29 23:32:39 +03:00
Emilio Cobos Álvarez b0fb172236 Bug 1760836 - Support printing to an nsIOutputStream. r=jfkthame,jrmuizel,webdriver-reviewers,geckoview-reviewers,agi
The trickiest bits are the PrintTargetCG ones, the rest is just plumbing
and cleanups and tests, but let me know if you want those to be split
out, can do.

The GTK change to nsPrintSettingsGTK::GetResolution is a no-op (we only
read resolution on windows), but I did that because we assume that it
doesn't fail and GTK returns a sane default anyways.

Differential Revision: https://phabricator.services.mozilla.com/D142199
2022-03-29 17:50:58 +00:00
criss 4eec7e25a3 Backed out 3 changesets (bug 1703953) for causing multiple failures. CLOSED TREE
Backed out changeset 871a1fac289e (bug 1703953)
Backed out changeset 8151244bda18 (bug 1703953)
Backed out changeset eaf6d4c353be (bug 1703953)
2022-03-29 17:01:58 +03:00
Kagami Sascha Rosylight c8f12f94dc Bug 1703953 - Part 2: Apply mozilla/use-isInstance rules for .jsm files r=webdriver-reviewers,pip-reviewers,mhowell,Gijs,whimboo
This replaces all `instanceof` uses for DOM interfaces, since the operator in priviliged context works same as .isInstance().

Differential Revision: https://phabricator.services.mozilla.com/D141785
2022-03-29 13:11:00 +00:00
Emilio Cobos Álvarez 79f3fe026d Bug 1759962 - Don't return the DPI override in devicePixelRatio to privileged code. r=nchevobbe,webdriver-reviewers
Chrome code should be able to rely on CSS pixel * devicePixelRatio =
device pixel.

Chrome code that cares about the override should use
BrowsingContext.overrideDPPX. We were exposing the no-override value in
WindowUtils but that's unneeded now.

Differential Revision: https://phabricator.services.mozilla.com/D141323
2022-03-23 17:03:04 +00:00
Julian Descottes 7891fa4f05 Bug 1750689 - [remote] Support allowed hosts & origins from preferences in RemoteAgent websocket handshake r=webdriver-reviewers,whimboo,jgraham,freddyb
Differential Revision: https://phabricator.services.mozilla.com/D137773
2022-03-10 16:16:15 +00:00
Barret Rennie fc94093cf0 Bug 1753369 - Use sync PathUtils directory getters on mainthread in remote/ r=webdriver-reviewers,whimboo,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D140136
2022-03-10 15:16:40 +00:00
Henrik Skupin 0d7682b3d4 Bug 1646289 - [CDP] Compare by target id and not browsing context id. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D139317
2022-02-22 18:08:36 +00:00
Henrik Skupin 59bcc5d5fb Bug 1646289 - [CDP] Share unique TabTarget id with WebDriver. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D139316
2022-02-22 18:08:35 +00:00
Julian Descottes 4da968b463 Bug 1746154 - [cdp] Add error message and documentation about the required fission preferences r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D134328
2022-01-31 12:34:40 +00:00
Henrik Skupin a8db661b79 Bug 1586503 - [remote] Skip browser_runtime_executionContext.js for Fission. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D137109
2022-01-27 09:49:50 +00:00
Henrik Skupin cd886ec059 Bug 1751844 - [webdriver-bidi] Write Websocket port to WebDriverBiDiActivePort file. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D136867
2022-01-25 13:42:05 +00:00
Henrik Skupin 174e59f1e4 Bug 1751844 - [remote] Unify handling of active port file for CDP and Marionette. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D136866
2022-01-25 13:42:04 +00:00
Kershaw Chang 5d806765a0 Bug 1741425 - Enable more mochitest with socket process, r=ahal,webdriver-reviewers,preferences-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D134485
2022-01-11 09:49:45 +00:00
Nafees Nehar 7d06f219e0 Bug 1605354 - [remote] Support for Network.getCookies's "urls" parameter. r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D126828
2021-12-23 15:39:46 +00:00
Julian Descottes 2379fd7062 Bug 1747041 - [cdp] Check if message manager exists in TabSession destructor r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D134507
2021-12-22 22:50:31 +00:00
Jonathan Watt ac90ddff59 Bug 1745452 - Remove the print progress dialog code. r=mstriemer,bobowen,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D133500
2021-12-16 15:12:33 +00:00
Butkovits Atila 7d46682c0e Backed out changeset 51d7c5d96ceb (bug 1745452) for causing failures at browser_all_files_referenced.js. CLOSED TREE 2021-12-16 15:13:34 +02:00
Jonathan Watt f2d22001b0 Bug 1745452 - Remove the print progress dialog code. r=mstriemer,bobowen,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D133500
2021-12-16 11:45:59 +00:00
Julian Descottes 59fac1cf54 Bug 1720098 - [remote] Check websocket handshake requests are from localhost r=webdriver-reviewers,jgraham,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D132561
2021-12-14 16:09:58 +00:00
Niklas Goegge 5d592a6adb Bug 1617611: Annotate each failing test individually. r=webdriver-reviewers,necko-reviewers,ckerschb,whimboo,valentin
Annotating each test individually lets us avoid introducing new failing tests
while we go through the backlog of failing tests.

Depends on D129162

Differential Revision: https://phabricator.services.mozilla.com/D129163
2021-11-17 11:04:34 +00:00
Henrik Skupin d505f7b753 Bug 1740798 - [remote] Await the mouse event before returning from Input.dispatchMouseEvent(). r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D131211
2021-11-16 14:58:11 +00:00
criss 507f143b88 Backed out 2 changesets (bug 1617611) for causing mochitest failures on storageAccessWithDynamicFpi.js. CLOSED TREE
Backed out changeset fdb2c6bfc0c6 (bug 1617611)
Backed out changeset c3352f4b3681 (bug 1617611)
2021-11-16 13:02:05 +02:00
Niklas Goegge 5b684c7fc6 Bug 1617611: Annotate each failing test individually. r=webdriver-reviewers,necko-reviewers,ckerschb,whimboo,valentin
Annotating each test individually lets us avoid introducing new failing tests
while we go through the backlog of failing tests.

Depends on D129162

Differential Revision: https://phabricator.services.mozilla.com/D129163
2021-11-16 10:15:45 +00:00
Mark Banner b2e123ddca Bug 1739708 - Turn off ESLint rule mozilla/reject-importGlobalProperties for sjs files. r=Gijs,webdriver-reviewers,whimboo
sjs files have a separate sandbox, and require Cu.importGlobalProperties for now.

Differential Revision: https://phabricator.services.mozilla.com/D130693
2021-11-09 08:38:16 +00:00
OnuohaOluebube b2fe708edc Bug 1733056 -[remote] Use UTF-8 character encoding for all browser-chrome HTML testcases. r=whimboo,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D129496
2021-11-08 09:51:01 +00:00
Henrik Skupin 6049dbd921 Bug 1605650 - [remote] Re-enable browser_getCookies.js for Windows CCOV builds. r=webdriver-reviewers,jmaher,jdescottes
Depends on D130337

Differential Revision: https://phabricator.services.mozilla.com/D130338
2021-11-04 12:38:30 +00:00
Henrik Skupin 817bc018d0 Bug 1735131 - [remote] Ignore "document-element-inserted" notifications without a window object. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D128079
2021-10-11 15:11:07 +00:00
Henrik Skupin 9c12d30d15 Bug 1734676 - [remote] Use HTTPS for most of the browser chrome test pages. r=webdriver-reviewers,jdescottes
For most of the CDP browser chrome tests we can make use of
HTTPS URLs to access test pages.

We should not do that for cookie related tests, which also
have to test HTTP.

Differential Revision: https://phabricator.services.mozilla.com/D127875
2021-10-11 12:35:13 +00:00
Henrik Skupin 477950cf9c Bug 1610382 - [remote] Re-enable browser_setCacheDisabled.js. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D127819
2021-10-07 19:23:12 +00:00
Henrik Skupin 072e33d893 Bug 1706581 - [remote] Write CDP connection details to DevToolsActivePort file. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D127626
2021-10-07 18:43:25 +00:00
Henrik Skupin 6553b9b08f Bug 1601245 - [remote] Enable Puppeteer and CDP browser-chrome mochitests for Fission. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D127524
2021-10-06 04:30:27 +00:00