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

888 Коммитов

Автор SHA1 Сообщение Дата
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
Henrik Skupin 6553b9b08f Bug 1601245 - [remote] Enable Puppeteer and CDP browser-chrome mochitests for Fission. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D127524
2021-10-06 04:30:27 +00:00
Henrik Skupin 1f3a832413 Bug 1601245 - [remote] Use "document-element-inserted" notification to determine when a frame is ready. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D127522
2021-10-06 04:30:26 +00:00
Henrik Skupin 322b371255 Bug 1601245 - [remote] Fix the handling of life-cycle "init" events for initial about:blank pages. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D127523
2021-10-06 04:30:26 +00:00
Henrik Skupin 1f575b4324 Bug 1601245 - [remote] With Fission enabled use "DOMWindowCreated" event to detect newly created frames. r=webdriver-reviewers,jdescottes
Because with Fission enabled the "DOMWindowCreated" event
is emitted way early it can be used to detect when a new
frame has been created.

But with Fission disabled the event is received too late,
and as such the appropriate network requests and responses
for the document have already been done. That means that
Puppeteer actually hangs waiting for them.

As such keep using the "webnavigation-create" observer
notification for Fission-disabled builds for now.

Differential Revision: https://phabricator.services.mozilla.com/D127521
2021-10-06 04:30:25 +00:00
Henrik Skupin 5a76e49c23 Bug 1601245 - [remote] Update browser-chrome tests to assert on event count and not event order. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D127520
2021-10-06 04:30:25 +00:00
Julian Descottes a18662b0ed Bug 1734084 - [remote] Fix indentation of commands in remote/doc/Testing.md r=webdriver-reviewers,whimboo
This is only a whitespace change, but it prevented the commands from being correctly rendered in our documenation.

Differential Revision: https://phabricator.services.mozilla.com/D127518
2021-10-05 08:06:54 +00:00
Henrik Skupin 1d30f57c66 Bug 1733463 - [remote] Use "window.origin" for context's origin in "Runtime.executionContextCreated". r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D127243
2021-10-01 18:49:28 +00:00
Henrik Skupin 829aedf5d3 Bug 1601245 - [remote] Use same-origin URLs for browser-chrome navigation tests. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D127242
2021-10-01 18:49:28 +00:00
Julian Descottes 3ac88c59a2 Bug 1691954 - [marionette] Avoid MarionetteEvents JSErrors using shared process state r=webdriver-reviewers,whimboo
This patch no longer unregisters the MarionetteEvents actors. Instead when the session ends, a flag is set on sharedData so that MarionetteEventsChild actors stop sending events to the parent process

Differential Revision: https://phabricator.services.mozilla.com/D126371
2021-09-30 09:13:07 +00:00
Cosmin Sabou 78019683ed Backed out 1 changesets (bug 1691954) for bc failures on browser_startup_content_subframe.js. CLOSED TREE
Backed out changeset 18366efe3ea2 (bug 1691954)
2021-09-29 20:23:15 +03:00
Julian Descottes 745c87d0ca Bug 1691954 - [marionette] Avoid MarionetteEvents JSErrors using shared process state r=webdriver-reviewers,whimboo
This patch no longer unregisters the MarionetteEvents actors. Instead when the session ends, a flag is set on sharedData so that MarionetteEventsChild actors stop sending events to the parent process

Differential Revision: https://phabricator.services.mozilla.com/D126371
2021-09-29 15:39:05 +00:00
Julian Descottes f52d958759 Bug 1731795 - [marionette] Disable dialog abuse time limit with RecommendedPreferences r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D126356
2021-09-28 09:32:10 +00:00
Julian Descottes 5d36dcd33d Bug 1722659 - [remote] Stop using singleton for MessageHandlerRegistry r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D123190
2021-09-28 09:23:11 +00:00
Alex Lopez 63022efc7a Bug 1696251: Allow mach commands as stand-alone functions and adapt existing commands. r=mhentges,webdriver-reviewers,perftest-reviewers,sparky,whimboo
This removes the `@CommandProvider` decorator and the need to implement
mach commands inside subclasses of `MachCommandBase`, and moves all
existing commands out from classes to module level functions.

Differential Revision: https://phabricator.services.mozilla.com/D121512
2021-09-27 18:12:51 +00:00
Henrik Skupin a62021e047 Bug 1731790 - [cdp] Add blank implementation of Fetch.disable to prevent unknown method errors. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D126317
2021-09-23 11:01:21 +00:00