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

903 Коммитов

Автор SHA1 Сообщение Дата
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
Julian Descottes 0a8f6d458f 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-10 16:45:20 +00:00
Mark Banner b2e123ddca Bug 1739708 - Turn off ESLint rule mozilla/reject-importGlobalProperties for sjs files. r=Gijs,webdriver-reviewers,whimboo
sjs files have a separate sandbox, and require Cu.importGlobalProperties for now.

Differential Revision: https://phabricator.services.mozilla.com/D130693
2021-11-09 08:38:16 +00:00
James Graham b2389c73cc Bug 1678347 - [marionette] Implement pageRanges support. r=webdriver-reviewers,whimboo
This allows printing only specified page ranges.

We take them in the form ["1-2", 4, "5-"] and convert to a flat array
of the form [1,2,4,4,5,2147483647], which is appropriate for
nsIPrintSettings.

Testing relies on the fact that wpt vendored pdf.js for print
reftests; using the same mechaism we can ensure the correct pages were
printed.

Differential Revision: https://phabricator.services.mozilla.com/D97600
2021-11-08 10:17:52 +00:00
OnuohaOluebube b2fe708edc Bug 1733056 -[remote] Use UTF-8 character encoding for all browser-chrome HTML testcases. r=whimboo,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D129496
2021-11-08 09:51:01 +00:00
Julian Descottes 9539249363 Bug 1739008 - [marionette] Monitor navigation using the webprogresslistener for NewSession r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D130355
2021-11-08 09:35:48 +00:00
Cristian Tuns e5e804d9a1 Backed out changeset 78d6ea95a82f (bug 1739008) for causing android wpt failures. CLOSED TREE DONTBUILD 2021-11-05 07:47:08 -04:00
Julian Descottes a7941cac87 Bug 1739008 - [marionette] Monitor navigation using the webprogresslistener for NewSession r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D130355
2021-11-05 10:06:03 +00:00
Henrik Skupin 8e2ddef4de Bug 1739369 - [marionette] Improve logging for load events in waitForLoadEvent. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D130353
2021-11-04 19:15:37 +00:00
Henrik Skupin 6049dbd921 Bug 1605650 - [remote] Re-enable browser_getCookies.js for Windows CCOV builds. r=webdriver-reviewers,jmaher,jdescottes
Depends on D130337

Differential Revision: https://phabricator.services.mozilla.com/D130338
2021-11-04 12:38:30 +00:00
Henrik Skupin a11f894d94 Bug 1736323 - [marionette] "WebDriver:NewSession" has to wait for the very first tab to finish loading. r=webdriver-reviewers,jdescottes
If the New Session command doesn't wait for the initial tab
to have finished loading, any other command send right away
could fail because the document could be replaced.

Differential Revision: https://phabricator.services.mozilla.com/D130158
2021-11-02 18:40:32 +00:00
Andrew Halberstadt 14a5425d27 Bug 1736859 - Explicitly disable fission if '--enable-fission' is not set in |mach puppeteer-test|, r=jgraham,webdriver-reviewers
This ensures that when the default value of 'fission.autostart' changes, we
don't accidentally start running with fission enabled even without
'--enable-fission'.

As a follow-up, we should switch the flag to '--disable-fission' once the pref
has flipped.

Differential Revision: https://phabricator.services.mozilla.com/D129820
2021-10-28 14:52:29 +00:00
Henrik Skupin 110a77d073 Bug 1735162 - [marionette] Write Marionette port to MarionetteActivePort file in profile directory. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D128412
2021-10-15 14:45:28 +00:00
Christoph Kerschbaumer 1b3f14f95f Bug 1735543: Update tests within remote/shared/messagehandler to work with https-first enabled r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D128470
2021-10-14 12:31:45 +00:00
Julian Descottes 69fa6f5492 Bug 1726800 - [remote] Verify commands as early as possible in MessageHandler r=webdriver-reviewers,whimboo
Depends on D123655
With this patch, the MessageHandler can immediately check if a command is implemented by the modules, and therefore reject as early as possible.
This is implemented via a checkCommand method on MessageHandler.

Other required changes:
- ModuleRegistry now owns the logic to import BiDi modules.
- ModuleCache exposes a `getAllModuleClasses` to get all the relevant modules for a moduleName+destination pair.

Error messages have been improved and are verified with a dedicated test

Differential Revision: https://phabricator.services.mozilla.com/D123655
2021-10-12 16:48:43 +00:00
Julian Descottes 773ea0006d Bug 1726800 - [remote] Use dedicated error class for command errors in MessageHandler r=webdriver-reviewers,whimboo
Add a dedicated Errors module to remote/shared/messagehandler, similar to shared/webdriver/Errors.jsm
Errors thrown from content process MessageHandler are serialized before being forwarded to the parent process.

We should probably make all errors inherit from a generic RemoteError class which would support the same serialization/deserialization API

Differential Revision: https://phabricator.services.mozilla.com/D127620
2021-10-12 16:48:42 +00:00
Henrik Skupin 817bc018d0 Bug 1735131 - [remote] Ignore "document-element-inserted" notifications without a window object. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D128079
2021-10-11 15:11:07 +00:00
Henrik Skupin 9c12d30d15 Bug 1734676 - [remote] Use HTTPS for most of the browser chrome test pages. r=webdriver-reviewers,jdescottes
For most of the CDP browser chrome tests we can make use of
HTTPS URLs to access test pages.

We should not do that for cookie related tests, which also
have to test HTTP.

Differential Revision: https://phabricator.services.mozilla.com/D127875
2021-10-11 12:35:13 +00:00
Henrik Skupin a2602f840c Bug 1734208 - [remote] Ignore stdout in Puppeteer if dumpio isn't used. r=webdriver-reviewers,jdescottes
When the browser child process has logging enabled
and output on stdout isn't constantly processed,
the browser process is about to freeze.

To avoid such a situation at least the stdout
pipe shouldn't be set by default but only if
dumpio is enabled.

Differential Revision: https://phabricator.services.mozilla.com/D127883
2021-10-11 05:46:47 +00:00
Henrik Skupin 477950cf9c Bug 1610382 - [remote] Re-enable browser_setCacheDisabled.js. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D127819
2021-10-07 19:23:12 +00:00
Henrik Skupin 072e33d893 Bug 1706581 - [remote] Write CDP connection details to DevToolsActivePort file. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D127626
2021-10-07 18:43:25 +00:00