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

573 Коммитов

Автор SHA1 Сообщение Дата
Henrik Skupin 76c84025d2 Bug 1487358 - [marionette] "Accept Alert" and "Dismiss Alert" should check for remaining user prompts. r=ato
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.

--HG--
extra : rebase_source : 4a242daef46287051fc6be4c4d9353046d0f6559
2018-08-30 15:06:47 +02:00
Henrik Skupin 38c57edd5b Bug 1486485 - [marionette] Replace and not append text for "WebDriver:SendAlertText". r=jgraham
--HG--
extra : rebase_source : f2a07d425f099ea4f7bd8dae75f41369ba531228
2018-08-27 17:37:20 +02:00
Henrik Skupin fe48ee7ee8 Bug 1479368 - [marionette] Wait for tab modal dialog to disappear.
Both "WebDriver:AcceptAlert" and "WebDriver:DismissAlert" have to
wait until the tab modal dialog has been closed.

--HG--
extra : rebase_source : 64742b03faa900fe301a684a17666e3366322f5b
2018-08-22 22:24:39 +02:00
Kris Maglione 3a5c05e76f Bug 1484496: Part 5e - Convert remaining nsISimpleEnumerator users to use JS iteration. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D3733

--HG--
extra : rebase_source : c0fac176d7b3d840c4dbb14f8d95ccfc7f83a5a8
extra : histedit_source : a92c40117d0808a3ad68c972f622a7a42c9ae8ba
2018-08-18 18:13:14 -07:00
Brian Grinstead 357480ec96 Bug 1479125 - Update marionette driver to access tabBrowser.tabs as an iterable;r=ato
MozReview-Commit-ID: 5CLK6V3u0iG

--HG--
extra : rebase_source : 2a21683e6b5f5dce7841e01d2687963820a3d32a
2018-08-08 15:22:39 -07:00
Venkatesh Pitta f7b3601012 Bug 1451725 - Remove deprecated WebDriver Commands r=whimboo
MozReview-Commit-ID: 7PXrlwyiFvN

--HG--
extra : rebase_source : cfcc1d235ea3325bd7d15242c24c8cf8362d2647
2018-07-27 11:27:22 +10:00
Henrik Skupin f4703e6b19 Bug 1439995 - [marionette] Add user prompt checks for script execution commands. r=ato
WebDriver:{ExecuteScript,ExecuteAsyncScript} were missing user
prompt checks.

MozReview-Commit-ID: KL8gTBfSTrU

--HG--
extra : rebase_source : 7660e57079e82beb1aeb95d1673d69e82fef0394
2018-07-26 22:04:56 +02:00
Boris Zbarsky 75abc43e0d Bug 1476145 part 8. Stop using getInterface(nsIDOMWindowUtils) in various test code. r=kmag 2018-07-24 19:47:43 -04:00
Henrik Skupin 0c86782bb8 Bug 1264259 - [marionette] Add support for unhandledPromptBehavior capability. r=ato
The handling of user prompts for each of the commands is set by the
current sessions user prompt handler. To fully support this feature
this patch adds support for it including all available options which
are "accept", "accept and notify", "dismiss", "dismiss and notify",
and "ignore".

MozReview-Commit-ID: IWuYM7QfZUv

--HG--
extra : rebase_source : 56726bab5aaa29ad629d22247ab2b5409ca83bb8
2018-06-10 14:37:19 +02:00
Andreas Tolfsen 46053b96d4 Bug 1470646 - Modularise capabilities module. r=whimboo
This removes the "session." prefixed global export type in favour
of individually exported types.

MozReview-Commit-ID: 3DHTrJsy2IN

--HG--
extra : rebase_source : 74674f2cc549a245472304c55a14dd2eca1ee235
2018-06-26 17:15:28 +01:00
Coroiu Cristina cc751350dc Backed out 8 changesets (bug 1470646) for linting failure on a CLOSED TREE
Backed out changeset 9b8d9f803b25 (bug 1470646)
Backed out changeset 58e2010d2842 (bug 1470646)
Backed out changeset 2b19429d778f (bug 1470646)
Backed out changeset e543f592454a (bug 1470646)
Backed out changeset 22469044267d (bug 1470646)
Backed out changeset e5415b1e22f5 (bug 1470646)
Backed out changeset 13e47fa99a31 (bug 1470646)
Backed out changeset 42964d651f02 (bug 1470646)

--HG--
rename : testing/marionette/capabilities.js => testing/marionette/session.js
rename : testing/marionette/test/unit/test_capabilities.js => testing/marionette/test/unit/test_session.js
2018-07-02 17:56:27 +03:00
Andreas Tolfsen a355154c28 Bug 1470646 - Modularise capabilities module. r=whimboo
This removes the "session." prefixed global export type in favour
of individually exported types.

MozReview-Commit-ID: 3DHTrJsy2IN

--HG--
extra : rebase_source : eb2c05c1970c67b5752ece4b916145f053109f69
2018-06-26 17:15:28 +01:00
Andreas Tolfsen a71e8dea4a Bug 1464469 - Use MarionetteLog throughout. r=whimboo
Replace direct invocations of Log.jsm with the new Marionette-specific
logger.

The patch also moves the Log.get() call to a lazy getter.

MozReview-Commit-ID: H1HoAgL2Cvs

--HG--
extra : rebase_source : 0e20a5c0100a359c8d8b627457fc178293387078
2018-06-06 14:40:05 +01:00
Andreas Tolfsen 0be64b42c5 Bug 1467744 - Lazily import globals in Marionette. r=whimboo
Calling Cu.importGlobalProperties immediately defines the import
properties and any prototypes that they require.  Aside from CPU
overhead, this also tends to consume a lot of memory, especially
for objects with complex prototypes.  And it does this once for
every global you call it in.  This is especially a problem for
content processes, since we get this memory overhead in each and
every content process.

This patch moves Marionette to use the new
XPCOMUtils.defineLazyGlobalGetters so that symbols are constructed
only when actually needed.

MozReview-Commit-ID: 3RYWTcdO7FM

--HG--
extra : rebase_source : 0c450c8900e5de5446796b34ae4ab6bdf0fe9118
2018-06-08 13:16:29 +01:00
Venkatesh Pitta c8db8adef3 Bug 1348145 - Remove getWindowPosition/setWindowPosition and getWindowSize/setWindowSize. r=whimboo
MozReview-Commit-ID: AUxPhJwOKB6

--HG--
extra : rebase_source : 7e80bcfa65e7285a07dcc957bc46368373e42126
2018-06-02 09:14:06 +10:00
David Burns 63b3aa0869 Bug 1387678 - Allow Marionette sendAsync command to handle null or undefinedr?ato r=ato
When evaluating if an object can be null,  which would mean that we would
not be able to pass through IPC as, the commandId could not be added to null.
This patch makes sure that we can still send commands via IPC if the object is
evaluated to null.

MozReview-Commit-ID: Fl3Ionj08Sk

--HG--
extra : rebase_source : 33d015ac235ee74e903e13e234c55fda298f8e66
2018-05-03 11:00:26 +01:00
David Burns 3129272297 Bug 1387678 - Allow traversing to the parent if switchToShadowDom is given null; r=ato
MozReview-Commit-ID: KO1UwTyhf1R

--HG--
extra : rebase_source : 50d06af537ad997483b2d1cf27882f178399f8a7
2018-04-28 00:12:35 +01:00
Henrik Skupin e55c1dfc0c Bug 1461463 - [marionette] Empty response value should be null and not {}. r=ato
WebDriver commands which do not return a value have to send null.
But currently Marionette returns an empty object.

MozReview-Commit-ID: FILv9IkojIj

--HG--
extra : rebase_source : d3a59c5bd3ce2a33c0a52e2a413364b5e54f9140
2018-05-15 15:17:41 +02:00
Henrik Skupin 1986106785 Bug 1461463 - [marionette] Add validation for known contexts. r=ato
MozReview-Commit-ID: 1t0hk5rdY1a

--HG--
rename : testing/marionette/harness/marionette_harness/tests/unit/test_with_using_context.py => testing/marionette/harness/marionette_harness/tests/unit/test_context.py
extra : rebase_source : 02e5e3ef11183e6ed8898934190f3d15840ef0b2
2018-05-24 16:47:30 +02:00
Andreas Tolfsen c65aa9b433 Bug 1460656 - Fix sync IPC message Marionette:GetLogLevel by using initialProcessData. r=maja_zf
As a workaround for bug 1411513, about Log.jsm not supporting E10s,
testing/marionette/listener.js makes a synchronous call (sendSyncMessage)
to the main process asking for the Marionette logger repository's level.

We can avoid this blocking operation by using initialProcessData,
which is new since the workaround was implemented.

initialProcessData is a dictionary structured clone serialisable
that gets copied to the content process when it starts.  Because the
Marionette log level cannot be changed at runtime it should be fine
to only send this data once per child process.

MozReview-Commit-ID: 3czydqGZpZH

--HG--
extra : rebase_source : 1aaae676d2b56c609844238e8173b64d300e3e00
2018-05-10 17:32:42 +01:00
Kris Maglione a259026c9d Bug 1456035: Part 4 - Convert callers of XPCOMUtils.generateQI to ChromeUtils.generateQI. r=mccr8
This also removes any redundant Ci.nsISupports elements in the interface
lists.

This was done using the following script:

acecb401b7/processors/chromeutils-generateQI.jsm

MozReview-Commit-ID: AIx10P8GpZY

--HG--
extra : rebase_source : a29c07530586dc18ba040f19215475ac20fcfb3b
2018-04-22 20:55:06 -07:00
Andreas Tolfsen 4e7776764d Bug 1456050 - Add marionette.contentListener to MarionettePrefs. r=whimboo
MozReview-Commit-ID: 1SPrw4Vwd3N

--HG--
extra : rebase_source : f2218a9ec0ebc3472a964abcca0bd1aa09ed2eb0
2018-04-23 07:26:09 +01:00
Andreas Tolfsen d964f30a08 Bug 1456050 - Add marionette.debugging.clicktostart to MarionettePrefs. r=whimboo
MozReview-Commit-ID: BAxcJFcv1uD

--HG--
extra : rebase_source : 7982a7e72b0c878621db896613f53599053c56e7
2018-04-23 07:17:44 +01:00
Andreas Tolfsen d458b76e52 Bug 1456051 - Make cert an ES module. r=maja_zf
In addition to the way symbols are exposed, this patch makes a few
changes to what is exposed.  Unexposing currentOverride and the
error override bitmasks should not cause any problems.

MozReview-Commit-ID: 9CWZHVyAKbg

--HG--
extra : rebase_source : 6411f842c1eec26661cbe6f4d9e821904ffc4811
2018-04-23 10:01:40 +01:00
Andreas Tolfsen 916ef8de56 Bug 1456051 - Make addon an ES module. r=maja_zf
This does not really functionally change anything, but it prevents
us from polluting the global space in testing/marionette/driver.js.

MozReview-Commit-ID: Guwt3g0lS8q

--HG--
extra : rebase_source : ad2c38e51d54b7c4ead6b8d6a49d05a0dfef7c6c
2018-04-23 08:12:30 +01:00
Andreas Tolfsen 3e389d5b45 Bug 1452597 - Remove debug_script functionality for injected scripts. r=maja_zf
The WebDriver:ExecuteScript and WebDriver:ExecuteAsyncScript commands
accepts a "debug_script" parameter that attaches an error handler
on the WindowProxy in the sandbox.

This used to be necessary because the error handler used to be
attached to the content window instead of the sandbox.

MozReview-Commit-ID: ImRVkC5T75O

--HG--
extra : rebase_source : c13c33b4d708879f66bd906f431157720842690c
2018-04-09 13:13:18 +01:00
Andreas Tolfsen 7f65fc5fad Bug 1452487 - Remove directInject functionality in evaluate.sandbox. r=maja_zf
The evaluate.sandbox function accepts a directInject argument,
which is a relic from Marionette's B2G past when it did not support
evaluating scripts with lasting side-effects.

The API documentation in GeckoDriver#execute_ mentions directInject as a
valid parameter, but it is not picked up or passed on to evaluate.sandbox.
This effectively means the directInject functionality is unused.

MozReview-Commit-ID: 3rYjRQ2R5GV

--HG--
extra : rebase_source : b0c58077de0d7320d2bd1cc55d1af1b959ecaccf
2018-04-08 18:03:29 +01:00
Henrik Skupin 105a8df3da Bug 1451727 - [marionette] Update vendor specific commands to use custom prefixes. r=ato
All chrome context related commands have to use the "Marionette"
prefix. For those commands which accidentally have been put under
the "WebDriver" prefix a fallback to the old command is needed
in the Marionette client.

Also update related comments about possible removal dates.

MozReview-Commit-ID: IZLL6pineSO

--HG--
extra : rebase_source : 7e4cbe604d1f0b35cce01173a438b898658018b3
2018-04-05 21:23:57 +02:00
Henrik Skupin c15c7802d7 Bug 1451727 - [marionette] Add "WebDriver:AcceptAlert" in favor of "WebDriver:AcceptDialog". r=ato
To be consistent with the spec the command should be named
"WebDriver:AcceptAlert".

MozReview-Commit-ID: HGB9hJPAvcU

--HG--
extra : rebase_source : bbf3d657901784e1ab6e096edf1b20a5c43b0176
2018-04-05 15:50:28 +02:00
Peter Van der Beken 5e6f3328ec Bug 1448850 - Remove nsIMessageListener and nsIMessageListenerManager. r=bz.
--HG--
extra : rebase_source : 2938f6e1cb9078a6d45a8d58db0f6bf70e461b9c
2018-02-16 15:28:31 +01:00
Peter Van der Beken f5754d679a Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 6: Mark some IDL interfaces as non-scriptable. r=bz.
--HG--
extra : rebase_source : 5911f91bd7a63cd3603494e087e3858bd0527500
2018-03-01 20:19:56 +01:00
Andreas Tolfsen e8b0dd1386 Bug 1442543 - Add type checks for WebDriver:{ExecuteScript,ExecuteAsyncScript}. r=whimboo
Adds type checks for the WebDriver:ExecuteScript and
WebDriver:ExecuteAsyncScript commands.  This should help prevent
accidental programming mistakes with the Marionette Python client.

MozReview-Commit-ID: JjKgG9OWrdL

--HG--
extra : rebase_source : cd652717f6d4b98d396386e2b971d51a7e737725
2018-03-02 13:25:59 +00:00
Andreas Tolfsen f7f73b417a Bug 1441226 - Rename NoAlertOpenError to NoSuchAlertError. r=whimboo
To match the WebDriver specification error code names, this patch
renames the NoAlertOpenError type to NoSuchAlertError.

Its string error code (the status property) is still correct.

MozReview-Commit-ID: DhWz1tn6DsT

--HG--
extra : rebase_source : dd45387a5869a8df53f20baafe1c683c3af32b25
2018-02-26 17:35:30 +00:00
Csoregi Natalia 9553fd18e1 Backed out changeset fbe5a80f2f5b (bug 1441226) for linting Doc failures. CLOSED TREE 2018-03-01 16:55:25 +02:00
Andreas Tolfsen 3a1b1e0078 Bug 1441226 - Rename NoAlertOpenError to NoSuchAlertError. r=whimboo
To match the WebDriver specification error code names, this patch
renames the NoAlertOpenError type to NoSuchAlertError.

Its string error code (the status property) is still correct.

MozReview-Commit-ID: DhWz1tn6DsT

--HG--
extra : rebase_source : b3da69e566f190c1a016dad7fccf655966779ab1
2018-02-26 17:35:30 +00:00
Sebastian Hengst 3a10644021 Backed out 6 changesets (bug 888600) for beta simulation failures: build bustage on Linux and Windows opt (bug 1442036) and devtools failure browser_net_view-source-debugger.js (bug 1441961). a=backout
Backed out changeset 83c87140dc3d (bug 888600)
Backed out changeset 2efb9b1753f6 (bug 888600)
Backed out changeset af5303781961 (bug 888600)
Backed out changeset 79ef59047e63 (bug 888600)
Backed out changeset 30d568d628dd (bug 888600)
Backed out changeset c7bd4c6c9741 (bug 888600)

--HG--
extra : histedit_source : 791b22f6770f4fead2f909478a93d65d85829fe0%2Cbb387309e90f53e1dde45dcf8cf4ebedcc6e5c5e
2018-03-01 11:51:09 +02:00
Peter Van der Beken 6cf0e1c871 Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 6: Mark some IDL interfaces as non-scriptable. r=bz.
--HG--
extra : rebase_source : f6f781b04923f67f60718706a78b3c4de15eca94
2018-02-22 20:22:29 +01:00
Henrik Skupin 63313b65f6 Bug 1429338 - Marionette has to honor "moz:useNonSpecCompliantPointerOrigin" capability. r=maja_zf
This flag is used to turn off the WebDriver spec conforming pointer origin
calculation. It has to be kept until all Selenium bindings can successfully
handle the WebDriver spec conforming Pointer Origin calculation.

MozReview-Commit-ID: 3YknXlWoyi1

--HG--
extra : rebase_source : 6df2af027e7458fd29658d7a3bbe99634b6f58f9
2018-01-23 17:31:06 +01:00
Andrew McCreight 5dec0e0beb Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Kris Maglione 918ed6c474 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
extra : intermediate-source : 34c999fa006bffe8705cf50c54708aa21a962e62
extra : histedit_source : b2be2c5e5d226e6c347312456a6ae339c1e634b0
2018-01-29 15:20:18 -08:00
Cosmin Sabou 9a65a40178 Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione 6476f95b13 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
2018-01-29 15:20:18 -08:00
Brindusan Cristian af8879d1eb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione c276bb9375 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : rebase_source : c004a023389f1f6bf3d2f3efe93c13d423b23ccd
2018-01-29 15:20:18 -08:00
Andreas Tolfsen b7baba2225 Bug 1431462 - Remove Marionette:getVisibleCookies message listener. r=maja_zf
The Marionette:getVisibleCookies IPC message listener is not used.

MozReview-Commit-ID: G1N0F8jdLHH

--HG--
extra : rebase_source : 08e40fceae3d2a88c2ae88760d37c00bd8aecbca
2018-01-18 17:28:28 +00:00
Andreas Tolfsen 24ac581c5a Bug 1431155 - Move WindowState to Marionette browser module. r=automatedtester
This moves the WindowState enum from testing/marionette/wm.js to
testing/marionette/browser.js in order to make it easier to apply
the forthcoming Marionette window tracking refactoring patches.
In other words, this patch functionally does not change anything.

MozReview-Commit-ID: 53MKIRHl11p

--HG--
extra : rebase_source : d048086ab48449ba02853076451e6dd1909bafa6
2018-01-17 17:56:25 +00:00
Dorel Luca a0f25f9c56 Backed out changeset 4581da0d9525 (bug 1431155) for failing Browser-chrome on browser/base/content/test/static/browser_all_files_referenced.js on a CLOSED TREE 2018-01-18 17:09:45 +02:00
Andreas Tolfsen c45dec6136 Bug 1431155 - Move WindowState to Marionette browser module. r=automatedtester
This moves the WindowState enum from testing/marionette/wm.js to
testing/marionette/browser.js in order to make it easier to apply
the forthcoming Marionette window tracking refactoring patches.
In other words, this patch functionally does not change anything.

MozReview-Commit-ID: 53MKIRHl11p

--HG--
extra : rebase_source : 1d0dcbac2c5089a0b9249794548dee7506b6b568
2018-01-17 17:56:25 +00:00
Andreas Tolfsen 681ae6c180 Bug 1430077 - Separate clearing session state from deregistering listeners. r=whimboo
With the forthcoming window tracking changes the message listeners of
the content frame script are left listening for the duration of the
Marionette lifetime, and not for the duration of the Marionette session.

To prepare for the window tracking refactoring, we will want to
remove message listeners separately from clearing the session state.
Functionally, this patch changes nothing in Marionette for the moment,
except we send two IPC messages to the frame script instead of one.

MozReview-Commit-ID: DwVBCpvk9V9

--HG--
extra : rebase_source : d473a51209eeaf20967303af5aec7376e38fd283
2018-01-12 13:30:23 +00:00
Andreas Tolfsen 20a23b6e23 Bug 1430077 - Broadcast Marionette:Deregister once. r=whimboo
The global message manager reaches all browsers and all frames.

If Marionette was _not_ using the global message manager, this
would have been the correct approach.

MozReview-Commit-ID: HKrlfd9pzK2

--HG--
extra : rebase_source : 8a63a0928af574f27d5612d0cef88e4f3a80481b
2018-01-12 13:24:54 +00:00