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

207 Коммитов

Автор SHA1 Сообщение Дата
Andrea Marchesini 83a08cd72e Bug 1259169 - nsICookieManager::remove() should be back-compatible, r=jdm 2016-04-10 05:46:07 +01:00
Ryan VanderMeulen 1c7872d0af Backed out changeset 7d5f1e9ce04c (bug 1259169) for various cookie-related crashes and test failures. 2016-04-09 15:36:07 -04:00
Andrea Marchesini d09d8959fe Bug 1259169 - nsICookieManager::remove() should be back-compatible, r=jdm 2016-04-09 19:09:49 +01:00
Carsten "Tomcat" Book 78d9f80444 Backed out changeset 74330da56b82 (bug 1259169) for assertion failures in nsCookieService.cpp:2390 2016-04-08 14:47:39 +02:00
Andrea Marchesini 87827f2189 Bug 1259169 - nsICookieManager::remove() should be back-compatible, r=jdm 2016-04-08 12:38:15 +01:00
Henrik Skupin e31e20a841 Bug 1259029 - Ensure that getChromeWindowHandles() returns the same window list for chrome and content scope. r=ato
MozReview-Commit-ID: EcmUfEH4lKd

--HG--
extra : rebase_source : eb5b5bd4305bb0ec6919fc52375507e3cbc962d1
2016-03-23 15:48:11 +01:00
Andreas Tolfsen 1df002e8b0 Bug 1257526 - Harmonise unsupported operation error usage; r=automatedtester
Throw unsupported operation errors the same way throughout Marionette.

MozReview-Commit-ID: D63gVIeX2qK

--HG--
extra : rebase_source : 2f93a7a847c599234a1303a27a59a64f74e8f3f6
2016-03-17 14:57:46 +00:00
Andreas Tolfsen 49e853427a Bug 1257526 - Return unsupported operation error for screen orientation on desktop; r=automatedtester
MozReview-Commit-ID: 4G9Bwaqxm5k

--HG--
extra : rebase_source : 5e2a9c37d3e9ea3fb9c9da821293b5aa0918eda8
2016-03-17 14:54:48 +00:00
Carsten "Tomcat" Book 5d87e982dd Backed out changeset f8c07a51e7ce (bug 1257526) for marionette failures 2016-03-22 13:21:35 +01:00
Carsten "Tomcat" Book dd50937aa3 Backed out changeset c1fb88d419ca (bug 1257526) 2016-03-22 13:21:20 +01:00
Andreas Tolfsen 86fe465e04 Bug 1257526 - Harmonise unsupported operation error usage; r=automatedtester
Throw unsupported operation errors the same way throughout Marionette.

MozReview-Commit-ID: D63gVIeX2qK

--HG--
extra : rebase_source : 89c7d99027add7df3b38797b9df041e3e38a4939
2016-03-17 14:57:46 +00:00
Andreas Tolfsen 368f4c16af Bug 1257526 - Return unsupported operation error for screen orientation on desktop; r=automatedtester
MozReview-Commit-ID: 4G9Bwaqxm5k

--HG--
extra : rebase_source : c0ffe32835da6f7ba1bfa61d0047b0393457339d
2016-03-17 14:54:48 +00:00
Andreas Tolfsen f6bfff23ab Bug 1257523 - Remove unused imports; r=automatedtester
MozReview-Commit-ID: K12laAg8zLy

--HG--
extra : rebase_source : 01f495019e69ac859b3f7eb7653a14653477bb93
2016-03-17 14:29:41 +00:00
Andreas Tolfsen 71f87b0569 Bug 1257523 - Remove GeckoDriver#deleteFile; r=automatedtester
MozReview-Commit-ID: 7kOZ5hVC5He

--HG--
extra : rebase_source : 514de7eeaaf0fb41cf1e8d3ae0999c01af052956
2016-03-17 14:26:57 +00:00
Andreas Tolfsen 176f8137f9 Bug 1245064 - Lint GeckoDriver#setSessionCapabilities; r=automatedtester
MozReview-Commit-ID: GXLGqjKCfVA

--HG--
extra : rebase_source : 8a58e5df7e1bf097b26597d6632bab6742a26bc2
2016-03-04 18:03:28 +00:00
Andreas Tolfsen 158557f87b Bug 1245064 - Pass all capabilities to listener; r=automatedtester
MozReview-Commit-ID: 2UgKKAUowM4

--HG--
extra : rebase_source : 5ffd21c06fb98ac908d5118f55736b5f4271ff95
2016-03-04 18:02:56 +00:00
Andreas Tolfsen 1e70da6b17 Bug 1245064 - Lower specificationLevel to 0; r=automatedtester
Marionette is not yet compatible with the WebDriver specification, and
we indicate this by lowering the specificationLevel capability to 0.
This lets us "gate" specification-compatible features, such as the new
element interactability algorithm.

The new interactability algorithm can be enabled by requesting the
capability specificationLevel 1.

MozReview-Commit-ID: 6wsEAsBtR6P

--HG--
extra : rebase_source : f37444470987bb782f32e190e3b5476eb139f142
2016-03-04 18:00:17 +00:00
Andreas Tolfsen 71b94d4505 Bug 1245064 - Refactor interaction- and accessibility API; r=automatedtester
MozReview-Commit-ID: LblRZz8KqPx

--HG--
extra : rebase_source : fbb7995924c7e2707e2aaa2293b8a5c51fc563bc
2016-03-03 13:58:13 +00:00
Carsten "Tomcat" Book 84efe80138 Backed out changeset 4dec8d87c105 (bug 1245064) for marionette bustage 2016-03-09 14:03:28 +01:00
Carsten "Tomcat" Book b622474229 Backed out changeset cb92135b84d1 (bug 1245064) 2016-03-09 14:03:06 +01:00
Carsten "Tomcat" Book b685a90a5e Backed out changeset 2483596f62ef (bug 1245064) 2016-03-09 14:03:04 +01:00
Carsten "Tomcat" Book f06c52d3e1 Backed out changeset 9c4589c2cf47 (bug 1245064) 2016-03-09 14:03:03 +01:00
Andreas Tolfsen 608b6681f2 Bug 1245064 - Lint GeckoDriver#setSessionCapabilities; r=automatedtester
MozReview-Commit-ID: GXLGqjKCfVA

--HG--
extra : rebase_source : 1c0e879f11c6ec0bed455a083fe208d8cb6fb14f
2016-03-04 18:03:28 +00:00
Andreas Tolfsen 64ff8c0c0e Bug 1245064 - Pass all capabilities to listener; r=automatedtester
MozReview-Commit-ID: 2UgKKAUowM4

--HG--
extra : rebase_source : aae2e03f133b21ab1e65b51aebdec155a2990beb
2016-03-04 18:02:56 +00:00
Andreas Tolfsen 01b20214ee Bug 1245064 - Lower specificationLevel to 0; r=automatedtester
Marionette is not yet compatible with the WebDriver specification, and
we indicate this by lowering the specificationLevel capability to 0.
This lets us "gate" specification-compatible features, such as the new
element interactability algorithm.

The new interactability algorithm can be enabled by requesting the
capability specificationLevel 1.

MozReview-Commit-ID: 6wsEAsBtR6P

--HG--
extra : rebase_source : 3109e0925178ffca5d807a56feabfe66783b38f6
2016-03-04 18:00:17 +00:00
Andreas Tolfsen fcdf164815 Bug 1245064 - Refactor interaction- and accessibility API; r=automatedtester
MozReview-Commit-ID: LblRZz8KqPx

--HG--
extra : rebase_source : 347210842fae698acde760c2733dd8d882a09c25
2016-03-03 13:58:13 +00:00
Andreas Tolfsen 772f8fbb0b Bug 1253248 - Use element.Strategy enum consistently; r=automatedtester
Removes the exported constants from testing/marionette/element.js and
introduces the migrates to using the element.Strategy enum consistently
throughout Marionette.

The supported strategies array passed into ElementManager's ctor has
also received some much needed attention and now actually works.

MozReview-Commit-ID: LPuDX0aishM

--HG--
extra : rebase_source : bb06ea5a25d9a0dbcd6f3e1311d31df95cd4e26d
2016-03-04 12:01:09 +00:00
Andreas Tolfsen 278e4c6847 Bug 1251701 - Store imported scripts in memory; r=jgriffin
This bug is also a dependency for scheduling Mn-e10s tests on Windows 7
(bug 1251351).

MozReview-Commit-ID: 2jE4C99d1MX

--HG--
extra : rebase_source : 96c9fad49538fdadcc8f001aeef5926e82419001
2016-02-29 18:52:30 +00:00
Andrea Marchesini b1768e7ec3 Bug 1245184 - Update mochitests, r=me 2016-02-25 16:41:13 +01:00
Andreas Tolfsen 46bb47edff Bug 1250102 - Employ new element location API; r=automatedtester
MozReview-Commit-ID: K831MhwAT6X

--HG--
extra : rebase_source : 6f3edeb2b42d8168887738ce4863cc8e15bf5d05
2016-02-23 15:19:21 +00:00
Andreas Tolfsen cb2ec4bbdf Bug 1250102 - Correct exported symbol from testing/marionette/element.js; r=automatedtester
MozReview-Commit-ID: 9naIfpy9HPD

--HG--
extra : rebase_source : dc6b96137ed6c378772477cc36687a1655028ae3
2016-02-23 15:01:12 +00:00
Andreas Tolfsen 04268e1ed9 Bug 1242655 - Have ActionChain#dispatchActions return a promise; r=automatedtester
MozReview-Commit-ID: ITqAH4rVsHc

--HG--
extra : rebase_source : 678d4097585bedde7f12b646106a592cf42598d3
2016-02-22 13:18:13 +00:00
Andreas Tolfsen 5e64e255a6 Bug 1245153 - Rename frame-manager.js to frame.js; r=automatedtester
MozReview-Commit-ID: 3s6s2LccFac

--HG--
rename : testing/marionette/frame-manager.js => testing/marionette/frame.js
extra : histedit_source : a956c6f503d49544af1bf0027534826b1a244089
extra : rebase_source : ccea6a57262a6a6d66a65ff392adae142f80472b
extra : commitid : 6oE1Q2AA0Cy
extra : source : 4c2b1902d7cddeb68196b33fc4fa5c7b736c36e9
extra : intermediate-source : f79252e92acc50854e64100a805a0242b10587a9
2016-02-03 19:28:02 +00:00
Andreas Tolfsen fddfa9ac45 Bug 1245153 - Rename actions.js to action.js; r=automatedtester
MozReview-Commit-ID: 58v7aMH2deS

--HG--
rename : testing/marionette/actions.js => testing/marionette/action.js
extra : histedit_source : ffe0d88ffcef11c8faf7fc7f3c3432044847afe4
extra : rebase_source : c4b890c3fbcd6952d1c4a63a321a7cf35c5cd1ee
extra : commitid : CvejXEffZ33
extra : source : 1be5f60393a02b47cc21cccd6cc73f5e5dd9bcc7
extra : intermediate-source : 9f3f1c358e47b0851a2789e627b1e385cfa61410
2016-02-03 19:25:28 +00:00
Andreas Tolfsen b96bf07b7f Bug 1245153 - Rename interactions.js to interaction.js; r=automatedtester
MozReview-Commit-ID: F51ENbkcoR2

--HG--
rename : testing/marionette/interactions.js => testing/marionette/interaction.js
extra : histedit_source : 7269fae81673ad9630ad26e4506f978401c28c3f
extra : rebase_source : d2212a7701857f5a3ea37c400cd7cc49479f6bad
extra : commitid : BW8g2i1Wntt
extra : source : c1e0abbfa66e6289b25e3c6d45867c3b627d33d8
extra : intermediate-source : 6da8099573f3c84ab4361c9987441643488baf5b
2016-02-03 19:15:54 +00:00
Andreas Tolfsen c9fdd91435 Bug 1245153 - Rename elements.js to element.js; r=automatedtester
MozReview-Commit-ID: KAGGXOHMvyM

--HG--
rename : testing/marionette/elements.js => testing/marionette/element.js
extra : histedit_source : d76eb69ad2f5781bcd7a4c0cda4f2f3c6abe840c
extra : rebase_source : d7eb17a424f7c542f0081d4ea938bd461f3583ae
extra : commitid : 77YYJxt23TN
extra : source : 80ae953819c81f7aad1c635311fb0ab5517ca1dd
extra : intermediate-source : 63a56310a1b5593eeec4d546c87c9e9c4c04252d
2016-02-03 19:14:10 +00:00
Andreas Tolfsen 85d23f2052 Bug 1245153 - Remove testing/marionette/atoms; r=automatedtester
MozReview-Commit-ID: 1aeRNnvqmcS

--HG--
rename : testing/marionette/atoms/atoms.js => testing/marionette/atom.js
extra : histedit_source : 3f864808e86d7cafbcb9edee3702f9cc16089b76
extra : rebase_source : 8d80f0505b8b0b3779eb04165c98c72f284ce573
extra : commitid : Ekqmuuhp0pC
extra : source : 3edb67388ad6bbdee9f735b2a99d1999a1af0a46
extra : amend_source : 142a6496da5d8c7edb72b27f27944add2ce0dc8d
extra : intermediate-source : 5fe42d498a2a4511b3d479c4d75b078817f05632
2016-02-03 19:00:46 +00:00
Andreas Tolfsen a683538e91 Bug 1245153 - Employ new modules throughout Marionette; r=automatedtester
This change removes almost all the remaining uses of loadSubScript and
global scope pollution.  The only remaining use is for common.js, which
is resolved by a later bug for evaluating scripts.

MozReview-Commit-ID: 96h0yLElauq

--HG--
extra : histedit_source : 70f70a8aeffef3fca18addfa3fca575a9128e11a
extra : rebase_source : c251c58a7a086c606d3d3941adfeee26ecc49504
extra : commitid : 8XlX4zVZQUN
extra : source : 6bb93562a57656e6cc744c3c901a5ec80f9ec4d8
extra : intermediate-source : ad5bf32d8fef351a0bc4d6249bd16a34aa83f548
2016-02-03 18:56:02 +00:00
Carsten "Tomcat" Book 33e27d2555 Backed out 18 changesets (bug 1245153) for multiple test failures
Backed out changeset 18d54b8d4ae8 (bug 1245153)
Backed out changeset 98b6d0c053c0 (bug 1245153)
Backed out changeset c29a348930a4 (bug 1245153)
Backed out changeset f79252e92acc (bug 1245153)
Backed out changeset 9f3f1c358e47 (bug 1245153)
Backed out changeset 3b9e9a027fa7 (bug 1245153)
Backed out changeset 6da8099573f3 (bug 1245153)
Backed out changeset 63a56310a1b5 (bug 1245153)
Backed out changeset 5fe42d498a2a (bug 1245153)
Backed out changeset b3be2d2f3ac1 (bug 1245153)
Backed out changeset ad5bf32d8fef (bug 1245153)
Backed out changeset 68a6dda373d2 (bug 1245153)
Backed out changeset 6ebd9fde50c0 (bug 1245153)
Backed out changeset e41a5b41859a (bug 1245153)
Backed out changeset 048d70070751 (bug 1245153)
Backed out changeset eff85dc0eaa9 (bug 1245153)
Backed out changeset dc6460e0f336 (bug 1245153)
Backed out changeset 36526a2e8b00 (bug 1245153)

--HG--
rename : testing/marionette/event.js => testing/marionette/EventUtils.js
rename : testing/marionette/action.js => testing/marionette/actions.js
rename : testing/marionette/atom.js => testing/marionette/atoms/atoms.js
rename : testing/marionette/element.js => testing/marionette/elements.js
rename : testing/marionette/frame.js => testing/marionette/frame-manager.js
rename : testing/marionette/interaction.js => testing/marionette/interactions.js
2016-02-11 17:05:41 +01:00
Andreas Tolfsen da4859314b Bug 1245153 - Rename frame-manager.js to frame.js; r=automatedtester
MozReview-Commit-ID: 3s6s2LccFac

--HG--
rename : testing/marionette/frame-manager.js => testing/marionette/frame.js
extra : commitid : 6oE1Q2AA0Cy
extra : rebase_source : 58df4e795ea6a7047930b23f455a03cfa39dfa8e
extra : source : 4c2b1902d7cddeb68196b33fc4fa5c7b736c36e9
extra : histedit_source : a956c6f503d49544af1bf0027534826b1a244089
2016-02-03 19:28:02 +00:00
Andreas Tolfsen fd1a2f3260 Bug 1245153 - Rename actions.js to action.js; r=automatedtester
MozReview-Commit-ID: 58v7aMH2deS

--HG--
rename : testing/marionette/actions.js => testing/marionette/action.js
extra : commitid : CvejXEffZ33
extra : rebase_source : d7cb58bc1a84b4d96e0a011c36f2be22e72fea4b
extra : source : 1be5f60393a02b47cc21cccd6cc73f5e5dd9bcc7
extra : histedit_source : ffe0d88ffcef11c8faf7fc7f3c3432044847afe4
2016-02-03 19:25:28 +00:00
Andreas Tolfsen 8601465556 Bug 1245153 - Rename interactions.js to interaction.js; r=automatedtester
MozReview-Commit-ID: F51ENbkcoR2

--HG--
rename : testing/marionette/interactions.js => testing/marionette/interaction.js
extra : commitid : BW8g2i1Wntt
extra : rebase_source : a8fcc42b45fb2edeeec4fbee97a472fe0300bc66
extra : source : c1e0abbfa66e6289b25e3c6d45867c3b627d33d8
extra : histedit_source : 7269fae81673ad9630ad26e4506f978401c28c3f
2016-02-03 19:15:54 +00:00
Andreas Tolfsen 111c3bc1a1 Bug 1245153 - Rename elements.js to element.js; r=automatedtester
MozReview-Commit-ID: KAGGXOHMvyM

--HG--
rename : testing/marionette/elements.js => testing/marionette/element.js
extra : commitid : 77YYJxt23TN
extra : rebase_source : 9ed6f3e8d0b43e68716c462b83cdd718346b6c16
extra : source : 80ae953819c81f7aad1c635311fb0ab5517ca1dd
extra : histedit_source : d76eb69ad2f5781bcd7a4c0cda4f2f3c6abe840c
2016-02-03 19:14:10 +00:00
Andreas Tolfsen e55d84e08c Bug 1245153 - Remove testing/marionette/atoms; r=automatedtester
MozReview-Commit-ID: 1aeRNnvqmcS

--HG--
rename : testing/marionette/atoms/atoms.js => testing/marionette/atom.js
extra : histedit_source : 3f864808e86d7cafbcb9edee3702f9cc16089b76
extra : rebase_source : 9af66df47570b37b18469940f7efbe7862da5725
extra : commitid : Ekqmuuhp0pC
extra : source : 3edb67388ad6bbdee9f735b2a99d1999a1af0a46
extra : amend_source : 142a6496da5d8c7edb72b27f27944add2ce0dc8d
2016-02-03 19:00:46 +00:00
Andreas Tolfsen 33ab7ed5af Bug 1245153 - Employ new modules throughout Marionette; r=automatedtester
This change removes almost all the remaining uses of loadSubScript and
global scope pollution.  The only remaining use is for common.js, which
is resolved by a later bug for evaluating scripts.

MozReview-Commit-ID: 96h0yLElauq

--HG--
extra : commitid : 8XlX4zVZQUN
extra : rebase_source : a5c8057c7ce0f52dc319f2e9d0937d6a4aab84d4
extra : source : 6bb93562a57656e6cc744c3c901a5ec80f9ec4d8
extra : histedit_source : 70f70a8aeffef3fca18addfa3fca575a9128e11a
2016-02-03 18:56:02 +00:00
Andreas Tolfsen a3530100e4 Bug 1246411 - Constructors must use new keyword; r=automatedtester
MozReview-Commit-ID: 4fl0Cl3mf5j

--HG--
extra : rebase_source : 7b39d94cecf7420aedf51d9e7918d607dab0a828
2016-02-06 18:20:07 +00:00
Andreas Tolfsen 6d10dd54f8 Bug 1246411 - Remove unreachable break statements; r=automatedtester
MozReview-Commit-ID: 7l0OEwIKoHS

--HG--
extra : rebase_source : bc92122f864c04c300cd7df89a5e6c1677f7c9e4
2016-02-06 18:19:46 +00:00
Andreas Tolfsen 2d1370817c Bug 1246411 - Access to properties is better written using dot notation; r=automatedtester
MozReview-Commit-ID: KlmrhB8GKpY

--HG--
extra : rebase_source : ee3a097b7c9f61d0b67a26eea44e60e85399d6de
2016-02-06 18:19:25 +00:00
Andreas Tolfsen 24cf57701c Bug 1246411 - Yield statements must be inside generator functions; r=automatedtester
MozReview-Commit-ID: HHFkvior8gI

--HG--
extra : rebase_source : 4d289bfb3ad2bb41b1b44d7597d84a8b4a34cd46
2016-02-06 18:19:02 +00:00
Carsten "Tomcat" Book d07b3125f8 Backed out 16 changesets (bug 1245153) for mochitest test-bustage on a CLOSED TREE
Backed out changeset 30c8ec933737 (bug 1245153)
Backed out changeset 4c2b1902d7cd (bug 1245153)
Backed out changeset 1be5f60393a0 (bug 1245153)
Backed out changeset 22321e6b65e9 (bug 1245153)
Backed out changeset c1e0abbfa66e (bug 1245153)
Backed out changeset 80ae953819c8 (bug 1245153)
Backed out changeset 3edb67388ad6 (bug 1245153)
Backed out changeset 55f64197f6b5 (bug 1245153)
Backed out changeset 6bb93562a576 (bug 1245153)
Backed out changeset 5da7628c3767 (bug 1245153)
Backed out changeset bd41e4ab829d (bug 1245153)
Backed out changeset ee7ee24cc65e (bug 1245153)
Backed out changeset 4b2a5ee7199e (bug 1245153)
Backed out changeset d75ad1397656 (bug 1245153)
Backed out changeset 1f5e37f8e446 (bug 1245153)
Backed out changeset aec0a0166685 (bug 1245153)

--HG--
rename : testing/marionette/event.js => testing/marionette/EventUtils.js
rename : testing/marionette/action.js => testing/marionette/actions.js
rename : testing/marionette/atom.js => testing/marionette/atoms/atoms.js
rename : testing/marionette/element.js => testing/marionette/elements.js
rename : testing/marionette/frame.js => testing/marionette/frame-manager.js
rename : testing/marionette/interaction.js => testing/marionette/interactions.js
extra : rebase_source : 11bba1116e87ed79fa72f24ff41216a6e3fb00d6
2016-02-05 14:18:19 +01:00
Andreas Tolfsen 2b8a4b3ca1 Bug 1245153 - Rename frame-manager.js to frame.js; r=automatedtester
--HG--
rename : testing/marionette/frame-manager.js => testing/marionette/frame.js
extra : commitid : 6oE1Q2AA0Cy
extra : rebase_source : 3416ffd125751cd5e9bff235daa439e67fd84811
extra : histedit_source : a956c6f503d49544af1bf0027534826b1a244089
2016-02-03 19:28:02 +00:00
Andreas Tolfsen 0c901fb28c Bug 1245153 - Rename actions.js to action.js; r=automatedtester
--HG--
rename : testing/marionette/actions.js => testing/marionette/action.js
extra : commitid : CvejXEffZ33
extra : rebase_source : 36f2508ade5513896a171ab0b8398be8f0fc0c0e
extra : histedit_source : ffe0d88ffcef11c8faf7fc7f3c3432044847afe4
2016-02-03 19:25:28 +00:00
Andreas Tolfsen e08f76bd5b Bug 1245153 - Rename interactions.js to interaction.js; r=automatedtester
--HG--
rename : testing/marionette/interactions.js => testing/marionette/interaction.js
extra : commitid : BW8g2i1Wntt
extra : rebase_source : b9fb3a3f1cd9a9a1cd1e2ffd71d64bef5d2b3e52
extra : histedit_source : 7269fae81673ad9630ad26e4506f978401c28c3f
2016-02-03 19:15:54 +00:00
Andreas Tolfsen 462619ecc4 Bug 1245153 - Rename elements.js to element.js; r=automatedtester
--HG--
rename : testing/marionette/elements.js => testing/marionette/element.js
extra : commitid : 77YYJxt23TN
extra : rebase_source : 987be9441ad296eaf9e4a1624d9af96d496d687d
extra : histedit_source : d76eb69ad2f5781bcd7a4c0cda4f2f3c6abe840c
2016-02-03 19:14:10 +00:00
Andreas Tolfsen c547c09644 Bug 1245153 - Remove testing/marionette/atoms; r=automatedtester
--HG--
rename : testing/marionette/atoms/atoms.js => testing/marionette/atom.js
extra : commitid : Ekqmuuhp0pC
extra : rebase_source : 2de6bdf828d578821006adbf6b79772ec16e0cfa
extra : amend_source : 142a6496da5d8c7edb72b27f27944add2ce0dc8d
extra : histedit_source : 3f864808e86d7cafbcb9edee3702f9cc16089b76
2016-02-03 19:00:46 +00:00
Andreas Tolfsen 0414e11cb2 Bug 1245153 - Employ new modules throughout Marionette; r=automatedtester
This change removes almost all the remaining uses of loadSubScript and
global scope pollution.  The only remaining use is for common.js, which
is resolved by a later bug for evaluating scripts.

--HG--
extra : commitid : 8XlX4zVZQUN
extra : rebase_source : b5420c4ba5298a7e972e7b14a13325bb8ea1a540
extra : histedit_source : 70f70a8aeffef3fca18addfa3fca575a9128e11a
2016-02-03 18:56:02 +00:00
Andreas Tolfsen b6fcf96be2 Bug 1243704 - Serialise errors sent over IPC; r=automatedtester
This fixes an instance of passing an Error prototype over the message
manager as a CPOW.  We solve this by marshaling the error, which is
now done automatically by the new AsyncMessageChannel.  It allows us to
create an (almost) transparent promise-based interface between chrome-
and content contexts.

The patch also makes AsyncMessageChannel reusable on both sides of the
message listener, but it's currently not used at its maximum potential
because of the way the listener is architected.

--HG--
extra : commitid : EQd5E4Digdv
extra : rebase_source : 8e0c36960759d25c73bbbc0f4f0bcb453c1028f4
extra : amend_source : 6bb6a76a8b30a5524639f8236291980b16402e6a
2016-01-29 12:57:46 +00:00
Andreas Tolfsen 257cb763cb Bug 1140542 - Support capturing secondary chrome windows; r=automatedtester
A <window> object may not exist in popup windows that are spawned from
a <window>.  document.documentElement is equivalent to <window> in
the case of the primary window, but lets us support the ChromeWindow's
document when it isn't.

--HG--
extra : commitid : GVJfQ7yGGdV
extra : rebase_source : af351c5bd91eb865c657a2f45479c5b360c50fc6
extra : amend_source : f3ddef37a7f663fcf4f049f13eac3cf94df2ad29
2016-01-27 16:43:33 +00:00
Andreas Tolfsen d34dde504d Bug 1242459 - Replace dump() with logger in actions.js; r=automatedtester
Turns testing/marionette/actions.js into a JS module.

--HG--
extra : commitid : 9H79Czlo1bR
extra : rebase_source : 361ba48bf1e25aff74f919b3f8d6999e3ef76209
extra : amend_source : e3d437eff976a4fd1381d5048e160c0359763d7d
2016-01-27 19:33:48 +00:00
Andreas Tolfsen c2d519ab45 Bug 1153828 - Merge message listeners in AsyncContentSender; r=automatedtester
This change reduces the number of content frame script message senders
from three to one by imposing a message format.

--HG--
extra : rebase_source : 2e2940eb7d095e22a60d3e6f3af44446bb425c93
2016-01-21 19:27:23 +00:00
Andreas Tolfsen 706c27ecab Bug 1240576 - Use Preferences.jsm throughout Marionette; r=automatedtester
A distinct advantage is that try...catch statements are no longer used
to control the flow of code.

--HG--
extra : rebase_source : e3dcadcf9fdfcfe9d227b571b5a830437428762c
extra : source : 2b6d148fd941363e4580137e5d6efc0eebdaf7bd
2016-01-18 22:05:30 +00:00
Wes Kocher 2a163a42fe Backed out changeset f3011bfcf124 (bug 1240576) for b2g xpcshell failures CLOSED TREE
--HG--
extra : commitid : F5140xAcYUE
2016-01-19 18:26:54 -08:00
Andreas Tolfsen f9e4c2678a Bug 1240576 - Use Preferences.jsm throughout Marionette; r=automatedtester
A distinct advantage is that try...catch statements are no longer used
to control the flow of code.

--HG--
extra : rebase_source : 402890020719b04245aa7c601f52752cb43c0666
2016-01-18 22:05:30 +00:00
Yura Zenevich 5132ceb11b Bug 1238744 - centralizing interactions into its own file. r=ato 2016-01-17 12:22:22 -05:00
Andreas Tolfsen 4e12ea70a2 Bug 1204504 - Error on invalid selector; r=automatedtester
Thanks to Alexei Barantsev for reporting.

--HG--
extra : rebase_source : d7af2c1e857dce784bd199b2e27cd6f35604303f
2015-09-17 12:31:39 +01:00
Shaif Chowdhury c13a8ae6ec Bug 1198797 - Centralise creation of UUIDs in Marionette; r=ato
--HG--
extra : commitid : Ea8vtP8SvRy
extra : rebase_source : e08e8708ea9f3f3de5bbee56ac7809efcf924e52
2016-01-14 14:25:46 +00:00
Yura Zenevich c2c8661a70 Bug 1237698 - adding support for switch to frame inside anonymous content. r=automatedtester 2016-01-12 14:14:05 -05:00
Andreas Tolfsen 522c335953 Bug 1221187: testing/marionette: Adjust log levels to match new defaults; r=automatedtester
--HG--
extra : rebase_source : e8abfc0bfed9d74f90ba5f758a74ebbdd4da3605
2016-01-03 17:19:59 +00:00
Andreas Tolfsen 3421774080 Bug 1211489: Provide message sequencing in Marionette
Message sequencing allows Marionette to provide an asynchronous,
parallel pipelining user-facing interface, limit chances of payload
race conditions, and remove stylistic inconsistencies in how commands
and responses are dispatched internally.

Clients that deliver a blocking WebDriver interface are still be expected
to not send further command requests before the response from the last
command has come back, but if they still happen to do so because of
programming error or otherwise, no harm will be done.  This will guard
against bugs such as bug 1207125.

This patch formalises the command and response concepts, and applies
these concepts to emulator callbacks. Through the new message format,
Marionette is able to provide two-way parallel communication.  In other
words, the server will be able to instruct the client to perform a
command in a non ad-hoc way.

runEmulatorCmd and runEmulatorShell are both turned into command
instructions originating from the server.  This resolves a lot of
technical debt in the server code because they are no longer special-cased
to circumvent the dispatching technique used for all other commands;
commands may originate from either the client or the server providing
parallel pipelining enforced through message sequencing:

             client      server
               |            |
    msgid=1    |----------->|
               |  command   |
               |            |
    msgid=2    |<-----------|
               |  command   |
               |            |
    msgid=2    |----------->|
               |  response  |
               |            |
    msgid=1    |<-----------|
               |  response  |
               |            |

The protocol now consists of a "Command" message and the corresponding
"Response" message.  A "Response" message must always be sent in reply
to a "Command" message.

This bumps the Marionette protocol level to 3.

r=dburns
r=jgriffin

--HG--
extra : commitid : 1kz4Oa2q3Un
2015-09-26 17:12:01 +01:00
Andreas Tolfsen c8252d07b4 Bug 1154432: Fix max_length parameter to multiAction command
The Python client sends a `max_length' command parameter to multiAction,
but the Marionette server looks for `max_len'.  This likely a regression
from a refactor.

r=dburns

--HG--
extra : commitid : JoOg9ZjpkhB
extra : rebase_source : 3cc23bcc9934dfcbf4e3029e4876eb573d42296b
2015-11-30 15:20:05 +00:00
Sebastian Hengst 2bc8fc4402 Backed out changeset c2aa06a2ab49 (bug 1211489) for Gij(39) failures. r=backout 2015-11-26 23:47:34 +01:00
Andreas Tolfsen 86bd46756a Bug 1211489: Provide message sequencing in Marionette
Message sequencing allows Marionette to provide an asynchronous,
parallel pipelining user-facing interface, limit chances of payload
race conditions, and remove stylistic inconsistencies in how commands
and responses are dispatched internally.

Clients that deliver a blocking WebDriver interface are still be expected
to not send further command requests before the response from the last
command has come back, but if they still happen to do so because of
programming error or otherwise, no harm will be done.  This will guard
against bugs such as bug 1207125.

This patch formalises the command and response concepts, and applies
these concepts to emulator callbacks. Through the new message format,
Marionette is able to provide two-way parallel communication.  In other
words, the server will be able to instruct the client to perform a
command in a non ad-hoc way.

runEmulatorCmd and runEmulatorShell are both turned into command
instructions originating from the server.  This resolves a lot of
technical debt in the server code because they are no longer special-cased
to circumvent the dispatching technique used for all other commands;
commands may originate from either the client or the server providing
parallel pipelining enforced through message sequencing:

             client      server
               |            |
    msgid=1    |----------->|
               |  command   |
               |            |
    msgid=2    |<-----------|
               |  command   |
               |            |
    msgid=2    |----------->|
               |  response  |
               |            |
    msgid=1    |<-----------|
               |  response  |
               |            |

The protocol now consists of a "Command" message and the corresponding
"Response" message.  A "Response" message must always be sent in reply
to a "Command" message.

This bumps the Marionette protocol level to 3.

r=dburns
r=jgriffin

--HG--
extra : commitid : 2upWRuXyqPF
extra : rebase_source : f384801e209e4b49ef57055fd550c3c435ece4ef
2015-09-26 17:12:01 +01:00
Andreas Tolfsen 3ddc4dcff5 Bug 1223907: Refactor cookies in Marionette
Moves most of the cookie implementation to a new file,
testing/marionette/cookies.js.  The new Cookies class encapsulates all
APIs for manipulating and querying cookies from content space.

It communicates with chrome space, where the cookie manager lives, through
a new SyncContentSender provided by testing/marionette/proxy.js.  This new
interface provides synchronous and transparent communication from content
to chrome, not dissimilar from how the original listener proxy works.

r=dburns

--HG--
extra : commitid : 7jF7OFSx4Yk
extra : rebase_source : 8fc73fb59196f8076e85673d002c42e2ae458ad0
2015-11-13 13:35:22 +00:00
Andreas Tolfsen 853e5f05ba Bug 1201050: Part 4: Pass value directly back to chrome space
r=ato

--HG--
extra : commitid : KhzPrcieDpE
extra : rebase_source : 56de2819edfb8539a83406ae5fcc285d543b9282
2015-11-26 14:31:45 +00:00
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