Commit Graph

938 Commits

Author SHA1 Message Date
James Graham
998e7b9425 Bug 1748845 - Update source-relative links in remote docs, r=firefox-source-docs-reviewers,webdriver-reviewers,sylvestre,whimboo
These were broken since the update to MyST.

Differential Revision: https://phabricator.services.mozilla.com/D135381
2022-01-11 10:48:20 +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
Henrik Skupin
518343be3e Bug 1739369 - [marionette] Use webProgress to listen for the initial page being loaded in "WebDriver:NewWindow". r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D134542
2022-01-07 21:28:33 +00:00
Henrik Skupin
0ae2105fde Bug 1739369 - [marionette] Move wait for initial page load logic into shared navigate module. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D134541
2022-01-07 21:28:33 +00:00
Julian Descottes
0d39eef2ad Bug 1723592 - [remote] Throw InvalidArgumentException when passing invalid events to session subscribe/unsubscribe r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D132972
2022-01-05 12:26:16 +00:00
Julian Descottes
0b3d4cc455 Bug 1732958 - [puppeteer] Skip 2 new mandatory tests on Firefox r=webdriver-reviewers,whimboo
Depends on D134666

Differential Revision: https://phabricator.services.mozilla.com/D134667
2022-01-04 12:11:45 +00:00
Julian Descottes
aa5938c302 Bug 1732958 - [puppeteer] Sync puppeteer v13.0.1 r=webdriver-reviewers,whimboo
Depends on D134665

Differential Revision: https://phabricator.services.mozilla.com/D134666
2022-01-04 12:11:44 +00:00
criss
f177d7d796 Backed out changeset 4448cd53ed42 (bug 1745361) for causing hybrid bustages on PathUtils.cpp 2021-12-31 23:06:40 +02:00
Barret Rennie
db46900c30 Bug 1745361 - Create unique directories and files with IOUtils r=Gijs,webdriver-reviewers,extension-reviewers,robwu
PathUtils::CreateUniquePath was doing main thread IO, so we're moving it to
IOUtils to use its event loop to do the IO.

Additionally, we're adding IOUtils::CreateUniqueDirectory which is the same as
::CreateUniqueFile, but for directories.

Differential Revision: https://phabricator.services.mozilla.com/D133841
2021-12-31 20:28:39 +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
Henrik Skupin
40c686eb47 Bug 1144075 - [marionette-client] Allow to restart Firefox in safe mode. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D134324
2021-12-21 18:46:37 +00:00
Henrik Skupin
b535a82bf8 Bug 1144075 - [marionette-client] Remove obsolete restart code from before Firefox 55. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D134323
2021-12-21 18:46:36 +00:00
Julian Descottes
7dbbf9cd8f Bug 1746953 - [remote] Update error message when validating origin header r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D134334
2021-12-21 07:17:46 +00:00
Julian Descottes
73f68d16db Bug 1746595 - [bidi] Throw unknown command error when calling an unexpected bidi command adn Summary: r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D134247
2021-12-20 21:38:38 +00:00
Julian Descottes
78e5eb0c46 Bug 1742491 - [remote] Filter out parent process frames in MessageHandlerFrameChild r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D131897
2021-12-17 09:48:50 +00:00
Julian Descottes
9dcc8fa7a4 Bug 1746216 - [bidi] Implement "session.status" command r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D133941
2021-12-16 18:28:47 +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
Henrik Skupin
a1b9267fa5 Bug 1739976 - [webdriver-bidi] Add basic support for payload deserialization. r=webdriver-reviewers,jgraham,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D133677
2021-12-15 22:26:13 +00:00
Henrik Skupin
c5c7e8164e Bug 1570605 - [marionette] Remove invalid "instant" behavior for scrollIntoView(). r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D133762
2021-12-14 17:45:49 +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
Henrik Skupin
e9a3e7e89b Bug 1731553 - [webdriver-bidi] Add support for "stackTrace" to "log.entryAdded". r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D133088
2021-12-09 20:24:09 +00:00
Henrik Skupin
2973a301fe Bug 1731553 - [remote] Add shared module to handle stack frames. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D133087
2021-12-09 20:24:09 +00:00
Julian Descottes
020bcfc910 Bug 1744966 - [bidi] Keep already emitted messages in a Set instead of a WeakSet to avoid emitting duplicate messages after GC r=webdriver-reviewers,whimboo
Depends on D132845

Differential Revision: https://phabricator.services.mozilla.com/D133210
2021-12-09 16:29:50 +00:00
Julian Descottes
6320e3bd5e Bug 1731574 - [remote] Emit cached messages from ConsoleListener r=webdriver-reviewers,whimboo
Depends on D132843

Differential Revision: https://phabricator.services.mozilla.com/D132844
2021-12-08 10:24:43 +00:00
Julian Descottes
2c3ef64ac4 Bug 1731574 - [remote] Emit cached messages from ConsoleAPIListener r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D132843
2021-12-08 10:24:43 +00:00
Julian Descottes
01126d6945 Bug 1694145 - [webdriver-bidi] Support unsubscribing from log.entryAdded events r=webdriver-reviewers,whimboo
Depends on D132152

Add a new public command "unsubscribe" on the session module
Add a new API on RootMessageHandler called removeSessionData.
The internal _applySessionData command now expects paramers containing "added" and/or "removed" arrays instead of only "values".
Browser mochitests and wdspec tests are updated to cover the new feature.

Differential Revision: https://phabricator.services.mozilla.com/D132021
2021-12-02 19:21:45 +00:00
Julian Descottes
3893d96e96 Bug 1694145 - [remote] Add removeSessionData API to RootMessageHandler r=webdriver-reviewers,whimboo
Depends on D132150

Adds a new API to RootMessageHandler which will be necessary to implement _unsubscribeEvent on root/log.jsm
Expand the current browser mochitest for session data to cover the new API.

Differential Revision: https://phabricator.services.mozilla.com/D132152
2021-12-02 19:21:44 +00:00
Julian Descottes
a9e76a12f8 Bug 1694145 - [webdriver-bidi] Extract console api observer to dedicated listener class r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D132150
2021-12-02 19:21:44 +00:00
Julian Descottes
4dd9464dc3 Bug 1694136 - [remote] Move all documentation files for remote protocols under remote/doc r=webdriver-reviewers,whimboo
Depends on D132047

This patch only changes the folder organisation for remote protocol docs.
They should still be displayed in the exact same way on https://firefox-source-docs.mozilla.org

Differential Revision: https://phabricator.services.mozilla.com/D132049
2021-12-01 20:04:44 +00:00
Julian Descottes
fbdf8e95ff Bug 1694136 - [marionette] Remove marionette internals jsdoc r=webdriver-reviewers,whimboo
The internals jsdoc is not used by current maintainers of marionette and is costly to maintain.

Differential Revision: https://phabricator.services.mozilla.com/D132047
2021-12-01 20:04:44 +00:00
David Burns
d1ba70273a Bug 1700073: Add Get Shadow Root to Marionette. r=webdriver-reviewers,jgraham,whimboo
This adds the features as described in
https://w3c.github.io/webdriver/#get-element-shadow-root

Differential Revision: https://phabricator.services.mozilla.com/D110941
2021-12-01 14:57:16 +00:00
Drew Willcoxon
4c184ca81b Bug 1741479 - Turn on Merino as a Firefox Suggest source. r=nanj,webdriver-reviewers,whimboo
We only need to default `browser.urlbar.merino.enabled` to true. If the user has
opted in (either through the modal or by toggling on the data collection pref in
the prefs UI), then `quicksuggest.dataCollection.enabled` will also be true and
we'll fetch Merino suggestions. Otherwise it will be false and we won't fetch
Merino suggestions. That logic is implemented here:
https://searchfox.org/mozilla-central/rev/9a5f36b0ddb9cb8ae556fc5b45f8ccea0f0da6f8/browser/components/urlbar/UrlbarProviderQuickSuggest.jsm#144

Note this defaults the pref to true for everyone, even users in offline. It make
senses now that we have a separate toggle for data collection in the preferences
UI. Even offline users can opt in to Merino and data collection.

I also updated the various sets of prefs for test suites so that the Merino
endpoint URL is empty when running tests so they don't hit the network. I could
have forced `merino.enabled` to false instead, but setting the endpoint URL has
a couple of benefits, although admittedly they're very small:

* It runs a little more of the Merino code path (i.e., calls
  `_fetchMerinoSuggestions`)
* It lets Merino tests set only one pref, the endpoint URL, instead of two, both
  the endpoint pref and enabled pref

Differential Revision: https://phabricator.services.mozilla.com/D131988
2021-11-29 17:26:15 +00:00
Julian Descottes
216a21b4b6 Bug 1743083 - [remote] Instantiate MessageHandler modules after constructor has returned r=webdriver-reviewers,whimboo
Depends on D132064

Differential Revision: https://phabricator.services.mozilla.com/D132229
2021-11-26 13:42:43 +00:00
Henrik Skupin
181a586c49 Bug 1731548 - [webdriver-bidi] Add "JavascriptLogEntry" support to log.entryAdded event. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D132063
2021-11-26 12:45:45 +00:00
Henrik Skupin
58820f4f09 Bug 1742359 - [webdriver-bidi] Remove closed WebSocket connection from Session. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D132141
2021-11-26 12:45:44 +00:00
Henrik Skupin
7972156989 Bug 1731548 - [webdriver-bidi] Use session id if available for command and events debug logs. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D132062
2021-11-26 12:45:44 +00:00
Henrik Skupin
0f762be877 Bug 1731548 - [webdriver-bidi] Use debug level when logging commands and events details. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D132061
2021-11-26 12:45:43 +00:00
Henrik Skupin
809bd45036 Bug 1731548 - [remote] Cache innerWindowId on WindowGlobalMessageHandler. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D132060
2021-11-26 12:45:43 +00:00
Henrik Skupin
b5283b0fef Bug 1731548 - [remote] Improve trace log messages for message handlers. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D132059
2021-11-26 12:45:43 +00:00
Julian Descottes
1fd12674d3 Bug 1725111 - [remote] Add new context descriptor type TOP_BROWSING_CONTEXT r=webdriver-reviewers,whimboo
Depends on D131439

Add a new CONTEXT_DESCRIPTOR_TYPES for top level browsing contexts, called TOP_BROWSING_CONTEXT.
The corresponding context descriptor id should be a browserId.
The FrameTransport is updated to support both CONTEXT_DESCRIPTOR_TYPES: ALL and TOP_BROWSING_CONTEXT.
A browser mochitest is added to check that broadcasts are correctly filtered for a top level browsing context.

Differential Revision: https://phabricator.services.mozilla.com/D131440
2021-11-23 20:23:09 +00:00
Julian Descottes
a7c7c72e45 Bug 1725111 - [remote] Use contextDescriptor as broadcasting argument for MessageHandler commands r=webdriver-reviewers,whimboo
Instead of using a broadcast boolean flag in the CommandDestination, use a contextDescriptor.
The only context descriptor type supported here is CONTEXT_DESCRIPTOR_TYPES.ALL, and the behavior is unchanged.

Differential Revision: https://phabricator.services.mozilla.com/D131439
2021-11-23 20:23:08 +00:00
criss
e694b076ce Backed out 2 changesets (bug 1725111) for causing failures on browser_session_data_broadcast.js. CLOSED TREE
Backed out changeset 5a48f5832e72 (bug 1725111)
Backed out changeset 9055935bf63f (bug 1725111)
2021-11-23 16:06:16 +02:00
Julian Descottes
883da7e971 Bug 1725111 - [remote] Add new context descriptor type TOP_BROWSING_CONTEXT r=webdriver-reviewers,whimboo
Depends on D131439

Add a new CONTEXT_DESCRIPTOR_TYPES for top level browsing contexts, called TOP_BROWSING_CONTEXT.
The corresponding context descriptor id should be a browserId.
The FrameTransport is updated to support both CONTEXT_DESCRIPTOR_TYPES: ALL and TOP_BROWSING_CONTEXT.
A browser mochitest is added to check that broadcasts are correctly filtered for a top level browsing context.

Differential Revision: https://phabricator.services.mozilla.com/D131440
2021-11-23 13:02:28 +00:00
Julian Descottes
db1ebd69a8 Bug 1725111 - [remote] Use contextDescriptor as broadcasting argument for MessageHandler commands r=webdriver-reviewers,whimboo
Instead of using a broadcast boolean flag in the CommandDestination, use a contextDescriptor.
The only context descriptor type supported here is CONTEXT_DESCRIPTOR_TYPES.ALL, and the behavior is unchanged.

Differential Revision: https://phabricator.services.mozilla.com/D131439
2021-11-23 13:02:27 +00:00
Henrik Skupin
dbefd876f9 Bug 1693839 - [remote] Add basic support for WebDriver BiDi payload serialization. r=webdriver-reviewers,jgraham,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D131603
2021-11-21 13:02:10 +00:00
Julian Descottes
8f4c180b87 Bug 1731556 - [remote] Do not broadcast already existing session data items r=whimboo,jgraham,webdriver-reviewers
Depends on D128284

Differential Revision: https://phabricator.services.mozilla.com/D131553
2021-11-19 15:39:12 +00:00
Julian Descottes
4e54c3a7d8 Bug 1731556 - [remote] Apply events from session data for new window globals r=webdriver-reviewers,ochameau,whimboo,jgraham
Depends on D127698

Differential Revision: https://phabricator.services.mozilla.com/D128284
2021-11-19 15:39:12 +00:00