Commit Graph

2611 Commits

Author SHA1 Message Date
Maja Frydrychowicz
84b2b0814a Bug 1367430 - Set modifier-key properties for mouse action; r=ato
When synthesizing a MouseEvent for the performActions command,
set shiftKey, ctrlKey, etc., based on inputStateMap.

MozReview-Commit-ID: Knw3gxuAcSB

--HG--
extra : source : afcfa17be8acdd3d1b88b2bf8d6deffb53c52af1
2017-05-24 16:42:04 +02:00
Carsten "Tomcat" Book
dc95c2f7ad Backed out changeset afcfa17be8ac (bug 1367430) for making bug 1365021 worse
--HG--
extra : rebase_source : e655ab964901f8fa3c4993ccf46b1c812b3957e7
2017-06-07 13:21:05 +02:00
David Burns
1b71e9f3bb Bug 1368674 - Remove B2G Permissionis handling from Marionette. r=ato
The Permissions API was used extensively during B2G to make sure the
state of the browser and permissions for APIs were in the relevant
state. This code is no longer used and can be removed.

MozReview-Commit-ID: HgcQe3GEd09

--HG--
extra : rebase_source : 08187e93b6729faae8a1913573d57add752dbb46
2017-06-06 13:55:23 +01:00
David Burns
21aac9bd4d Bug 1368674 - Remove setTestName functionality from Marionette r=whimboo
setTestName was used for logging which test was being run for the
JS Tests used in B2G.

MozReview-Commit-ID: FNF4Sm7vAYM

--HG--
extra : rebase_source : cbb6667bb0d8be65c34c6e84b70caf21c6b3c34d
2017-05-30 16:28:36 +01:00
David Burns
d83f55e070 Bug 1368674 - Remove JS Test support in Marionette Harness r=maja_zf
MozReview-Commit-ID: 11Zc7KL3djD

--HG--
extra : rebase_source : de8274b3948abcbe0e0aa404dad9b02b87b9119f
2017-05-30 15:07:19 +01:00
David Burns
db1c923084 Bug 1368674 - Remove simpleTest functionality from Marionette. r=whimboo
This is a remanent of the B2G code for injecting Mochitest style tests
into Gecko. This is no longer used by anything and is now dead code.

MozReview-Commit-ID: 4qaB3vxQzon

--HG--
extra : rebase_source : 7297648ed73faf326dc98f9c26604a447d658beb
2017-05-30 13:51:02 +01:00
Maja Frydrychowicz
149cdbbd02 Bug 1367430 - Set modifier-key properties for mouse action; r=ato
When synthesizing a MouseEvent for the performActions command,
set shiftKey, ctrlKey, etc., based on inputStateMap.

MozReview-Commit-ID: Knw3gxuAcSB

--HG--
extra : rebase_source : 499f6987fbc237662c925c7fedc83611e4de148b
2017-05-24 16:42:04 +02:00
Brendan Dahl
3491e1213b Bug 1294075 - Disable marionette accessibility test on headless. 2017-06-06 09:45:38 -07:00
Jessica Jong
62de86ac19 Bug 1369413 - Remove the use of const INPUT_DATETIME_PREF. r=ato
MozReview-Commit-ID: 5Orzh1X7Ln2

--HG--
extra : amend_source : 5bf1aefca05bebe08cbca5cc4c2da0fe8d3c3130
2017-06-02 02:52:00 -04:00
Dão Gottwald
8a952aed25 Bug 1367076 - Set datareporting.policy.firstRunURL by default to replace data choices infobar with privacy policy in a background tab on first run. r=Gijs
MozReview-Commit-ID: 9r5el0I2HrA

--HG--
extra : rebase_source : d5bc0f8a5dea60d4d3bbaaf5332d8f022693d381
2017-05-31 13:48:06 +02:00
Florian Quèze
bb8b90d00e Bug 1369700 - Delay initialization of marionette.js until delayed startup and startup tests are finished, r=ato.
Before this patch, marionette.js starts its initialization right after receiving the "sessionstore-windows-restored" notification.
This is unfortunate for the browser_startup.js browser chrome mochitest added in bug 1358798, because it causes lots of marionette file to appear to be loaded before the browser is ready to handle user events.
2017-06-02 22:08:21 +02:00
Ryan VanderMeulen
17e61d02f4 Backed out 3 changesets (bug 1368674) for Android test failures. a=merge
Backed out changeset ff3c813fcdea (bug 1368674)
Backed out changeset 0d9bb636b9a9 (bug 1368674)
Backed out changeset 1d0202706572 (bug 1368674)

MozReview-Commit-ID: CrCFYIEDH4o

--HG--
extra : source : bf5e8ffae40db7b2c2afcb1851fb8eb80b98e5b6
2017-06-01 19:21:31 -04:00
David Burns
5fe3dc363a Bug 1368674 - Remove setTestName functionality from Marionette r=whimboo
setTestName was used for logging which test was being run for the
JS Tests used in B2G.

MozReview-Commit-ID: FNF4Sm7vAYM

--HG--
extra : rebase_source : b12fd8ce04e7da739a8a5ec0e7b30b6734c58e4a
2017-05-30 16:28:36 +01:00
David Burns
dd5ef53ea6 Bug 1368674 - Remove JS Test support in Marionette Harness r=maja_zf
MozReview-Commit-ID: 11Zc7KL3djD

--HG--
extra : rebase_source : 2f0d9995b5ba40e5338fe458395d15abf7704825
2017-05-30 15:07:19 +01:00
David Burns
8cb144921e Bug 1368674 - Remove simpleTest functionality from Marionette. r=whimboo
This is a remanent of the B2G code for injecting Mochitest style tests
into Gecko. This is no longer used by anything and is now dead code.

MozReview-Commit-ID: 4qaB3vxQzon

--HG--
extra : rebase_source : 3af2c7655ecd2d03f266d0a1ad02eadfea1b1a0b
2017-05-30 13:51:02 +01:00
Ryan VanderMeulen
e36ce0e346 Backed out 3 changesets (bug 1368674) for flake8 failures.
Backed out changeset 9aa183c8533e (bug 1368674)
Backed out changeset 837ccbc38bfc (bug 1368674)
Backed out changeset 7f4f851da483 (bug 1368674)
2017-06-01 16:54:10 -04:00
David Burns
06b3c56c83 Bug 1368674 - Remove setTestName functionality from Marionette r=whimboo
setTestName was used for logging which test was being run for the
JS Tests used in B2G.

MozReview-Commit-ID: FNF4Sm7vAYM

--HG--
extra : rebase_source : 6ad739d2ff9bf3d6bafaed0450c8794a257657e7
2017-05-30 16:28:36 +01:00
David Burns
69ac306da8 Bug 1368674 - Remove JS Test support in Marionette Harness r=maja_zf
MozReview-Commit-ID: 11Zc7KL3djD

--HG--
extra : rebase_source : 7c8f78df2e6aa402cacf04819c03abb3381815f2
2017-05-30 15:07:19 +01:00
David Burns
58b95498e0 Bug 1368674 - Remove simpleTest functionality from Marionette. r=whimboo
This is a remanent of the B2G code for injecting Mochitest style tests
into Gecko. This is no longer used by anything and is now dead code.

MozReview-Commit-ID: 4qaB3vxQzon

--HG--
extra : rebase_source : b4b7e66452b7ce7335ef5f509957121f403d7043
2017-05-30 13:51:02 +01:00
Jessica Jong
efe6bfa010 Bug 1366188 - Part 1: Fix Marionette's DateTimeValue when dom.forms.datetime is enabled. r=ato
When we enable "dom.forms.datetime", <input type=date> and <input type=time>
are displayed as multi-field text box, where the fields are ordered depending
on locale. To avoid too much overhead, instead of synthesising each key event,
we set the element's value property and fire the corresponding events to
emulate user interaction.

MozReview-Commit-ID: Ao6ip61CNT6

--HG--
extra : rebase_source : f03d9c5d2e2540e6c2189b542d9270be5fb63919
2017-05-30 23:37:00 +02:00
Brendan Dahl
c2eeb53896 Bug 1367227 - Part 2 - Trigger fullscreen the same way Firefox does. r=ato 2017-05-31 16:29:20 -07:00
David Burns
fa48a67c05 Bug 1368648: Remove importScript functionality from Marionette r=ato
This removes importScript functionality that was used extensively for
B2G testing but is no longer used in tree.

MozReview-Commit-ID: 1O7GWCZPWRZ

--HG--
extra : rebase_source : dc57710690116d9f473271f88f43f298590e895e
2017-05-30 11:25:14 +01:00
Henrik Skupin
37b8ffef76 Bug 1368526 - Wait for the page to be loaded in a newly opened tab/window. r=ato
If a web page gets opened in a new tab or window, there is no way for
the navigate command to check the current page load status. Instead
we have to wait until the correct URL is getting reported.

MozReview-Commit-ID: JQhPXRgh5Ae

--HG--
extra : rebase_source : 9b60d62af5d4cec2c1a693e152510807165755ba
2017-05-30 11:25:21 +02:00
Henrik Skupin
2d096423ea Bug 1368101 - getCurrentUrl can retrieve the URL via the chrome process. r=ato
There is no reason for the command to call into the content framescript.
It's only adding overhead and can currently cause hangs if the framescript
gets reloaded.

Instead use the content browser which is always aware of the current URL.

MozReview-Commit-ID: 9Ui7qClFEWJ

--HG--
extra : rebase_source : e428e71ddb66e0152d164f2aebd20efb0593ceec
2017-05-26 20:37:36 +02:00
David Burns
8f530fdf8b Bug 1179335: Remove unused Marionette mouse scroll functions; r=whimboo
The underlying code that this method calls from nsIDOMWindowUtils
was removed and has not caused issues in here. This is dead code.

MozReview-Commit-ID: K245et5SmxJ

--HG--
extra : rebase_source : f5345219b9e9ae9299a1884c3424f2d8bfdf3d20
2017-05-29 13:57:05 +01:00
Ryan VanderMeulen
e128706d91 Bug 1367227 - Fix incorrect syntax. r=me 2017-05-23 18:51:05 -04:00
Ryan VanderMeulen
702559b3ad Bug 1367227 - Disable Marionette window rect tests in headless mode. r=bdahl 2017-05-23 18:08:23 -04:00
David Burns
9eca7f9f6b Bug 1367227: Disable Marionette window maximize tests in headless mode; r=bdahl
MozReview-Commit-ID: Eq2AKMfMYCs

--HG--
extra : rebase_source : 17cf56de1728bcce12c3aad6f5df33e6f8438188
2017-05-23 22:23:02 +01:00
David Burns
c4d8c565b3 Bug 1364594: Exit fullscreen when Set Window Rect is invoked. r=ato
If the browser is in fullscreen mode and Set Window Rect is called
we need to exit fullscreen mode and then continue to manipulate the
browser.

As described in https://w3c.github.io/webdriver/webdriver-spec.html#set-window-rect
Step 10

MozReview-Commit-ID: 5ixhGOXVBE4

--HG--
extra : rebase_source : be2b8b6da5cf78c6263502a6cb422e2de81c742d
2017-05-22 21:54:26 +01:00
Sebastian Hengst
e399d29e1d Backed out changeset 8cc336b9806d (bug 1364594) for almost permafailing Marionette-headless in either test_window_maximize.py TestWindowMaximize.test_maximize or test_window_rect.py TestSize.test_resize_while_fullscreen. r=backout 2017-05-23 13:26:27 +02:00
David Burns
8a1ed5912e Bug 1364594: Exit fullscreen when Set Window Rect is invoked. r=ato
If the browser is in fullscreen mode and Set Window Rect is called
we need to exit fullscreen mode and then continue to manipulate the
browser.

As described in https://w3c.github.io/webdriver/webdriver-spec.html#set-window-rect
Step 10

MozReview-Commit-ID: 5ixhGOXVBE4

--HG--
extra : rebase_source : be2b8b6da5cf78c6263502a6cb422e2de81c742d
2017-05-22 21:54:26 +01:00
Ryan VanderMeulen
9f0c23d7c6 Merge m-c to inbound. a=merge 2017-05-19 12:25:23 -04:00
Ryan VanderMeulen
5cf1e66fd8 Backed out changeset 99ed53cfebd6 (bug 1298803) for causing Windows Marionette hangs. 2017-05-19 12:23:10 -04:00
Ryan VanderMeulen
acb2f518fc Merge inbound to m-c. a=merge 2017-05-19 11:46:56 -04:00
Henrik Skupin
835de452c2 Bug 1341493 - "Intermittent test_accessibility.py TestAccessibility.test_element_visible_but_not_visible_to_accessbility | AssertionError: ElementNotAccessibleException not raised" []. r=me 2017-05-19 01:40:00 +08:00
Francois Marier
39b6d88744 Bug 1364959 - Clean up Safe Browsing preferences in tests. r=dimi
Remove the forbiddenURI pref which was removed in bug 1274893 as well
as browser.safebrowsing.enabled which got renamed in bug 1025965.

Set dummy URLs for all of the network endpoints.

MozReview-Commit-ID: Efk2fv6cC3g

--HG--
extra : rebase_source : 9fbb3eb0fa7f002fe24577a8a0870ec4d1b7cf31
2017-05-18 16:18:59 -07:00
Sebastian Hengst
88f80f3cdf Backed out changeset 515c3f15cf30 (bug 1364594) for failing test_window_maximize.py TestWindowMaximize.test_maximize on Linux. r=backout 2017-05-18 23:38:30 +02:00
David Burns
8e371b7fb3 Bug 1364594: Exit fullscreen when Set Window Rect is invoked. r=ato
If the browser is in fullscreen mode and Set Window Rect is called
we need to exit fullscreen mode and then continue to manipulate the
browser.

As described in https://w3c.github.io/webdriver/webdriver-spec.html#set-window-rect
Step 10

MozReview-Commit-ID: 5ixhGOXVBE4

--HG--
extra : rebase_source : 8502233bc79452df4755dea08b04ab6423cf91ed
2017-05-18 09:23:08 +01:00
Wes Kocher
0a5ec26ac6 Merge inbound to central, a=merge
UPGRADE_NSS_RELEASE

MozReview-Commit-ID: 9BuuGYyJ3RJ

--HG--
extra : amend_source : 57de84460e0ace13892ff1623451b9b9be8eaeeb
2017-05-17 14:48:30 -07:00
Geoff Brown
d844ac12ec Bug 1364228 - Increase marionette startup timeout for Linux mochitests; r=ato
Our linux32-debug build is very slow to startup when running mochitests on aws.
Sometimes we see similar behavior on other linux platforms. Intermittently,
in this environment, startup takes longer than the 120 seconds that marionette
waits, resulting in test failures in bug 1261598. Increasing the marionette
startup timeout to 180 seconds appears to effectively avoid these failures.
2017-05-17 10:30:32 -06:00
Sebastian Hengst
d9fe1a9412 Backed out changeset d58fda39820b (bug 1364594) for failing Marionette's test_window_maximize.py TestWindowMaximize.test_maximize on Windows 8 x64. r=backout 2017-05-17 17:54:47 +02:00
David Burns
a83b408222 Bug 1364594: Exit fullscreen when Set Window Rect is invoked. r=ato
If the browser is in fullscreen mode and Set Window Rect is called
we need to exit fullscreen mode and then continue to manipulate the
browser.

As described in https://w3c.github.io/webdriver/webdriver-spec.html#set-window-rect
Step 10

MozReview-Commit-ID: 5ixhGOXVBE4

--HG--
extra : rebase_source : 984fd3f38c45cbbb1eaae35bd6dea17842bbc6a3
2017-05-16 12:38:11 +01:00
CuriousLearner
749f6ddade Bug 1298803 - Add test to quit Firefox via a shortcut; r=whimboo
MozReview-Commit-ID: 9z1u0gWj1Wf

--HG--
extra : rebase_source : 2be4e270068a03647fb3d48976006a6c3760042e
2017-05-11 22:09:36 +05:30
Andreas Tolfsen
92b7eebd99 Bug 1355890 - Infer identity box background-color by computed style r=maja_zf
The test for getting a CSS value off a chrome element relied on a
hardcoded expectation value.  To reduce future maintenance, it is better
to get the computed style value and compare it against what Marionette
returns.

MozReview-Commit-ID: 3FbPHGqNEpK

--HG--
extra : rebase_source : 91c0fe0e387152f4c8de1e21c5bda64108249e36
2017-05-15 19:22:13 +01:00
Andreas Tolfsen
81bcde8994 Bug 1355890 - Add remote-active system notification r=automatedtester,Gijs
Adds a new system notification, "remote-active", which fires
when the Marionette remote protocol becomes active.

MozReview-Commit-ID: 3Parr82Ch6I

--HG--
extra : rebase_source : 08e2388a067b1decdd6fb62ebef97798d4227faf
2017-04-27 23:18:26 +01:00
Andreas Tolfsen
f71bcb075c Bug 1355890 - Add Marionette XPCOM interface r=maja_zf
This adds a minimal XPCOM interface to access Marionette as a service.
All it does for now is to expose whether the Marionette server is
running, which will report true when the TCP listener socket is open and
false otherwise.

This will be used in browser/base/content/browser.js to determine
whether or not to add a visual UX cue on newly started <xul:browser>s.

MozReview-Commit-ID: 4Q9Oy2B9GQ1

--HG--
extra : rebase_source : 350fc1281ff2aa58e8c0ec1566c55f033878e850
2017-05-12 18:13:25 +01:00
Andreas Tolfsen
4bf3b11bc0 Bug 1355890 - Namespace Marionette component r=automatedtester
The Marionette XPCOM component is currently called
@mozilla.org/marionette;1, but this change namespaces it under
@mozilla.org/remote/marionette;1 to indicate that it is a remote
protocol because not everyone will understand what that the own-name
"Marionette" means.

MozReview-Commit-ID: HwqAghsWA5W

--HG--
extra : rebase_source : 411c79cf201870a486cf5086e42a00a59d210c83
2017-05-12 18:14:38 +01:00
Henrik Skupin
67c8a43439 Bug 1361837 - Update restart unit tests to not activate sessionrestore. r=ato
The restart unit tests were using the preference browser.startup.page
with its value set to 3. This actually causes sessionrestore to restore
the session during the next startup. Given that there is a race condition
in retrieving window handles (bug 1363368) it's better to use another
default preference which does not trigger this behavior.

MozReview-Commit-ID: 4m7qHxgI504

--HG--
extra : rebase_source : d5e29c0357dfcbe8395681f57000a7a1db769178
2017-05-16 07:55:50 +02:00
Henrik Skupin
1a3fbd0f29 Bug 1364245 - Extend delay for slow loading resource testcase to prevent intermittent. r=ato
For debug builds a delay of 1s is too short. It means that a navigation
command will return when the readyState reaches interactive for an eager
page load strategy. Also due to the slowness of the browser, the getUrl
command which gets run before the readyState check takes too long. Doing
the latter check first fixes it.

MozReview-Commit-ID: D2je04Euwf0

--HG--
extra : rebase_source : 0708fcc1eb5b7198fa45ab995de404db34b64968
2017-05-12 11:44:17 +02:00
tiago
99db7d58be Bug 1364211 - Correct variable scope in TestSize class for start_size variable. r=automatedtester
MozReview-Commit-ID: DvzhvrbsgS6

--HG--
extra : rebase_source : 0ec619f2e702c16a3b50d39bfbd8a5d1156a8fa3
2017-05-14 21:05:12 -03:00