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

661 Коммитов

Автор SHA1 Сообщение Дата
James Graham 787c4c6e23 Bug 1616932 - Set unwritableMargins to 0 in marionette, r=marionette-reviewers,whimboo
There's no reason to add OS-specific margins instead of the ones
specified by the user when generating PDFs, so set these to zero.

Differential Revision: https://phabricator.services.mozilla.com/D63528

--HG--
extra : moz-landing-system : lando
2020-02-24 10:31:54 +00:00
Henrik Skupin 8b65decf57 Bug 1573383 - [marionette] Allow to open a private browsing window. r=marionette-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D61683

--HG--
extra : moz-landing-system : lando
2020-02-13 19:47:10 +00:00
Henrik Skupin 21c93d73d7 Bug 1606794 - [marionette] Fixed WebDriver:TakeScreenshot to capture frame's content. r=marionette-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D58622

--HG--
extra : moz-landing-system : lando
2020-01-08 16:32:22 +00:00
Narcis Beleuzu 683f0949af Backed out 3 changesets (bug 1606794) as req by whimboo ( it`s not a fix for Firefox 72 ). a=backout
Backed out changeset b2b3f10527c3 (bug 1606794)
Backed out changeset 565340ce11e8 (bug 1606794)
Backed out changeset d73cb1b0011d (bug 1606794)
2020-01-07 10:32:02 +02:00
Henrik Skupin ac46ca4119 Bug 1606794 - [marionette] Fixed WebDriver:TakeScreenshot to capture frame's content. r=marionette-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D58622

--HG--
extra : moz-landing-system : lando
2020-01-06 10:02:04 +00:00
Henrik Skupin 598061176a Bug 1571424 - [marionette] Full screenshot has to capture the whole content size. r=marionette-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D58530

--HG--
extra : moz-landing-system : lando
2020-01-03 09:07:00 +00:00
James Graham 65314b0441 Bug 1604506 - Add print command to marionette, r=marionette-reviewers,whimboo,ato
Add a WebDriver:Print command to marionette, following the proposed
WebDriver spec at https://github.com/w3c/webdriver/pull/1468
The implementation is largely the same as that added to the
remote agent in Bug 1599994.



Depends on D57471

Differential Revision: https://phabricator.services.mozilla.com/D57472

--HG--
extra : moz-landing-system : lando
2019-12-20 09:33:59 +00:00
Gurzau Raul 937fd4a2da Backed out 4 changesets (bug 1604506, bug 1602547, bug 1602544) for failing at /printcmd.py and /user_prompts.py
Backed out changeset cad798d12930 (bug 1602544)
Backed out changeset 531ee079b538 (bug 1604506)
Backed out changeset 29c893010729 (bug 1604506)
Backed out changeset 43fd1d4b1ba1 (bug 1602547)
2019-12-19 04:43:57 +02:00
James Graham 9fe8166c64 Bug 1604506 - Add print command to marionette, r=marionette-reviewers,whimboo,ato
Add a WebDriver:Print command to marionette, following the proposed
WebDriver spec at https://github.com/w3c/webdriver/pull/1468
The implementation is largely the same as that added to the
remote agent in Bug 1599994.



Depends on D57471

Differential Revision: https://phabricator.services.mozilla.com/D57472

--HG--
extra : moz-landing-system : lando
2019-12-18 20:34:40 +00:00
Andreas Tolfsen 6e83ddd110 bug 1600078: marionette: dismiss unsupported dialogues r=marionette-reviewers,whimboo
test_alert_unsupported_operation relied on the user prompt handler
in the subsequent test to close the basic auth dialogue, which only
incidentally worked because the next WebDriver command was one that
invoked it.

We should dismiss the dialogue and return control to the user when
Marionette encounters an unsupported dialogue type.

Differential Revision: https://phabricator.services.mozilla.com/D55387

--HG--
extra : moz-landing-system : lando
2019-12-03 15:14:01 +00:00
Henrik Skupin 1ed947aff2 Bug 1587627 - [marionette] Remove `Anon` and `AnonAttribute` strategies from "WebDriver:FindElement" and "WebDriver:FindElements" command. r=webdriver-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D50804

--HG--
extra : moz-landing-system : lando
2019-10-29 12:55:35 +00:00
Narcis Beleuzu 41e019fb57 Backed out changeset 79be8382d57a (bug 1587627) for bc failures on browser_all_files_referenced.js . CLOSED TREE 2019-10-29 14:06:44 +02:00
Henrik Skupin e8f5161a31 Bug 1587627 - [marionette] Remove `Anon` and `AnonAttribute` strategies from "WebDriver:FindElement" and "WebDriver:FindElements" command. r=webdriver-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D50804

--HG--
extra : moz-landing-system : lando
2019-10-28 18:31:17 +00:00
Tim Nguyen 79c7f01c56 Bug 1588066 - Remove remaining references to textbox. r=surkov,emilio,webdriver-reviewers,bgrins,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D48958

--HG--
extra : moz-landing-system : lando
2019-10-14 07:41:35 +00:00
Henrik Skupin 0082e28845 Bug 1584927 - [marionette] Handle user prompts in "Take Element Screenshot" and "Take Screenshot" commands. r=webdriver-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D48511

--HG--
extra : moz-landing-system : lando
2019-10-09 09:43:13 +00:00
Nick Alexander a2446c4186 Bug 1298921 - [marionette] Don't restrict Marionette:Quit to Firefox only. r=webdriver-reviewers,geckoview-reviewers,ato,snorp,agi
Formerly this assertion for Firefox was added because it didn't work for Fennec,
and other mobile apps. Meanwhile we shouldn't have this hard restriction anymore,
given that no exception is thrown by the code when running with GeckoView based
app, and also the Thunderbird support would benefit from it.

As we know this method doesn't quit the GeckoView app, and geckodriver itself
has to ensure to gracefully/force stop the process on Android.

Differential Revision: https://phabricator.services.mozilla.com/D39811

--HG--
extra : moz-landing-system : lando
2019-09-11 15:07:28 +00:00
Kershaw Chang 64b7f325a6 Bug 1577428 - Not allow nsICertOverrideService to be implemented in js r=keeler,ato
Differential Revision: https://phabricator.services.mozilla.com/D43931

--HG--
rename : security/manager/ssl/tests/unit/test_js_cert_override_service.js => security/manager/ssl/tests/unit/test_allow_all_cert_errors.js
extra : moz-landing-system : lando
2019-09-04 17:17:44 +00:00
Andreea Pavel aa258365a2 Backed out changeset 2e0c2fea2799 (bug 1577428) linting doc failure on a CLOSED TREE
--HG--
rename : security/manager/ssl/tests/unit/test_allow_all_cert_errors.js => security/manager/ssl/tests/unit/test_js_cert_override_service.js
2019-09-03 18:25:52 +03:00
Kershaw Chang f7c12de97f Bug 1577428 - Not allow nsICertOverrideService to be implemented in js r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D43931

--HG--
rename : security/manager/ssl/tests/unit/test_js_cert_override_service.js => security/manager/ssl/tests/unit/test_allow_all_cert_errors.js
extra : moz-landing-system : lando
2019-09-02 17:03:38 +00:00
Henrik Skupin d6c05078f8 Bug 1559592 - [marionette] Make use of the new Fission compatible screen capture API. r=webdriver-reviewers,ato,automatedtester
To allow Marionette to capture the content of OOP iframes, the
new Fission compatible screenshot API has to be used.

For callers requesting a read-back of the pixel data as
currently in the compositor/window, the 'drawWindow()'
method still has to be called.

Differential Revision: https://phabricator.services.mozilla.com/D40654

--HG--
extra : moz-landing-system : lando
2019-08-27 13:01:01 +00:00
Henrik Skupin a4b63bd323 Bug 1559592 - [marionette] Take screenshots for content in parent process. r=webdriver-reviewers,ato,automatedtester
This moves all the screenshot related code from the framescript to
the parent process, so that canvas.js is no longer called from
within a content process.

The remaining code in the framescript is only needed to compute
the dimensions of the screenshot, and from all the to highlight
elements.

This move is necessary to allow switching to the new drawSnapshot
API which only works from within the parent process.

Differential Revision: https://phabricator.services.mozilla.com/D40209

--HG--
extra : moz-landing-system : lando
2019-08-27 13:08:24 +00:00
Henrik Skupin c9b01104ed Bug 1575511 - [marionette] Remove feature to highlight elements in screenshots. r=webdriver-reviewers,ato
The feature was used in the past to highlight broken elements for l10n
specific tests. Given that those tests don't exist anymore (for already
a long time) the highlight feature doesn't have to be kept alive.

Also it isn't covered by the WebDriver spec, and as such a custom feature
which is not worth keeping its code working. Especially with the Fission
work upcoming.

Differential Revision: https://phabricator.services.mozilla.com/D42823

--HG--
extra : moz-landing-system : lando
2019-08-21 12:42:25 +00:00
Henrik Skupin 57747db95b Bug 1571659 - [marionette] Simplify logic for fullscreen screenshots. r=webdriver-reviewers,ato
The patch makes the code for handling screenshots in the driver and
listener module easier to understand. Also it sets the default values
for optional arguments once, which doesn't require duplicated code
for the listener anymore.

Further there was a bug which treated the "full" parameter with a
higher priority as an element, if both are defined.

Differential Revision: https://phabricator.services.mozilla.com/D40818

--HG--
extra : moz-landing-system : lando
2019-08-07 21:00:46 +00:00
Victor Porof 2b036e45c5 Bug 1561435 - Format testing/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35962

--HG--
extra : source : c0948f31e520ca087279cf429ca5f1db5a8341b8
2019-07-05 11:01:24 +02:00
Henrik Skupin 5b1247be4e Bug 1477977 - [marionette] Support dynamic handling of modal dialogs and tab modal alerts. r=maja_zf
With this patch Marionette registers globally for the dialog notifications
and events while a session is active. Also it provides an interface for
custom dialog handlers to hook in.

Instead of the callbacks custom events could have been fired, but that would
be some more work, and should preferable be done in a follow-up bug.

Differential Revision: https://phabricator.services.mozilla.com/D34139

--HG--
extra : moz-landing-system : lando
2019-06-13 18:26:53 +00:00
Henrik Skupin 15d145a042 Bug 1477977 - [marionette] Handle "tabmodal-dialog-loaded" to observe new tab modal dialogs. r=maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D34138

--HG--
extra : moz-landing-system : lando
2019-06-07 18:36:48 +00:00
Henrik Skupin 7fce583895 Bug 1335085 - [marionette] Fix "WebDriver:SwitchToWindow" for tab and window focus switching. r=webdriver-reviewers,ato
Selecting a different tab is asynchronous, and as such Marionette has
to wait for the "TabSelect" event to be emitted. Further the chrome
window also needs to be focused.

Depends on D33689

Differential Revision: https://phabricator.services.mozilla.com/D33690

--HG--
extra : moz-landing-system : lando
2019-06-04 20:42:28 +00:00
Coroiu Cristina a92cfdcfdb Backed out changeset 3350eb992270 (bug 1487358) for causing the Mn and Wd intermittent/perma failures 2019-05-28 09:09:10 +03:00
Henrik Skupin 21e28757a5 Bug 1487358 - [marionette] "Accept Alert" and "Dismiss Alert" should check for remaining user prompts. r=webdriver-reviewers,maja_zf
Workaround until we have a sane dynamic user prompt implementation
(see bug 1477977). At least for now this patch will give us the
opportunity to handle multiple open user prompts.

Differential Revision: https://phabricator.services.mozilla.com/D32666

--HG--
extra : moz-landing-system : lando
2019-05-27 19:54:21 +00:00
Alexander Surkov 2c25d53982 Bug 1495621 - marionette get_property fails to return wizard properties r=ato
Differential Revision: https://phabricator.services.mozilla.com/D30091

--HG--
extra : moz-landing-system : lando
2019-05-08 13:42:30 +00:00
Henrik Skupin 7753f55f6b Bug 1502360 - [marionette] "Send Alert Text" has to use the text field's value property. r=ato
Depends on D20002

Differential Revision: https://phabricator.services.mozilla.com/D20004

--HG--
extra : moz-landing-system : lando
2019-02-16 00:03:21 +00:00
Henrik Skupin 7bf46d394a Bug 1502360 - [marionette] Check for valid prompt type in "Send Alert Text". r=ato
Depends on D20000

Differential Revision: https://phabricator.services.mozilla.com/D20002

--HG--
extra : moz-landing-system : lando
2019-02-16 00:03:11 +00:00
Henrik Skupin f5c6c6ad4a Bug 1502360 - [marionette] Raise "invalid argument" error in "Send Alert Text" if text is not of type string. r=ato
Depends on D19999

Differential Revision: https://phabricator.services.mozilla.com/D20000

--HG--
extra : moz-landing-system : lando
2019-02-16 00:01:51 +00:00
Nick Alexander 813f94bb19 Bug 1496773 - Part 1: Feature test and accommodate navigator:geckoview inside Marionette. r=ato
This lays the foundation for Marionette to work inside
GeckoView-consuming Apps.

Differential Revision: https://phabricator.services.mozilla.com/D17578

--HG--
extra : moz-landing-system : lando
2019-02-04 18:15:52 +00:00
Myk Melez 25349d2601 Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17526

--HG--
extra : moz-landing-system : lando
2019-01-30 17:26:25 +00:00
Kris Maglione e930b89c34 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16750

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
Henrik Skupin e34e2827b5 Bug 1522408 - [marionette] Restore maximized window first before entering fullscreen or minimizing the window. r=ato
The window should always be restored first to the normal window state,
before a special state like fullscreen or minimized can be entered.

Right now this isn't done when going from a maximized window into
fullscreen mode, or when minimizing the window.

Differential Revision: https://phabricator.services.mozilla.com/D17472

--HG--
extra : moz-landing-system : lando
2019-01-25 13:16:24 +00:00
Henrik Skupin 6c1dfed37e Bug 1521527 - [marionette] Don't raise timeout errors for all window manipulation commands. r=ato
Marionette should do its best to get the browser into the requested
window state, but if it is not possible to do so, it shouldn't raise
a timeout error. This is mostly the case when running tests under
xvfb with no window manager running. Instead we just log the
message for further investigation.

Further the timeout value has to be set to a value which wouldn't
cause the commands to inappropriately fail due to animations, or
a slow machine.

Differential Revision: https://phabricator.services.mozilla.com/D17144

--HG--
extra : moz-landing-system : lando
2019-01-21 18:39:30 +00:00
Henrik Skupin b67d0c309e Bug 1478358 - [marionette] Don't wait for resize events in "Set Window Rect". r=ato
Differential Revision: https://phabricator.services.mozilla.com/D16338

--HG--
extra : moz-landing-system : lando
2019-01-14 15:24:54 +00:00
Geoffrey Sneddon 49eaed4f5c Bug 1510696 - Make width/height of reftests configurable over Marionette r=jgraham,ato
Depends on D13282

Differential Revision: https://phabricator.services.mozilla.com/D13283

--HG--
extra : moz-landing-system : lando
2019-01-11 18:11:30 +00:00
Cosmin Sabou d67c07e5d3 Backed out 3 changesets (bug 1510695, bug 1510696, bug 1510693) for causing marionette reftest failures.
Backed out changeset daf05866f9dd (bug 1510696)
Backed out changeset aa26fbe413c4 (bug 1510695)
Backed out changeset bd2cb6b0a391 (bug 1510693)
2019-01-10 22:04:11 +02:00
Geoffrey Sneddon d24f6c35c3 Bug 1510696 - Make width/height of reftests configurable over Marionette r=jgraham,ato
Depends on D13282

Differential Revision: https://phabricator.services.mozilla.com/D13283

--HG--
extra : moz-landing-system : lando
2019-01-10 17:22:54 +00:00
Henrik Skupin ccadd49d38 Bug 1507067 - [marionette] Listen for "visibilitychange" event in content process. r=ato
To detect when the window got minimized usally "visibilitychange" events
are fired to the content window. The "WebDriver:MinimizeWindow" command
has to wait for those.

Depends on D16096

Differential Revision: https://phabricator.services.mozilla.com/D16098

--HG--
extra : moz-landing-system : lando
2019-01-10 14:26:52 +00:00
Henrik Skupin c631c98202 Bug 1504756 - [marionette] Added "WebDriver:NewWindow" command to open a new top-level browsing context. r=ato
The patch adds the end-point for the recently defined `New Window`
command (https://github.com/w3c/webdriver/issues/1138). It allows
to open a new top-level browsing context as tab or as window.

Depends on D13662

Differential Revision: https://phabricator.services.mozilla.com/D13663

--HG--
extra : moz-landing-system : lando
2019-01-10 10:14:24 +00:00
Henrik Skupin ea87c4dedf Bug 1504756 - [marionette] Remove default timeout from PollPromise. r=ato
By default PollPromise has to behave similar to a normal Promise
and wait forever until it gets resolved or rejected.

Depends on D13662

Differential Revision: https://phabricator.services.mozilla.com/D15907

--HG--
extra : moz-landing-system : lando
2019-01-10 10:12:24 +00:00
Henrik Skupin 74c45eb2ed Bug 1504756 - [marionette] Use waitForObserverTopic when waiting for observer notifications. r=ato
Depends on D13661

Differential Revision: https://phabricator.services.mozilla.com/D13662

--HG--
extra : moz-landing-system : lando
2019-01-10 10:14:22 +00:00
Henrik Skupin 2575586fb6 Bug 1504756 - [marionette] Use waitForEvent() when waiting for events. r=ato
Depends on D13659

Differential Revision: https://phabricator.services.mozilla.com/D13660

--HG--
extra : moz-landing-system : lando
2019-01-10 10:10:47 +00:00
Brindusan Cristian 75f86d396d Backed out 7 changesets (bug 1504756) for xpcshell failures on test_sync.js.
Backed out changeset 9d80f662ad2b (bug 1504756)
Backed out changeset 8f9d90979825 (bug 1504756)
Backed out changeset 9715660f8c07 (bug 1504756)
Backed out changeset c25c93d2dc4d (bug 1504756)
Backed out changeset 58ab81d373b9 (bug 1504756)
Backed out changeset 21658a2d0174 (bug 1504756)
Backed out changeset 93ff3f0d95bd (bug 1504756)
2019-01-09 21:57:50 +02:00
Henrik Skupin d950f23ac6 Bug 1504756 - [marionette] Added "WebDriver:NewWindow" command to open a new top-level browsing context. r=ato
The patch adds the end-point for the recently defined `New Window`
command (https://github.com/w3c/webdriver/issues/1138). It allows
to open a new top-level browsing context as tab or as window.

Depends on D13662

Differential Revision: https://phabricator.services.mozilla.com/D13663

--HG--
extra : moz-landing-system : lando
2019-01-09 18:27:28 +00:00
Henrik Skupin 3664921097 Bug 1504756 - [marionette] Remove default timeout from PollPromise. r=ato
By default PollPromise has to behave similar to a normal Promise
and wait forever until it gets resolved or rejected.

Depends on D13662

Differential Revision: https://phabricator.services.mozilla.com/D15907

--HG--
extra : moz-landing-system : lando
2019-01-09 18:24:06 +00:00