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

83 Коммитов

Автор SHA1 Сообщение Дата
Andreas Tolfsen 6d114b137e Bug 1201050: Part 3: Use dispatcher for listener mutliAction
r=dburns

--HG--
extra : commitid : 1lEK3P90oh0
extra : rebase_source : 45a9aded327adb1899ef795898683fa71aaf5c26
2015-09-02 14:04:58 +01:00
Andreas Tolfsen 407cfefbc9 Bug 1201050: Part 1: Use dispatcher for listener actionChain
r=dburns

--HG--
extra : commitid : EcKvt9OtC10
extra : rebase_source : b9f9d53fa2d3815863bf5c3261c0b8a4334d4028
2015-09-02 13:36:03 +01:00
Andrew Halberstadt bf62ed093b Bug 1227252 - [marionette] Don't depend on a potentially stale tab reference in hasRemotenessChange(), r=ato
--HG--
extra : commitid : GznhxqM06QD
extra : rebase_source : 80d4a3a620c55e79079552b3567f63844b9cbc6b
extra : amend_source : 462238c3e143a98fd085c065838fb728b4dc7552
2015-11-23 14:49:13 -05:00
Ting-Yu Chou f016efafb8 Bug 1220012 - Remove mozbrowserclose listener properly to fix memory leaks. r=ato 2015-10-30 14:29:14 +08:00
Andreas Tolfsen 4343fd152c Bug 1217988: Use current system OS for platformName capability
Services.appinfo is populated by the target compile system's OS name,
taken from the OS_TARGET configure variable.

By using Services.sysinfo instead, we are returning the effective current
local system's operating system, which is similar to what is found in
Gecko's UA string.

r=dburns

--HG--
extra : commitid : 2ap54ga0CLq
extra : rebase_source : 803baa9d40dee8630e58b8ccf6d68ef7ca6f0e3b
2015-11-10 15:43:58 +00:00
Andreas Tolfsen e50c5aed41 Backed out changeset de2c852c9853 (bug 1217988)
CLOSED TREE

--HG--
extra : commitid : 7V7qyzLQGn4
extra : amend_source : afd52fb64b0ed6e49d12cd950ead847df153a6cd
2015-11-10 23:23:47 +00:00
Andreas Tolfsen 4d78a9aa16 Bug 1217988: Use current system OS for platformName capability
Services.appinfo is populated by the target compile system's OS name,
taken from the OS_TARGET configure variable.

By using Services.sysinfo instead, we are returning the effective current
local system's operating system, which is similar to what is found in
Gecko's UA string.

r=dburns

--HG--
extra : commitid : 2UVeU9zzO6p
extra : rebase_source : cea1d6f8bc00173a68a28b51df33d59320be8093
2015-11-10 15:43:58 +00:00
Andreas Tolfsen 021a5ea9b8 Bug 1202381: Remove null check on element id
Corrects type checks on parameters passed to command, indentation level,
and clarifies when the code leaps into content space.

Thanks to Stanislas Daniel Claude Dolcini for doing the first iteration
fix for this.

r=dburns

--HG--
extra : commitid : 3HeTTEsvvBx
extra : rebase_source : 7088760ae24d695a2f9fa20b14a16cdec2e125d7
2015-11-09 17:48:31 +00:00
J. Ryan Stinnett 986f2a5cde Bug 1203159 - Rewrite DevTools resource URLs. r=ochameau 2015-10-21 12:48:53 -05:00
David Burns 7cc0a899a5 Bug 1206122: Add support for switchToParentFrame r=jgriffin
This allows us from a child frame to go up one level. This is documented
at http://w3c.github.io/webdriver/webdriver-spec.html#switch-to-parent-frame

--HG--
extra : commitid : GtXAxWLM61v
extra : rebase_source : 9b18d51a5dbefb4dad1cb39b229dc3d55cfae26a
extra : histedit_source : d0a0479e0c9946f242efd71e722685447ae48fd1
2015-10-19 21:39:48 +01:00
Andreas Tolfsen 30ee512caa Bug 1213797: Refactor screen capture and SVG document support
Errors thrown by takeScreenshot used to be silently ignored.  When the
command started using the new dispatching technique in bug 1202663,
it was surfaced we do not support taking screen captures of SVG documents.

Since this is a requirement for Web Platform Tests, this patch corrects
the wrong assumptions about document body and document element.

This patch also significantly refactors the screen capture code, but
only uses the new implementation in contnent space, since some further
modifications are required to use it in chrome.

r=dburns
r=jgriffin

--HG--
extra : commitid : DdCIEpd5PEJ
extra : rebase_source : 7357010f992d7f995765c685000892cc59d9ec9a
2015-10-13 16:52:26 +01:00
Andreas Tolfsen 4e5128c472 Bug 1202663: Use dispatcher for screen capture command in listener
r=dburns
r=jgriffin

--HG--
extra : commitid : 8Hc32mr6EX
extra : rebase_source : 5036cfc0eb6a9acb5a8f91548414448365162751
2015-10-09 12:02:42 +01:00
Carsten "Tomcat" Book 08997000eb Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
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
Carsten "Tomcat" Book e7ef778c9d Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)

--HG--
extra : rebase_source : 5d3db72337754bc7ab0ed0c30b2896100411ff92
2015-10-07 12:13:45 +02:00
Shu-yu Guo d06b6030f6 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07: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
Carsten "Tomcat" Book 651a168616 merge mozilla-inbound to mozilla-central a=merge
--HG--
rename : toolkit/devtools/server/actors/styleeditor.js => devtools/server/actors/styleeditor.js
rename : toolkit/devtools/server/actors/stylesheets.js => devtools/server/actors/stylesheets.js
rename : toolkit/devtools/gcli/commands/screenshot.js => devtools/shared/gcli/commands/screenshot.js
2015-09-22 12:35:13 +02:00
J. Ryan Stinnett efe328f1b2 Bug 912121 - Rewrite require / import to match source tree. rs=devtools
In a following patch, all DevTools moz.build files will use DevToolsModules to
install JS modules at a path that corresponds directly to their source tree
location.  Here we rewrite all require and import calls to match the new
location that these files are installed to.

--HG--
extra : commitid : F2ItGm8ptRz
extra : rebase_source : b082fe4bf77e22e297e303fc601165ceff1c4cbc
2015-09-21 12:04:18 -05:00
David Burns 4dda200aaf Bug 1141519: error if we are going to try send a message to a frame that we know doesnt exist; r=jgriffin
--HG--
extra : commitid : HT9JmxPxSRk
extra : rebase_source : 3354f9f476612c773c22262ff9ec1b455356780b
2015-09-16 20:54:46 +01:00
Wes Kocher 100b3d6563 Backed out 4 changesets (bug 1141519) for likely breaking Windows marionette tests
Backed out changeset 4f0cd3e94c0a (bug 1141519)
Backed out changeset 2c319ee6609b (bug 1141519)
Backed out changeset 2101909374c0 (bug 1141519)
Backed out changeset 5e3cbd7c84fa (bug 1141519)
2015-09-18 12:08:58 -07:00
David Burns 8f50c7e4f8 Bug 1141519: error if we are going to try send a message to a frame that we know doesnt exist; r=jgriffin
--HG--
extra : commitid : 6NtHFBNNkwf
extra : rebase_source : 03b60b416ed4ef774ccb6c323664cf3e79790809
extra : histedit_source : dccc1cc2506cdc810df9c490d92218345a1c873d
2015-09-16 20:54:46 +01:00
Andreas Tolfsen 7e04695f88 Bug 1205638: Remove findChildElement and findChildElements commands
The findChildElement and findChildElements commands were originally
added to provide Selenium compatibility because it sends an "id" field
in the body.

They are both unneeded now that we have wires which extracts the element
ID from the URI template and sets the "element" field that the normal
findElement and findElements commands use.

r=dburns

--HG--
extra : commitid : 9UOUJoukHH1
extra : rebase_source : 2f848ebbfa69b82b03d718340b8203d9183083d6
2015-09-17 14:05:51 +01: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 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
David Burns dbc240166a Bug 1196987: Update UUID returned to be a valid UUID 4; r=jgriffin
Currently the UUID returns the `{}` which is not valid and breaks
URI Templates used in WebDriver languages

--HG--
extra : commitid : 5TOoNz5yfms
extra : rebase_source : f51303fc4d15d886c04f20140e08c656c91eb2c6
2015-08-24 23:15:46 +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
David Burns c085801e25 Bug 1196920: Add specificationLevel capability to Marionette; r=jgriffin
--HG--
extra : commitid : 9P737TkRmC1
extra : rebase_source : c1eb63853ef04582b3854d17c9c9f8226f5b9c46
extra : histedit_source : f20ff7283658687f923cccbf7f907168385c533c
2015-08-20 23:21:21 +01: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
David Burns abe9763e58 Bug 1165449: Add the ability to set a proxy via capabilities on Marionette session start; r=jgriffin
By passing an object to capabilities like

  {
    "requiredCapabilities": {
        "proxy": {... }
    }
  }

Specification detail at http://w3c.github.io/webdriver/webdriver-spec.html#dfn-set-the-proxy

--HG--
extra : commitid : 3xR7tPDgMK4
extra : rebase_source : b3af3dfe7d2d0e1701ca0b2162f8ae517b5b4c9a
2015-07-14 00:51:58 +01:00
Chris Manchester 606f67f584 Bug 1169600 - Remove message listeners intended to coordinate registering a new browser with marionette once the browser has been registered. r=ato
--HG--
extra : commitid : BlpX9XbqiYM
2015-06-24 00:10:10 -07:00
David Burns 56ab0ea19e Bug 1174941: Update conditional to switch statement to allow more processing of capabilities; r=ato
--HG--
extra : commitid : 9X4OIvswmla
extra : rebase_source : 92005138affc9edc1726472f62e9276e2922a0f4
2015-06-19 15:45:46 +01:00
David Burns 720ba26e14 Bug 1174941: Remove all capabilities from desired capabilities if they are in the session capabilitiesand in requiredCapabilities; r=ato
--HG--
extra : commitid : 49h1HhlE4h
extra : rebase_source : fd01b68b9b34414fa5fd84e7fb592d0c22a1e60f
2015-06-19 15:44:25 +01:00
David Burns 74f8ab42da Bug 1174941: Update server capabilities that are set on startup; r=ato
--HG--
extra : commitid : JBXi8bCndb6
extra : rebase_source : 749e07ec25d12ffbcd739d807e67067ee67ad7a7
2015-06-19 15:42:04 +01:00