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

58 Коммитов

Автор SHA1 Сообщение Дата
Sebastian Hengst cdcff6d0a7 Backed out changeset c6b267589d0d (bug 1202902) for Mulet Reftest, W3C Platform Test and other failures. r=backout a=backout on a CLOSED TREE 2015-10-07 13:36:26 +02:00
David Burns ea7d4b9e69 Bug 977899: Have Marionette navigate the top frame on desktop when `navigate()`
is called. r=ato

This means that we are now doing step 7 in

http://w3c.github.io/webdriver/webdriver-spec.html#get

--HG--
extra : commitid : KQi5f9c0C1r
extra : rebase_source : 9c77a1d9aadf529ddbae2d32e0e1f9c4d532e181
extra : histedit_source : f40f377e1398f72fa68efd69ad864d9e4ae7e2b4
2015-10-06 16:47:09 +01:00
Shu-yu Guo 52e365bb7b Bug 1202902 - Fix the world. (r=ato for marionette, rs=Mossop for rest) 2015-10-06 14:00:30 -07:00
Wes Kocher 20fcea1fca Backed out changeset 443dc9a9c21c (bug 1202663) for hidden-2 Wr bustage CLOSED TREE 2015-10-05 10:36:54 -07:00
Andreas Tolfsen 377f1872e1 Bug 1202663: Use dispatcher for screen capture command in listener
r=dburns

--HG--
extra : commitid : APsoNBRciI8
extra : rebase_source : 1b7c525798c861f2eb958b2026d25ac1d1cb28fd
2015-09-08 15:26:19 +01:00
Alexandre Poirot 0896aa8eee Bug 1208018 - Improve marionette stack info and dump it when executeJSScript throws. r=jgriffin 2015-09-29 03:02:48 -07:00
Andreas Tolfsen 9355c18c57 Backed out changeset 820865a790e4 (bug 1202663)
CLOSED TREE

--HG--
extra : commitid : D1PsvakkyZm
2015-09-17 17:12:29 +01:00
Andreas Tolfsen aac49c7749 Bug 1202663: Use dispatcher for screen capture command in listener
r=dburns

--HG--
extra : commitid : 2B70dNWKSym
extra : rebase_source : 7ae9c5365a87619d18be8fd2e245c27d379e65ff
2015-09-08 15:26:19 +01:00
Shu-yu Guo 64db2267cf Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Yura Zenevich 47268649ef Bug 1201595 - improving a11y checks reliability and error messaging. r=ato 2015-09-11 08:33:04 -04:00
Yura Zenevich bc9a71944a Bug 1203166 - ensuring that B2G and a11y flags are passed when listener is registring. r=ato 2015-09-10 08:33:07 -04:00
Andreas Tolfsen b62463c664 Bug 1202707: Remove emulator commands from simpletest harness
We attach the emulator commands outside of the simpletest harness.
Removing this makes testing/marionette/simpletest.js less dependent
on Marionette.

r=dburns

--HG--
extra : commitid : 8jVQBdufXQg
extra : rebase_source : 5ea9660825fd76504d0cc7fdbc1bebba947836f5
2015-09-08 17:12:18 +01:00
Andreas Tolfsen cc041bab79 Bug 1202710: Remove size, location, and position commands
getElementSize, getElementLocation, and getElementPosition are all
deprecated.  They are not used by the client bindings.

r=dburns

--HG--
extra : commitid : FkXJjFafLDR
extra : rebase_source : 4d9f4a1b3ee461ad593854ec543c9ef26277377b
2015-09-08 17:22:06 +01:00
Andreas Tolfsen 1fe3c441c1 Bug 1153822: Adjust Marionette responses to match WebDriver protocol
Introduce protocol version levels in the Marionette server.
On establishing a connection to a local end, the remote will return a
`marionetteProtocol` field indicating which level it speaks.

The protocol level can be used by local ends to either fall into
compatibility mode or warn the user that the local end is incompatible
with the remote.

The protocol is currently also more expressive than it needs to be and
this expressiveness has previously resulted in subtle inconsistencies
in the fields returned.

This patch reduces the amount of superfluous fields, reducing the
amount of data sent.  Aligning the protocol closer to the WebDriver
specification's expectations will also reduce the amount of
post-processing required in the httpd.

Previous to this patch, this is a value response:

    {"from":"0","value":null,"status":0,"sessionId":"{6b6d68d2-4ac9-4308-9f07-d2e72519c407}"}

And this for ok responses:

    {"from":"0","ok":true}

And this for errors:

    {"from":"0","status":21,"sessionId":"{6b6d68d2-4ac9-4308-9f07-d2e72519c407}","error":{"message":"Error loading page, timed out (onDOMContentLoaded)","stacktrace":null,"status":21}}

This patch drops the `from` and `sessionId` fields, and the `status`
field from non-error responses.  It also drops the `ok` field in non-value
responses and flattens the error response to a simple dictionary with the
`error` (previously `status`), `message`, and `stacktrace` properties,
which are now all required.

r=jgriffin

--HG--
extra : commitid : FbEkv70rxl9
extra : rebase_source : 3116110a0d197289cc95eba8748be0a33566c5a5
2015-05-21 11:26:58 +01:00
Yura Zenevich 75c928c716 Bug 1194224 - adding support for Shadow DOM in marionette. r=automatedtester 2015-08-31 14:43:15 -04:00
Andreas Tolfsen 92037e0876 Bug 1197146: Part 8: Use dispatcher for listener getElementValueOfCssProperty
r=dburns

--HG--
extra : commitid : 23PStMtVria
extra : source : 8fb6d7814dc28abe320354b59bac44a9779869cf
2015-08-21 16:10:02 +01:00
Andreas Tolfsen 3932cbc6d5 Bug 1197146: Part 7: Use dispatcher for listener isElementDisplayed
r=dburns

--HG--
extra : commitid : 4zgBxkq6zdO
extra : source : dbee5f882e8eb355ffdad4cd7f7a6dd51a06443f
2015-08-21 15:49:47 +01:00
Andreas Tolfsen 0a22490c2e Bug 1197146: Part 6: Use dispatcher for listener clearElement
r=dburns

--HG--
extra : commitid : 35gcrZxPUW5
extra : source : 35f1b9173ef480dedd1869ec5ed1d0cbfd7a9e1b
2015-08-21 15:37:04 +01:00
Andreas Tolfsen 730495da38 Bug 1197146: Part 5: Use dispatcher for listener getElementLocation
r=dburns

--HG--
extra : commitid : FjoopWDThNJ
extra : source : 98d9c37a61f11a06945c0c96078c17d9c345efe6
2015-08-21 15:34:09 +01:00
Andreas Tolfsen fc6d8b1b09 Bug 1197146: Part 4: Use dispatcher for listener isElementSelected
r=dburns

--HG--
extra : commitid : 1zOWofJ40lV
extra : source : 46da411db576eea23aa69771b66123f979a783b6
2015-08-21 15:09:37 +01:00
Andreas Tolfsen a9eefdf14d Bug 1197146: Part 3: Use dispatcher for listener findElementContent
r=dburns

--HG--
extra : commitid : G9ClS0TusdD
extra : source : 6eaccfcfd64d5f9d41575872ab910f3023a61e79
2015-08-21 15:05:13 +01:00
Andreas Tolfsen c92e905c2e Bug 1197146: Part 2: Use dispatcher for listener findElementsContent
r=dburns

--HG--
extra : commitid : 6C4UE1m18Da
extra : source : f7e4900ea7ca194f282fae199d64b712aee85251
2015-08-21 15:03:03 +01:00
Andreas Tolfsen 2c61350827 Bug 1197146: Part 1: Prime dispatcher in listener to resolve promises
Because of the asynchronous behaviour of some internal utilities, such
as ElementManager, we need to employ promises to create a bridge over
them and the synchronous returning functions.

r=dburns

--HG--
extra : commitid : LneaNFIEWhx
extra : source : 12fe4474c9bc791395603242bc2f865e39212aa9
2015-08-21 15:00:29 +01:00
Andreas Tolfsen b7f18aa32d Bug 1197143: Use dispatcher for listener goBack
r=dburns

--HG--
extra : commitid : GDNioxjAwEz
extra : rebase_source : 68b438abf77572512650ab9fe212386fc0b619dc
2015-08-21 11:19:53 +01:00
Andreas Tolfsen 2ec14990fa Bug 1197141: Use dispatcher for listener getPageSource
r=dburns

--HG--
extra : commitid : G5PWcxsCVKx
extra : rebase_source : e8c27e5b61cae1714857807c6ef22c4a14b556bb
2015-08-21 11:11:36 +01:00
Andreas Tolfsen a58ec6fa20 Bug 1197133: Use dispatcher for listener getTitle
r=dburns

--HG--
extra : commitid : 8vtmyidCi3x
extra : rebase_source : e508e807147c163799b8bbf54149963f287ed91d
2015-08-21 11:04:06 +01:00
Andreas Tolfsen 1bb1ddb8be Bug 1197131: Use dispatcher for listener getCurrentUrl
r=dburns

--HG--
extra : commitid : 4Xc1sCPhKIj
extra : rebase_source : 42479a1cab75575ba6dae4a6c0b0cf98d1652582
2015-08-21 10:57:06 +01:00
Yura Zenevich 1b13386b9a Bug 1191432 - improving coverage for marionette accessibility checks. r=automatedtester 2015-08-22 16:41:14 -04:00
Ryan VanderMeulen 6cfdf70c9e Backed out changeset 9eeddf4d34ea (bug 1191432) for various Gij failures.
CLOSED TREE
2015-08-10 10:29:13 -04:00
Yura Zenevich fea1dcee0d Bug 1191432 - improving coverage for marionette accessibility checks. r=automatedtester 2015-08-10 09:36:53 -04:00
David Burns df864f9993 Bug 1178468 - Update marionette cookie support to use nsICookie2. r=jgriffin
This allows us to return httpOnly key when doing getCookie and serialising the result

Details in http://w3c.github.io/webdriver/webdriver-spec.html#dfn-serialized-cookie

--HG--
extra : commitid : Fkr0udCIjfm
extra : rebase_source : 7e837a36947e83520eae26c3f41b45dd5c211829
extra : histedit_source : 806d7c8249128b08bc1ad448389bb639e0369c07
2015-07-15 23:51:51 +01:00
Jonathan Griffin 479984afe5 Bug 1149618 - Remove SpecialPowers from Marionette, r=dburns 2015-05-18 16:36:15 -07:00
Jonathan Griffin 8824722da9 Backout cc15c275b1e3 (Bug 1149618) on a CLOSED TREE for suspected debug emulator bustage, a=bustage 2015-05-19 19:35:38 -07:00
Jonathan Griffin ac2f6d8d6e Bug 1149618 - Remove SpecialPowers from Marionette, r=dburns 2015-05-18 16:36:15 -07:00
Jonathan Griffin d1b4469ce0 Bug 1149618 - Add a sandbox parameter to execute, r=dburns 2015-04-23 13:39:38 -07:00
Andreas Tolfsen 2289af5da8 Bug 1060300: Match Marionette's navigation API docs to reality
r=dhunt

--HG--
extra : rebase_source : 1a2f0edf8df5728bf2d768fc8dc69d045f572021
2015-05-04 11:25:03 +01:00
Andreas Tolfsen ece490e01b Bug 1155716: Part 1: Remove submitElement from Marionette
r=dburns

--HG--
extra : source : 520ede785b0967572ca6411e75ce7466886db0f5
2015-04-29 11:31:19 +01:00
Andreas Tolfsen 9be62c99ef Bug 1157255: Use typeof to determine MarionetteObj exports
This makes us not rely on try…catch logic to export MarionetteObj
properties and functions on the sandbox.

The patch also cleans up a few more details on
createExecuteContentSandbox.

r=dburns

--HG--
extra : rebase_source : 920069f09328b57adad36827b4f67a28aedfdb1d
2015-04-28 19:16:46 +01:00
Andreas Tolfsen dfd24acbdc Bug 1157259: Correct ScriptTimeoutError reference in listener
r=dburns

--HG--
extra : rebase_source : 9119d7d29328468b959adf2cec497448f5902a38
2015-04-28 18:59:07 +01:00
Andreas Tolfsen 27e826ece6 Bug 1157266: Fix error unable to set cookie in listener
r=dburns

--HG--
extra : rebase_source : 799887866c0cb47f5fa6a0c656512609b42a9b3c
2015-04-28 18:53:51 +01:00
Andreas Tolfsen 5ade32492f Bug 1155658: Rename "illegal argument" error to "invalid argument"
r=chmanchester

--HG--
extra : rebase_source : b49c8bcaa30b470ae372182a83b6085ae94ddb7f
2015-04-17 18:43:05 +01:00
Chris Manchester b09cb9f838 Bug 1157261 - Fix typo in reference to curFrame in marionette listener. r=ato
--HG--
extra : rebase_source : 8f002e097376b653d44fed2446f4539fd7865999
2015-04-22 10:22:26 -07:00
Andreas Tolfsen 0a912ae1c7 Bug 945729: Replace error number codes with strings
Brings Marionette closer to compliance with the W3C WebDriver standard
which prescribes that errors should be identified by a string rather
than a magic number.

r=dburns

--HG--
extra : rebase_source : 2bdb28f3c05e56b17cc13ceacbf3167dabe89fd0
extra : source : 2b691bf191db1a83ae489116649602a74e64007a
2015-04-08 19:02:34 +01:00
Andreas Tolfsen f421bdc30c Bug 1154757: Correct unable to set cookie error
r=dburns

--HG--
extra : rebase_source : 2251ee9e992d8ec8fca4ce8a2bf62d28853e9660
2015-04-20 13:53:51 +01:00
Carsten "Tomcat" Book a2fffe9d30 Backed out changeset 9947bd361636 (bug 945729) for wpt test failures 2015-04-21 16:01:40 +02:00
Andreas Tolfsen 4916729cb0 Bug 945729: Replace error number codes with strings
Brings Marionette closer to compliance with the W3C WebDriver standard
which prescribes that errors should be identified by a string rather
than a magic number.

r=dburns

--HG--
extra : rebase_source : cde9ecded568fb17c46cd5940ec2241cd4446aaf
extra : source : 2b691bf191db1a83ae489116649602a74e64007a
2015-04-08 19:02:34 +01:00
Andreas Tolfsen ddcb607014 Bug 1153832: New dispatch style framework in Marionette listener
Takes advantage of the new dispatching technique introduced in bug
1107706 on the content side.

The patch introduces the framework to write simpler command handlers
in content space, but does not convert all commands in listener.js to
use this.  This can be done gradually, as both techniques are still
compatible.

r=dburns

--HG--
extra : source : 043a824dd7b749192a8c7ec3f1a8d3ba4d2619d0
2015-04-15 12:18:00 +01:00
Carsten "Tomcat" Book 7b850aae63 Backed out changeset 0b28f5ff48a6 (bug 1153832) for suspicion of making dt Asan test fail frequent/permanently
--HG--
extra : rebase_source : ccb49ee30e924bd7e30d997cd4204a1c8da8bdc4
2015-04-20 14:37:12 +02:00
Andreas Tolfsen 9338edd7c0 Bug 1153832: New dispatch style framework in Marionette listener
Takes advantage of the new dispatching technique introduced in bug
1107706 on the content side.

The patch introduces the framework to write simpler command handlers
in content space, but does not convert all commands in listener.js to
use this.  This can be done gradually, as both techniques are still
compatible.

r=dburns

--HG--
extra : rebase_source : 9ad8846754b86a1acc225c1a9b77a60530e8703b
extra : source : 043a824dd7b749192a8c7ec3f1a8d3ba4d2619d0
2015-04-15 12:18:00 +01:00
Ryan VanderMeulen a08d886394 Backed out changeset 5c83a36d9eba (bug 1153832) for Gip(a) failures.
CLOSED TREE
2015-04-16 12:20:48 -04:00