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

819 Коммитов

Автор 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
Henrik Skupin 7066f798cb Bug 1694144 - [remote] Add missing EXPORTED_SYMBOLS export for new module registry.
Differential Revision: https://phabricator.services.mozilla.com/D122475
2021-08-12 13:03:57 +00:00
Henrik Skupin c5ab717192 Bug 1694144 - [WebDriver BiDi] Add basic support for session.subscribe command. r=webdriver-reviewers,jdescottes
This patch also includes the addition of the Module Registry,
which has been done by Julian Descottes <jdescottes@mozilla.com>.

Differential Revision: https://phabricator.services.mozilla.com/D122018
2021-08-12 11:52:48 +00:00
Brindusan Cristian fc44521a67 Backed out 5 changesets (bug 1694144, bug 1724227) for causing bc failures in browser_all_files_referenced.js.
CLOSED TREE

Backed out changeset 34b56695cd5c (bug 1694144)
Backed out changeset c3cf28582710 (bug 1694144)
Backed out changeset d3bfdc6c788d (bug 1724227)
Backed out changeset 118ad1445b60 (bug 1694144)
Backed out changeset 9fb6c43c144d (bug 1694144)
2021-08-11 21:55:59 +03:00
Henrik Skupin 42f6a8c709 Bug 1694144 - [WebDriver BiDi] Add basic support for session.subscribe command. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D122018
2021-08-11 17:52:30 +00:00
Julian Descottes 6cbdd03533 Bug 1713442 - [remote] Rename all messagehandler test modules to follow the correct naming pattern r=webdriver-reviewers,whimboo
Depends on D120640

Differential Revision: https://phabricator.services.mozilla.com/D122224
2021-08-10 21:34:23 +00:00
Julian Descottes aed2bec56c Bug 1713442 - [remote] Support events in windowglobal MessageHandlers r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D120640
2021-08-10 21:34:23 +00:00
Jacek Kuzemczak 661b1a1f6e Bug 1719124 - [marionette] Split processing PDF data into chunks to avoid hitting function call argument limit r=webdriver-reviewers,jgraham,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D121363
2021-08-09 07:31:20 +00:00
Marian-Vasile Laza d8ab847244 Backed out changeset 4079bc8d46ca (bug 1719124) for causing failures on printcmd.py. CLOSED TREE 2021-08-06 19:31:56 +03:00
Jacek Kuzemczak 9a9fb72c85 Bug 1719124 Split PDF data into chunks to avoid hitting function call argument limit r=webdriver-reviewers,jgraham,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D121363
2021-08-06 15:36:40 +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
Julian Descottes 25097c1e68 Bug 1713441 - [remote] Fix undefined type in log from MessageHandler destroy r=webdriver-reviewers,whimboo
Depends on D120585

Small issue noticed while running tests.

Differential Revision: https://phabricator.services.mozilla.com/D121720
2021-08-05 11:55:14 +00:00
Julian Descottes 0f5b843f04 Bug 1713441 - [remote] Support MessageHandler broadcasting for WindowGlobal contexts r=webdriver-reviewers,whimboo,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D120585
2021-08-05 11:55:13 +00:00
Julian Descottes 1c16859c67 Bug 1682936 - [remote] Re-enable browser.tabs.remote.separatePrivilegedContentProcess for remote protocols r=webdriver-reviewers,whimboo
This preference should no longer be necessary now that Bug 1513045 is fixed

Differential Revision: https://phabricator.services.mozilla.com/D121530
2021-08-04 09:27:17 +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
James Graham 764259e4af Bug 1723145 - Replace OS.File with IOUtils in marionette, r=Gijs,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D121407
2021-08-02 09:23:44 +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
Julian Descottes ee4b6dd666 Bug 1713439 - [remote] Add mochitests to exercize message-handler API r=webdriver-reviewers,whimboo
Depends on 120083

Differential Revision: https://phabricator.services.mozilla.com/D120084
2021-07-30 08:17:49 +00:00
Julian Descottes 24d060cac5 Bug 1713439 - [remote] Use a MessageHandler to handle packets received by the WebDriverBiDiConnection r=webdriver-reviewers,whimboo
Depends on D120082

Differential Revision: https://phabricator.services.mozilla.com/D120083
2021-07-30 08:17:49 +00:00
Julian Descottes adcaf10cc8 Bug 1713439 - [remote] Add logs to initial MessageHandler classes r=webdriver-reviewers,whimboo
Depends on D119780

Differential Revision: https://phabricator.services.mozilla.com/D120082
2021-07-30 08:17:48 +00:00
Julian Descottes 3f17d3f303 Bug 1713439 - [remote] Add basic MessageHandler support for window global contexts r=webdriver-reviewers,whimboo,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D119780
2021-07-30 08:17: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
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
Henrik Skupin 5d0d08b2c2 Bug 1720676 - [marionette] Move component registration into components.conf. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D121095
2021-07-29 16:14:08 +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
Julian Descottes 95bb71d6cc Bug 1719692 - [remote] Stop using MarionettePrefs.logLevel and use remote.log.level instead r=webdriver-reviewers,whimboo
Depends on D120894

Differential Revision: https://phabricator.services.mozilla.com/D120895
2021-07-27 19:03:29 +00:00
Julian Descottes 056dff5133 Bug 1700392 - [remote] Replace usage of marionette format.js by remote/shared/Format.jsm r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D120894
2021-07-27 19:03:29 +00:00
Henrik Skupin 8fdd8d1cf7 Bug 1721982 - [marionette] Use domwindowopened observer to detect newly opened windows. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D120734
2021-07-26 10:10:12 +00:00
Henrik Skupin 96a354322c Bug 1721148 - [remote] Report WebSocket handshake failures to the client. r=webdriver-reviewers,jgraham
When a WebSocket upgrade fails we currently do not
send any details of the error. As such it makes
it hard to figure out the real underlying issue.

Further some clients like curl are hanging and do
not immediately exit when the response has been
received. Specifying the Content-Length header
within the response fixes it.

Differential Revision: https://phabricator.services.mozilla.com/D120575
2021-07-23 16:12:32 +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 dcc9585eba Bug 1713784 - [remote] Implement "sendError" for WebDriverBiDi connection. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D120304
2021-07-21 09:45:06 +00:00
Henrik Skupin 10c712a65e Bug 1721327 - [remote] Share Marionette's assertion module with WebDriver BiDi. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D120303
2021-07-21 09:45:06 +00:00
Michael Cooper 8c5d5ad8f6 Bug 1719755 - Get sponsored topsites data from Contile by default r=dao,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D119462
2021-07-20 20:12:40 +00:00
Csoregi Natalia 1afc671412 Backed out changeset 0ceb86d2fcc1 (bug 1719755) for xpcshell failures on test_AboutHomeStartupCacheWorker.js. CLOSED TREE 2021-07-19 23:16:28 +03:00
Michael Cooper df03e8380b Bug 1719755 - Get sponsored topsites data from Contile by default r=dao,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D119462
2021-07-19 18:19:44 +00:00
Alex Lopez 77ce415604 Bug 1696251 - Replace self with command_context where possible in existing mach commands. r=mhentges,webdriver-reviewers,perftest-reviewers,whimboo
This step removes all the dependencies of mach commands to
having a MachCommandBase as the `self` by using the `command_context`
argument instead. This also removes any remaining statefulness from those
classes that implement mach commands, ultimately making it easier to move
existing commands out of classes in a follow-up.

Differential Revision: https://phabricator.services.mozilla.com/D118058
2021-07-19 16:04:25 +00:00
Henrik Skupin 570f2b57f1 Bug 1691446 - [remote] Add WebDriverBiDiConnection.jsm to jar.mn. r=webdriver-reviewers,jdescottes
Previous patches on this bug missed to actually add this file.
As such new WebSocket connections are not possible right now.

Differential Revision: https://phabricator.services.mozilla.com/D120243
2021-07-19 14:55:46 +00:00
Butkovits Atila a07f790e42 Backed out changeset e1921c5112d8 (bug 1696251) for causing bustages complaining about 'CommandContext'. CLOSED TREE 2021-07-16 20:35:55 +03:00
Alex Lopez 190e03aaab Bug 1696251 - Replace self with command_context where possible in existing mach commands. r=mhentges,webdriver-reviewers,perftest-reviewers,whimboo
This step removes all the dependencies of mach commands to
having a MachCommandBase as the `self` by using the `command_context`
argument instead. This also removes any remaining statefulness from those
classes that implement mach commands, ultimately making it easier to move
existing commands out of classes in a follow-up.

Differential Revision: https://phabricator.services.mozilla.com/D118058
2021-07-16 15:51:29 +00:00
Henrik Skupin 1fdbe9da54 Bug 1691446 - [remote] Rename webdriverBiDi to webDriverBiDi. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D120014
2021-07-16 11:56:49 +00:00
Henrik Skupin 908b1cbd5b Bug 1692984 - [marionette] Add support for “webSocketUrl” capability. r=webdriver-reviewers,jdescottes,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D119730
2021-07-16 11:56:49 +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