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
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
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
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
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
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
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
CLOSED TREE
Backed out changeset 4b6ec8e2cf78 (bug 1693805)
Backed out changeset 0a1b4a96c1cf (bug 1693805)
Backed out changeset 3c883527d366 (bug 1693805)
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
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
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
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
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
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
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
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
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