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

90 Коммитов

Автор SHA1 Сообщение Дата
Mark Banner 1a1669c8c4 Bug 1786197 - Turn on ESLint rule for prefer-boolean-length-check for remote. r=whimboo,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D155173
2022-08-26 13:39:37 +00:00
Henrik Skupin c193147b7b Bug 1769994 - [remote] Resolve localhost to an IP before starting httpd.js. r=webdriver-reviewers,jdescottes
By resolving localhost to an actual IP for the httpd.js server
allows us to supply unique URLs for the CDP and WebDriver BiDi
WebSocket connection details and CDP's JSON handler end-points.

Hereby the first resolved IP will be used which should always be
the local IPv4 address (127.0.0.1). If IPv4 is disabled `[::1]`
will be used.

It will prevent issues especially on dualstack systems where DNS
resolution might prefer IPv6 over IPv4 (like with node.js > 16).

Differential Revision: https://phabricator.services.mozilla.com/D154151
2022-08-19 18:48:49 +00:00
Tooru Fujisawa 54623364da Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-12 04:21:34 +00:00
Andreea Pavel 7738a75fdd Backed out 11 changesets (Bug 1777486) for failing bc at browser_startup.js on a CLOSED TREE
Backed out changeset b6c4c386f1a6 (Bug 1777486)
Backed out changeset 195cc2de8433 (Bug 1777486)
Backed out changeset 20c746fb1648 (Bug 1777486)
Backed out changeset d5fd8173d62d (Bug 1777486)
Backed out changeset 6d758fab5a3e (Bug 1777486)
Backed out changeset e938b601ba15 (Bug 1777486)
Backed out changeset 0c4ea0b9416b (Bug 1777486)
Backed out changeset 0559c53cc668 (Bug 1777486)
Backed out changeset eea573d3a9f9 (Bug 1777486)
Backed out changeset 9ce3a6496a49 (bug 1777486)
Backed out changeset b0867652fc48 (bug 1777486)
2022-07-11 22:24:40 +03:00
Tooru Fujisawa 8cd6ed7409 Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-11 15:09:13 +00:00
Tooru Fujisawa f3a8c52c53 Bug 1667455 - Part 4: Stop importing Services.jsm from JSM. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,application-update-reviewers,pip-reviewers,twisniewski,devtools-reviewers,m_kato,jdescottes,ochameau,mconley,sfoster,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D150893
2022-07-11 12:41:50 +00:00
Tooru Fujisawa 433bb2ca9f Bug 1772096 - Part 2: Use plain object for lazy getter in remote/components/. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D147999
2022-06-06 07:10:42 +00:00
Tooru Fujisawa f7650958c8 Bug 1772313 - Part 7: Stop calling XPCOMUtils.defineLazyModuleGetters for Services. r=kmag,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D148160
2022-06-06 04:42:06 +00:00
Molnar Sandor 77402a5caa Backed out 15 changesets (bug 1772313, bug 1772351, bug 1772360) for causing xpc failures in telemetry/tests/unit/test_SocketScalars.js CLOSED TREE
Backed out changeset c8b0a2ed239e (bug 1772360)
Backed out changeset 1922adad6abe (bug 1772351)
Backed out changeset 6d3634cce489 (bug 1772351)
Backed out changeset f03968a9d053 (bug 1772351)
Backed out changeset e7a38ef90fe4 (bug 1772351)
Backed out changeset b389e7654771 (bug 1772313)
Backed out changeset 59a33598ff51 (bug 1772313)
Backed out changeset ab60885a8a93 (bug 1772313)
Backed out changeset aad8efac9d05 (bug 1772313)
Backed out changeset 4378e519a8e7 (bug 1772313)
Backed out changeset 302ac54741f8 (bug 1772313)
Backed out changeset 74c59f9fd51c (bug 1772313)
Backed out changeset 575fb877c56c (bug 1772313)
Backed out changeset 2eaa68f10b19 (bug 1772313)
Backed out changeset 4a8b3ba193dc (bug 1772313)
2022-06-06 07:04:25 +03:00
Tooru Fujisawa fc45e50920 Bug 1772313 - Part 7: Stop calling XPCOMUtils.defineLazyModuleGetters for Services. r=kmag,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D148160
2022-06-06 02:49:10 +00:00
Henrik Skupin 64a9901794 Bug 1726465 - [marionette] Initialize Marionette before the first top-level window has been opened. r=webdriver-reviewers,agi,jdescottes,mossop,bytesized
Depends on D134275

Differential Revision: https://phabricator.services.mozilla.com/D134276
2022-05-10 15:08:18 +00:00
Henrik Skupin 7a02223f3a Bug 1726465 - [marionette] Remove handling of GFX sanity window. r=webdriver-reviewers,jdescottes
Since Firefox 84 the GFX sanity window is force disabled in
Marionette by a preference (bug 1572687). As such the related
code can be removed.

Depends on D145934

Differential Revision: https://phabricator.services.mozilla.com/D134275
2022-05-10 15:08:18 +00:00
criss 70783e1c31 Backed out 8 changesets (bug 1726465) for causing failures on browser_preferences_usage.js. CLOSED TREE
Backed out changeset 4b57310622a0 (bug 1726465)
Backed out changeset 0c6c4a15621a (bug 1726465)
Backed out changeset 081a0f91e0a7 (bug 1726465)
Backed out changeset 60bceb18ff57 (bug 1726465)
Backed out changeset f241655ea876 (bug 1726465)
Backed out changeset 7bc0a3aeb254 (bug 1726465)
Backed out changeset b2f7c710daef (bug 1726465)
Backed out changeset e9b90fd1b4ec (bug 1726465)
2022-05-10 13:59:54 +03:00
Henrik Skupin 371d0b1fab Bug 1726465 - [marionette] Initialize Marionette before the first top-level window has been opened. r=webdriver-reviewers,agi,jdescottes,mossop,bytesized
Depends on D134275

Differential Revision: https://phabricator.services.mozilla.com/D134276
2022-05-10 09:04:04 +00:00
Henrik Skupin d9243cf19e Bug 1726465 - [marionette] Remove handling of GFX sanity window. r=webdriver-reviewers,jdescottes
Since Firefox 84 the GFX sanity window is force disabled in
Marionette by a preference (bug 1572687). As such the related
code can be removed.

Differential Revision: https://phabricator.services.mozilla.com/D134275
2022-05-10 09:04:04 +00:00
Cosmin Sabou 56702f5f93 Backed out 6 changesets (bug 1726465) for causing several browser-chrome failures. CLOSED TREE
Backed out changeset 74016350f302 (bug 1726465)
Backed out changeset e7dd44d08121 (bug 1726465)
Backed out changeset 25865657dd3c (bug 1726465)
Backed out changeset f874f1a56157 (bug 1726465)
Backed out changeset 2fea5a6446f3 (bug 1726465)
Backed out changeset 0f96ac926aac (bug 1726465)
2022-05-09 17:01:17 +03:00
Henrik Skupin e6b4be97d6 Bug 1726465 - [marionette] Initialize Marionette before the first top-level window has been opened. r=webdriver-reviewers,agi,jdescottes,mossop,bytesized
Depends on D134275

Differential Revision: https://phabricator.services.mozilla.com/D134276
2022-05-09 12:40:55 +00:00
Henrik Skupin dfde22c1b7 Bug 1726465 - [marionette] Remove handling of GFX sanity window. r=webdriver-reviewers,jdescottes
Since Firefox 84 the GFX sanity window is force disabled in
Marionette by a preference (bug 1572687). As such the related
code can be removed.

Differential Revision: https://phabricator.services.mozilla.com/D134275
2022-05-09 12:40:55 +00:00
Henrik Skupin 20249ab796 Bug 1767387 - [remote-bidi] Also await browser startup finished when creating a newsession from Marionette. r=webdriver-reviewers,jdescottes
Previously the check has been added when starting the protocol.
But given that httpd.js gets started already in final-ui-startup
a new BiDi session request from Marionette can add required
path handlers, which results in accepting incoming commands
even with the browser not fully started up yet.

Differential Revision: https://phabricator.services.mozilla.com/D145311
2022-05-04 04:28:49 +00:00
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
Julian Descottes e1a0f3e103 Bug 1753997 - [remote] Add documentation about remote hosts and origins for RemoteAgent r=webdriver-reviewers,jgraham
Depends on D144847

Differential Revision: https://phabricator.services.mozilla.com/D144851
2022-05-02 19:45:48 +00:00
Henrik Skupin 4d7a8c9ac8 Bug 1719505 - [remote] Add Remote Agent class for content processes. r=webdriver-reviewers,jdescottes
When accessing the nsIRemoteAgent interface from a content
process the running state cannot be determined without
communicating with the Remote Agent class from the parent
process.

Similar to Marionette this patch adds a dedicated class of
the Remote Agent for content processes, and exports an
instance of the appropriate class depending on in which
process the Remote Agent gets created in.

Differential Revision: https://phabricator.services.mozilla.com/D144983
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
Henrik Skupin 19c9ee78f9 Bug 1719505 - [remote] Remove no longer used methods from Remote Agent interface. r=webdriver-reviewers,jdescottes
Both methods have been removed via bug 1717899 and can no
longer be used.

Differential Revision: https://phabricator.services.mozilla.com/D144980
2022-04-29 17:38:13 +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 dba3b8b30a Bug 1719505 - [remote] Add Remote Agent class for content processes. r=webdriver-reviewers,jdescottes
When accessing the nsIRemoteAgent interface from a content
process the running state cannot be determined without
communicating with the Remote Agent class from the parent
process.

Similar to Marionette this patch adds a dedicated class of
the Remote Agent for content processes, and exports an
instance of the appropriate class depending on in which
process the Remote Agent gets created in.

Differential Revision: https://phabricator.services.mozilla.com/D144983
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 72288a3f87 Bug 1719505 - [remote] Remove no longer used methods from Remote Agent interface. r=webdriver-reviewers,jdescottes
Both methods have been removed via bug 1717899 and can no
longer be used.

Differential Revision: https://phabricator.services.mozilla.com/D144980
2022-04-29 11:55:42 +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 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
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
Henrik Skupin 3f863ffa97 Bug 1759994 - [remote] Use private properties for Remote Agent class. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D142187
2022-04-02 11:47:15 +00:00
Csoregi Natalia adf09a8219 Backed out 4 changesets (bug 1761436, bug 1759994) for causing remote failures. CLOSED TREE
Backed out changeset f75298e767bb (bug 1759994)
Backed out changeset edfc642ff2f3 (bug 1759994)
Backed out changeset 3cce6dda3252 (bug 1759994)
Backed out changeset d0cc26a88d21 (bug 1761436)
2022-04-01 18:23:55 +03:00
Henrik Skupin a056d421df 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-01 11:31:30 +00:00
Henrik Skupin cca191d4aa Bug 1759994 - [remote] Use private properties for Remote Agent class. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D142187
2022-04-01 11:31:30 +00:00
Julian Descottes fe7b050473 Bug 1760259 - [remote] Apply RecommendedPreferences on command-line-startup r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D141939
2022-03-24 11:26:06 +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 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
Henrik Skupin 110a77d073 Bug 1735162 - [marionette] Write Marionette port to MarionetteActivePort file in profile directory. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D128412
2021-10-15 14:45:28 +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
Julian Descottes 54f4f0e437 Bug 1724028 - [remote] Implement handle in RemoteAgent and Marionette components r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D121768
2021-08-06 12:57:28 +00:00
Henrik Skupin 1fad810fbc Bug 1720676 - [remote] Remove Remote Agent's Rust implementation. r=webdriver-reviewers,jdescottes
By implementing the command line handling and the
printing to stderr in the JS module of the Remote
Agent, the Rust implementation is no longer necessary.

This change allows the JS component to hold each detail
about the Remote Agent's status. Also it doesn't
require a full build anymore when changes are needed.

Differential Revision: https://phabricator.services.mozilla.com/D121096
2021-07-30 10:44:48 +00:00
Henrik Skupin c27e9e4c4a Bug 1720676 - [marionette] Move component registration into components.conf. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D121095
2021-07-30 10:44:48 +00:00
Noemi Erli a5ebee57bb Backed out 2 changesets (bug 1720676) for causing remote failures CLOSED TREE
Backed out changeset 3c2599c00332 (bug 1720676)
Backed out changeset b58937c59f63 (bug 1720676)
2021-07-30 00:21:00 +03:00
Henrik Skupin 0fd845f828 Bug 1720676 - [remote] Remove Remote Agent's Rust implementation. r=webdriver-reviewers,jdescottes
By implementing the command line handling and the
printing to stderr in the JS module of the Remote
Agent, the Rust implementation is no longer necessary.

This change allows the JS component to hold each detail
about the Remote Agent's status. Also it doesn't
require a full build anymore when changes are needed.

Differential Revision: https://phabricator.services.mozilla.com/D121096
2021-07-29 19:31:44 +00:00
Henrik Skupin 38d311bf45 Bug 1720676 - [marionette] Move component registration into components.conf. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D121095
2021-07-29 19:31:43 +00:00
Csoregi Natalia e8cf092efc Backed out 2 changesets (bug 1720676) for remote fails on browser_agent.js. CLOSED TREE
Backed out changeset 93a9c870d3d8 (bug 1720676)
Backed out changeset f915c04b9c35 (bug 1720676)
2021-07-29 21:30:57 +03:00
Henrik Skupin dd36cc9590 Bug 1720676 - [remote] Remove Remote Agent's Rust implementation. r=webdriver-reviewers,jdescottes
By implementing the command line handling and the
printing to stderr in the JS module of the Remote
Agent, the Rust implementation is no longer necessary.

This change allows the JS component to hold each detail
about the Remote Agent's status. Also it doesn't
require a full build anymore when changes are needed.

Differential Revision: https://phabricator.services.mozilla.com/D121096
2021-07-29 16:14:09 +00:00