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

39 Коммитов

Автор SHA1 Сообщение Дата
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
Chris Manchester 1419eee767 Bug 1169600 - Avoid misleading exception in message listeners in marionette server. r=ato
--HG--
extra : rebase_source : 08741e157688b8cb256bbf210d2bae8e21dc864b
2015-06-03 10:21:27 -07:00
Chris Manchester ddab0ce578 Bug 1169798 - Refresh the marionette server's window reference when switching between windows to avoid intermittent exception.;r=ato 2015-06-01 13:26:15 -07: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
Andreas Tolfsen a1fe10492b Bug 1155703: Correct Marionette to use NoSuchWindowError
FrameSendFailureError and FrameSendNotInitializedError are not compatible
with the W3C WebDriver specification and we should use NoSuchWindowError
instead.

Bug 1159674 has prepared Gaia for this change.

r=davehunt

--HG--
extra : rebase_source : 6fb5a2c0921d3fdbeb1749aee8296e7c40de4ead
extra : source : 02dfd2e12038460bb3c895c31951a85214e135e1
2015-04-29 12:00:43 +01: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 0db4c225cc Bug 1159232: Avoid use of template string in GeckoDriver#sendAsync
Also avoids it in GeckoDriver#execute.

r=dburns

--HG--
extra : rebase_source : 0f73cedd438590b6489fd6e8df34c9ae27e22e5c
2015-04-28 14:34:55 +01:00
Andreas Tolfsen 135734ed2d Bug 1159238. Generate UUID internally to ContentSender
r=dburns

--HG--
extra : source : e24c86fa5a8c5abb6b51662b0f44b4bab480b1ed
2015-04-28 18:15:08 +01:00
Andreas Tolfsen 89570930a6 Bug 1159219: Make ContentSender a separate module
r=dburns

--HG--
extra : rebase_source : dd217232c478e94673ee416dd1d19ae5f37bce2a
extra : source : a0fa5dabf485fd6860e4dd150158f59da2ca6692
2015-04-28 14:25:37 +01:00
Andreas Tolfsen ee63bc61fa Bug 1157253: Port ListenerProxy to use Proxy instead of __noSuchMethod__
r=chmanchester

--HG--
extra : rebase_source : 9a8a3e3528cb665519de1f986c48c67ac99c5445
2015-04-23 16:59:12 +01:00
Andreas Tolfsen 24b67d6136 Bug 1157258: Fix null type comparisons in driver.js
r=davehunt

--HG--
extra : rebase_source : a42ce4451d399e8689c503224e21e503ddd0e720
2015-04-24 13:55:52 +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
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
Andreas Tolfsen 9ad39929e4 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 : 2fac74a40d529f4a9112d4cd1e8d3f0681fd3499
extra : source : 043a824dd7b749192a8c7ec3f1a8d3ba4d2619d0
2015-04-15 12:18:00 +01:00
Ryan VanderMeulen 6824492e5c Backed out changeset 043a824dd7b7 (bug 1153832) for mass Mn failure.
CLOSED TREE
2015-04-15 12:58:51 -04:00
Andreas Tolfsen 001f9b3793 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 : 43ef240735099221cbbddb753eaf9e2802a4de1d
2015-04-15 12:18:00 +01:00
Andreas Tolfsen 9920d6780f Bug 1153240: Fix variable assignment of value in GeckoDriver#multiAction
Bug 1150041 inadvertently fixed a closely related issue.

r=njpark

--HG--
extra : rebase_source : 55b9bb965464c31c7c04b77ae46bc4a82293757c
2015-04-10 15:09:25 +01:00
Andreas Tolfsen 487ab6096d Bug 941085: File uploads support in Marionette
Adds support for W3C WebDriver compatible file uploads, where additional
calls to sendKeys on <input type=file multiple> will append files,
rather than reset the field.

r=dburns

--HG--
extra : source : 93166201fca032157ecb88923a62e8b2e8f9529d
extra : amend_source : a27f709de201063cc510af2f234d45344e90193b
2015-04-02 15:16:00 +01:00
Ryan VanderMeulen 6bd1c0ce64 Backed out changeset f3a27b508519 (bug 941085) for frequent Mn-e10s failures.
CLOSED TREE
2015-04-09 17:52:51 -04:00
Andreas Tolfsen 306af8a37f Bug 941085: File uploads support in Marionette
Adds support for W3C WebDriver compatible file uploads, where additional
calls to sendKeys on <input type=file multiple> will append files,
rather than reset the field.

r=dburns

--HG--
extra : rebase_source : a3b3ace100e68be1d2df7a9c98dfa75f5b1afa40
extra : source : 93166201fca032157ecb88923a62e8b2e8f9529d
2015-04-02 15:16:00 +01:00
Eric Rahm 6aaa172f43 Bug 1150247 - Check if value is function before binding. r=ato
Rather than attempting to bind non-functions and catching the exception this
explicitly checks if it is a function. This helps reduce memory consumption
needed for the exception stack traces. Realistically that will go away when GC
is run, but it throws off memory measurments prior to that.
2015-04-01 18:58:21 -07:00
Andreas Tolfsen 61623e8c70 Bug 1150041: Fix max_len extraction in GeckoDriver#multiAction
Fixes use of pinch() routine in gestures.py as part of Gaia UI tests.
Regressed as part of bug 1107706.

r=dburns

--HG--
extra : rebase_source : a22302712be7cf2eb8ac49fa2d221b8a2ea923f8
2015-04-01 16:17:05 +01:00
Andreas Tolfsen e1106d6c59 Bug 1107706: Part 16: Fix rebase of action chains for chrome space
--HG--
extra : rebase_source : 8bc4938611eaf55c2b9ab125f1a2593db4ff98dd
extra : source : d026794b4c0b4a95414deaab831da79c27232586
2015-03-24 15:35:58 +00:00
Andreas Tolfsen 3e7fc0e2d3 Bug 1107706: Part 13: Style fixes
Linting; no functional changes.

--HG--
extra : rebase_source : bf63a6d317af1cba44c6608437c0b0894e8231ce
extra : source : ec2b1317d3c6389826da0e8e8c12176ff2cf9eeb
2015-03-23 20:43:18 +00:00
Andreas Tolfsen 2cc5a43bfe Bug 1107706: Part 12: Drop marionette-* prefix on files
--HG--
rename : testing/marionette/marionette-actions.js => testing/marionette/actions.js
rename : testing/marionette/marionette-common.js => testing/marionette/common.js
rename : testing/marionette/marionette-elements.js => testing/marionette/elements.js
rename : testing/marionette/marionette-frame-manager.js => testing/marionette/frame-manager.js
rename : testing/marionette/marionette-listener.js => testing/marionette/listener.js
rename : testing/marionette/marionette-sendkeys.js => testing/marionette/sendkeys.js
rename : testing/marionette/marionette-simpletest.js => testing/marionette/simpletest.js
extra : rebase_source : 5cb9ed597e71980eabd15a01da2d0322be671830
extra : source : 91b35cb3308bc80d736e63434f9702e73115c41f
2015-03-23 21:32:03 +00:00
Andreas Tolfsen 8a3c86c0ad Bug 1107706: Part 11: Global modal dialogue support
--HG--
extra : rebase_source : d156204d3241920fd331a52e175316ecc26f153e
extra : source : 43c58b21251ffbbdfe695b4d2d2a2d5587356b41
2015-03-20 15:46:46 +00:00
Andreas Tolfsen 3d22164f70 Bug 1107706: Part 5: Refactor Marionette chrome/content communication
The Marionette server handles requests separately with a global sense
of state which makes it hard to introduce generalised behaviour to many
commands.  This effectively slows down protocol implementation because
each command request individually needs to do heavy lifting.

This patch introduces a series of abstractions that separates out the
WebDriver implementation to a new class, GeckoDriver.  It also features
a new interface to mediate messages between the chrome- and content
processes.

This allows the code living in the chrome context to make direct calls
on the listener through a promise-based API:

	let listener = new ListenerProxy(mm, sendCallback);
	let res = yield listener.functionOnListener("arg1", "arg2");

The MarionetteServer class that used to live in marionette-server.js
has now been moved to server.js, while the WebDriver implementation
has moved to driver.js.  By introducing more stringent separation,
MarionetteServer now properly encapsulates the server process allowing
us to unit tests for it in the future.

The patch is a refactor in the truest sense, in the meaning that no
input or output should have changed.

--HG--
extra : rebase_source : c94b8cd6b4e61addd3fe42c4b94a26ee987fc34a
extra : source : 7f506cdb77b88994ba9f5b13cc936a99a403f1fb
2015-03-19 21:12:58 +00:00