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

923 Коммитов

Автор SHA1 Сообщение Дата
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
Henrik Skupin a854264cda Bug 1740798 - [puppeteer] Remove multiple results from test "Page.click should click the button". r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D131472
2021-11-18 09:12:03 +00:00
Niklas Goegge 5d592a6adb Bug 1617611: Annotate each failing test individually. r=webdriver-reviewers,necko-reviewers,ckerschb,whimboo,valentin
Annotating each test individually lets us avoid introducing new failing tests
while we go through the backlog of failing tests.

Depends on D129162

Differential Revision: https://phabricator.services.mozilla.com/D129163
2021-11-17 11:04:34 +00:00
Henrik Skupin bece95705b Bug 1740798 - [puppeteer] Update expected meta data. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D131212
2021-11-16 14:58:11 +00:00
Henrik Skupin d505f7b753 Bug 1740798 - [remote] Await the mouse event before returning from Input.dispatchMouseEvent(). r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D131211
2021-11-16 14:58:11 +00:00
OnuohaOluebube 4e0acf805c Bug 1673438 -[remote] Refactored evaluate.fromJSON parameters into an options object r=whimboo,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D129597
2021-11-16 11:25:52 +00:00
criss 507f143b88 Backed out 2 changesets (bug 1617611) for causing mochitest failures on storageAccessWithDynamicFpi.js. CLOSED TREE
Backed out changeset fdb2c6bfc0c6 (bug 1617611)
Backed out changeset c3352f4b3681 (bug 1617611)
2021-11-16 13:02:05 +02:00
Niklas Goegge 5b684c7fc6 Bug 1617611: Annotate each failing test individually. r=webdriver-reviewers,necko-reviewers,ckerschb,whimboo,valentin
Annotating each test individually lets us avoid introducing new failing tests
while we go through the backlog of failing tests.

Depends on D129162

Differential Revision: https://phabricator.services.mozilla.com/D129163
2021-11-16 10:15:45 +00:00
Julian Descottes e788f6a08c Bug 1713443 - [remote] Support shared global session data that supports BiDi and CDP r=webdriver-reviewers,whimboo,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D127698
2021-11-11 22:01:46 +00:00
Emilio Cobos Álvarez dc3e72b026 Bug 1736932 - Use the right global to fire the TestRendered event. r=jgraham,webdriver-reviewers
This allows the page to access event.target, etc.

Differential Revision: https://phabricator.services.mozilla.com/D130978
2021-11-11 17:49:14 +00:00
Cristian Tuns 24fac1ad31 Backed out changeset 0e2ff229163c (bug 1713443) for causing mochitest(SessionDataReader.jsm) and remote(browser_session_data.js) failures. CLOSED TREE 2021-11-10 12:41:51 -05:00
Henrik Skupin ed424648de Bug 1713030 - [puppeteer] Update puppeteer expectation data and launcher tests. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D128453
2021-11-10 17:21:04 +00:00
Henrik Skupin 4f094b2f9b Bug 1713030 - [puppeteer] Support for custom user data (profile) directory for Firefox. r=webdriver-reviewers,jdescottes
When using a custom Firefox profile for Puppeteer the modified
preferences as present in prefs.js need to be reset once the
profile is no longer needed by Puppeteer. If not done this could
cause side-effects when the profile is used next time outside
of Puppeteer.

Differential Revision: https://phabricator.services.mozilla.com/D128452
2021-11-10 17:21:03 +00:00
Henrik Skupin e679d9a2c5 Bug 1713030 - [puppeteer] Extract creation of Firefox preferences files from profile creation. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D128451
2021-11-10 17:21:03 +00:00
Henrik Skupin 2faff04c93 Bug 1713030 - [puppeteer] Extract default preferences for Firefox from profile creation. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D128450
2021-11-10 17:21:03 +00:00
Henrik Skupin f84b7f51bd Bug 1713030 - [puppeteer] "--foreground" argument for Firefox is only supported on MacOS. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D128449
2021-11-10 17:21:02 +00:00