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

57 Коммитов

Автор SHA1 Сообщение Дата
Nafees Nehar 7b783556f9 Bug 1605362 - Network.getCookies() returns all cookies of current page and all of its sub frames as well. r=webdriver-reviewers,jdescottes
Added check in Network.getCookies() to skip duplicate cookies
Also added tests.
Created html files for running tests which set cookies
- remote/cdp/test/browser/network/doc_get_cookies_page.html
- remote/cdp/test/browser/network/doc_get_cookies_frame.html
Added tests to /remote/cdp/test/browser/network/browser_getCookies.js
Updated Puppeteer tests-
- changed Page.setCookie should set secure same-site cookies from a frame spec to PASS

Differential Revision: https://phabricator.services.mozilla.com/D122382
2021-08-17 19:24:45 +00:00
Julian Descottes 88127fed0a Bug 1723026 - [remote] Enable mochitest-remote suite on Fission platforms r=webdriver-reviewers,whimboo,jmaher
Depends on D120084

Differential Revision: https://phabricator.services.mozilla.com/D121351
2021-08-02 09:50:17 +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
Nafees Nehar 037cf1abd3 Bug 1710356 - Removed hardcoded product name. r=whimboo,webdriver-reviewers
Removed hardcoded product name as firefox in "Browser.getVersion in remote/cdp/domains/parent/Browser.jsm
Also updated tests at:
- remote/cdp/test/browser/browser_cdp.js
- remote/cdp/test/browser/browser_main_target.js

Differential Revision: https://phabricator.services.mozilla.com/D120759
2021-07-29 20:34:51 +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
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
Christoph Kerschbaumer 4a6250387f Bug 1719272: Annotate failing browser/ tests to potentially enable https-first mode in Nightly r=webcompat-reviewers,denschub,webdriver-reviewers,preferences-reviewers,Gijs,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D119177
2021-07-28 19:16:16 +00:00
Sandor Molnar 68cdec0548 Backed out changeset 7eb8945dd8e3 (bug 1719272) for causing bustages in gecko decision task. CLOSED TREE 2021-07-28 19:47:06 +03:00
Christoph Kerschbaumer bb716f0701 Bug 1719272: Annotate failing browser/ tests to potentially enable https-first mode in Nightly r=webcompat-reviewers,denschub,webdriver-reviewers,preferences-reviewers,Gijs,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D119177
2021-07-28 16:08:07 +00:00
Henrik Skupin d0d88df9b5 Bug 1713784 - [remote] Implement basic support for session.new command. r=webdriver-reviewers,jdescottes,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D119731
2021-07-21 09:45:06 +00:00
Henrik Skupin 02977a781a Bug 1691446 - [remote] Add support for handling WebDriverSession to WebDriver BiDi. r=webdriver-reviewers,jdescottes,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D119552
2021-07-16 11:56:48 +00:00
Julian Descottes 40327ec430 Bug 1720070 - [remote] Avoid calling CDP::start/stop when unnecessary r=webdriver-reviewers,whimboo
It seems that lazy loading RecommendedPreferences.jsm too late still triggers an error if invoked in CDP::stop
This doesn't relate to a specific code in RecommendedPreferences as even an empty module still triggers the problem.
Therefore it seems mandatory to ensure we don't call stop in CDP.jsm (or WebDriverBiDi.jsm, when implementation will be added there) unless start() was previously called.

Differential Revision: https://phabricator.services.mozilla.com/D119968
2021-07-15 13:45:27 +00:00
Julian Descottes a5a37abad6 Bug 1720070 - [remote] Only call TargetList::destructor if TargetList was created earlier r=webdriver-reviewers,jgraham,whimboo
targetList might be undefined if we call CDP::stop without having called CDP::start earlier

Differential Revision: https://phabricator.services.mozilla.com/D119610
2021-07-14 16:54:28 +00:00
Julian Descottes faae156764 Bug 1719850 - [marionette] Enforce no-unused-vars for global variables in marionette eslint configuration r=webdriver-reviewers,whimboo
Depends on D119508

Differential Revision: https://phabricator.services.mozilla.com/D119515
2021-07-09 17:22:09 +00:00
Henrik Skupin 39034935cb Bug 1719833 - [remote] Share WindowManager between Marionette and Remote Agent. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D119508
2021-07-09 13:18:31 +00:00
Henrik Skupin 82582b3eee Bug 1693805 - [remote] Reorganize RemoteAgent component. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D119265
2021-07-09 08:00:52 +00:00
Henrik Skupin 295cad865d Bug 1693805 - [remote] Delay registration of CDP path handlers until protocol gets started. r=webdriver-reviewers,jgraham,jdescottes
While the constructor should only do the initialization
of the class, anything else related to the HTTP server
should be delayed until the protocol gets actually
started.

Further the protocol constructor needs the reference
to the Remote Agent itself instead of only the
HTTP server.

Differential Revision: https://phabricator.services.mozilla.com/D119264
2021-07-09 08:00:51 +00:00
Alexandru Michis 90efefc3d2 Backed out 3 changesets (bug 1693805) for causing bc failures in browser_all_files_referenced.js
CLOSED TREE

Backed out changeset 4b6ec8e2cf78 (bug 1693805)
Backed out changeset 0a1b4a96c1cf (bug 1693805)
Backed out changeset 3c883527d366 (bug 1693805)
2021-07-08 21:55:07 +03:00
Henrik Skupin 91e323644d Bug 1693805 - [remote] Reorganize RemoteAgent component. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D119265
2021-07-08 15:48:57 +00:00
Henrik Skupin c3d4d30d87 Bug 1693805 - [remote] Delay registration of CDP path handlers until protocol gets started. r=webdriver-reviewers,jgraham,jdescottes
While the constructor should only do the initialization
of the class, anything else related to the HTTP server
should be delayed until the protocol gets actually
started.

Further the protocol constructor needs the reference
to the Remote Agent itself instead of only the
HTTP server.

Differential Revision: https://phabricator.services.mozilla.com/D119264
2021-07-08 15:48:56 +00:00
Sandor Molnar 71445ea656 Backed out 3 changesets (bug 1693805) for causing multiple failures. CLOSED TREE
Backed out changeset 946c4ba45c96 (bug 1693805)
Backed out changeset 34acfc33e07a (bug 1693805)
Backed out changeset a1a48314a6f2 (bug 1693805)
2021-07-08 16:28:18 +03:00
Henrik Skupin c493226e19 Bug 1693805 - [remote] Delay registration of CDP path handlers until protocol gets started. r=webdriver-reviewers,jgraham,jdescottes
While the constructor should only do the initialization
of the class, anything else related to the HTTP server
should be delayed until the protocol gets actually
started.

Further the protocol constructor needs the reference
to the Remote Agent itself instead of only the
HTTP server.

Differential Revision: https://phabricator.services.mozilla.com/D119264
2021-07-08 12:47:23 +00:00
Julian Descottes 29d8d69939 Bug 1693803 - [remote] Use a shared RecommendedPreferences module for remote protocols r=webdriver-reviewers,whimboo
Depends on D119072

Differential Revision: https://phabricator.services.mozilla.com/D119073
2021-07-08 08:12:53 +00:00
Julian Descottes 138814b073 Bug 1718052 - [marionette] Replace usage of marionette log.js by remote/shared/Log.jsm r=webdriver-reviewers,whimboo
Depends on D119071

Differential Revision: https://phabricator.services.mozilla.com/D119072
2021-07-08 08:12:53 +00:00
Henrik Skupin 1916d90363 Bug 1693802 - [remote] Refactor Connection module to be used by CDP and WebDriver BiDi. r=webdriver-reviewers,jdescottes
The patch extracts common code that can be re-used
by both the CDP, and the upcoming WebDriver BiDi
protocol.

Differential Revision: https://phabricator.services.mozilla.com/D119108
2021-07-06 13:41:00 +00:00
Dorel Luca e35e918938 Backed out changeset 4e17aba743f7 (bug 1693802) for XPCshell failures in chrome://remote/content/cdp/CDPConnection.jsm. CLOSED TREE 2021-07-06 11:05:31 +03:00
Henrik Skupin f65529ebbb Bug 1693802 - [remote] Refactor Connection module to be used by CDP and WebDriver BiDi. r=webdriver-reviewers,jdescottes
The patch extracts common code that can be re-used
by both the CDP, and the upcoming WebDriver BiDi
protocol.

Differential Revision: https://phabricator.services.mozilla.com/D119108
2021-07-06 07:06:51 +00:00
Julian Descottes 628a0fbaa3 Bug 1714348 - [remote] Create dedicated jar.mn in remote/cdp r=webdriver-reviewers,whimboo
Depends on D116732

Move all CDP files from remote/jar.mn to a new remote/cdp/jar.mn to mirror what is done for marionette in D116732

Differential Revision: https://phabricator.services.mozilla.com/D116950
2021-06-07 10:08:24 +00:00
Henrik Skupin 555beb9ea5 Bug 1712902 - [remote] Conditionally start CDP when protocol is marked as active. r=remote-protocol-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D116415
2021-06-01 19:41:01 +00:00
Dana Keeler a6eb3f69cd Bug 1711599 - remove unused HSTS dynamic preloading implementation r=rmf,remote-protocol-reviewers,marionette-reviewers,whimboo
This patch removes the ability for Firefox profiles to receive dynamic HSTS
preloading information via kinto/remote settings. This feature was implemented
some time ago but was never used. It is being removed to make upcoming changes
easier.

Differential Revision: https://phabricator.services.mozilla.com/D115315
2021-05-20 00:27:12 +00:00
Henrik Skupin d546c8341c Bug 1710839 - [remote] Remove remote.enabled preference. r=remote-protocol-reviewers,Gijs,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D115239
2021-05-17 20:20:15 +00:00
Geoff Lankow 638052c1f3 Bug 1706216 - Enable Remote Agent in Thunderbird. r=whimboo,remote-protocol-reviewers,firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D112677
2021-05-13 23:14:24 +00:00
Henrik Skupin d20778cacd Bug 1710000 - [remote] Allow the "remote-listening" observer to also print other messages to stderr. r=remote-protocol-reviewers,jgraham,jdescottes
It's needed to independently print messages for CDP and/or
WebDriver BiDi depending on which protocol is actually active.

Differential Revision: https://phabricator.services.mozilla.com/D114572
2021-05-10 08:55:31 +00:00
Henrik Skupin 955d7a045e Bug 1693296 - [remote] Hardening Browser.close() for a clean shutdown. r=remote-protocol-reviewers,jdescottes
For a shutdown attempt all windows should be informed first so
that various components can safely do clean-up work.

If something prevents the shutdown the Remote Agent should force it.
This will make sure that no application process remains,
or would have to be force killed externally via its PID.

Differential Revision: https://phabricator.services.mozilla.com/D105490
2021-05-04 06:34:37 +00:00
Henrik Skupin 460f0ed59f Bug 1676803 - [remote] Hardening discards of registered FileIO streams. r=remote-protocol-reviewers,jdescottes
In some situations the FileIO stream's underlying file might not
exist anymore. Discarding the stream should not fail.

Depends on D112004

Differential Revision: https://phabricator.services.mozilla.com/D113379
2021-04-26 19:46:09 +00:00
Henrik Skupin e5512a23ac Bug 1701168 - [remote] Properly wait for resize events on browser dimension changes. r=remote-protocol-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D112738
2021-04-20 18:15:45 +00:00
Emilio Cobos Álvarez 9afefdd884 Bug 1705757 - Move FrameLoader.print to BrowsingContext.print. r=nika,remote-protocol-reviewers,marionette-reviewers,extension-reviewers,zombie
This makes it trivial to choose the right BrowserParent to print a
browsing context, by removing the OuterWindowID / FrameLoader
indirections.

Differential Revision: https://phabricator.services.mozilla.com/D112412
2021-04-17 18:41:11 +00:00
Henrik Skupin ff3dfaa3ad Bug 1704548 - [remote] Re-enable Target.receivedMessageFromTarget events. r=remote-protocol-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D111702
2021-04-13 04:18:51 +00:00
Henrik Skupin 6303ba95ce Bug 1704542 - [remote] Remove "CDP: *" Bugzilla component suggestions from moz.build. r=remote-protocol-reviewers,jdescottes
DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D111643
2021-04-12 18:11:55 +00:00
tildaudufo bfa02a1052 Bug 1631570 - [remote] Use optional options arguments for all public CDP commands r=whimboo,remote-protocol-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D105046
2021-04-10 10:36:53 +00:00
Mike Conley 3234dacb1a Bug 1686743 - Fix up CDP tests for when prompts.contentPromptSubDialog is enabled. r=remote-protocol-reviewers,mtigley,jdescottes,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D110270
2021-04-08 16:50:01 +00:00
Henrik Skupin 10ed8516d0 Bug 1702142 - [remote] Unify logging between Marionette and Remote Agent. r=remote-protocol-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D110936
2021-04-06 15:08:50 +00:00
Bogdan Tara c4608fba0e Backed out changeset 0fccc6a4922d (bug 1686743) for remote failures on browser_javascriptDialog_* CLOSED TREE 2021-04-01 20:40:33 +03:00
Mike Conley e5940abe8b Bug 1686743 - Fix up CDP tests for when prompts.contentPromptSubDialog is enabled. r=remote-protocol-reviewers,mtigley,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D110270
2021-04-01 16:43:14 +00:00
Julian Descottes 3382fe303e Bug 1702406 - [remote] Rename targets to targetList in remote codebase r=remote-protocol-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D110514
2021-04-01 12:27:25 +00:00
Julian Descottes 43975df10a Bug 1609162 - [remote] Start remote agent only once in remote mochitests r=remote-protocol-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D110214
2021-03-30 12:25:32 +00:00
Henrik Skupin 306b013345 Bug 1695243 - [remote] Remove 3rd argument when importing "addDebuggerToGlobal". r=remote-protocol-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D107649
2021-03-09 15:15:40 +00:00
Henrik Skupin 85f09833cd Bug 1695639 - [remote] Enforce disabling of update checks. r=remote-protocol-reviewers,jdescottes
Use the preference "app.update.disabledForTesting" to enforce
that no update checks are performed when the Remote Agent is
active.

Differential Revision: https://phabricator.services.mozilla.com/D106909
2021-03-08 13:44:55 +00:00