Commit Graph

3048 Commits

Author SHA1 Message Date
Andreas Tolfsen
2d16d4aa1f Bug 1405757 - Generate Marionette API docs to testing/marionette/doc/api. r=me
DONTBUILD

MozReview-Commit-ID: L3omU5NDVDh
2017-10-04 18:35:12 +01:00
Andreas Tolfsen
0298786e96 Bug 1405757 - Move Marionette API docs to subdirectory. r=me
DONTBUILD

MozReview-Commit-ID: HNO9CsRoQLo


--HG--
rename : testing/marionette/doc/AsyncChromeSender.html => testing/marionette/doc/api/AsyncChromeSender.html
rename : testing/marionette/doc/Command.html => testing/marionette/doc/api/Command.html
rename : testing/marionette/doc/DebuggerTransport.html => testing/marionette/doc/api/DebuggerTransport.html
rename : testing/marionette/doc/ElementClickInterceptedError.html => testing/marionette/doc/api/ElementClickInterceptedError.html
rename : testing/marionette/doc/ElementNotAccessibleError.html => testing/marionette/doc/api/ElementNotAccessibleError.html
rename : testing/marionette/doc/ElementNotInteractableError.html => testing/marionette/doc/api/ElementNotInteractableError.html
rename : testing/marionette/doc/GeckoDriver.html => testing/marionette/doc/api/GeckoDriver.html
rename : testing/marionette/doc/InputState.html => testing/marionette/doc/api/InputState.html
rename : testing/marionette/doc/InsecureCertificateError.html => testing/marionette/doc/api/InsecureCertificateError.html
rename : testing/marionette/doc/InvalidArgumentError.html => testing/marionette/doc/api/InvalidArgumentError.html
rename : testing/marionette/doc/JavaScriptError.html => testing/marionette/doc/api/JavaScriptError.html
rename : testing/marionette/doc/Message.html => testing/marionette/doc/api/Message.html
rename : testing/marionette/doc/Packet.html => testing/marionette/doc/api/Packet.html
rename : testing/marionette/doc/Response.html => testing/marionette/doc/api/Response.html
rename : testing/marionette/doc/StreamCopier.html => testing/marionette/doc/api/StreamCopier.html
rename : testing/marionette/doc/WebDriverError.html => testing/marionette/doc/api/WebDriverError.html
rename : testing/marionette/doc/accessibility.Checks.html => testing/marionette/doc/api/accessibility.Checks.html
rename : testing/marionette/doc/accessibility.html => testing/marionette/doc/api/accessibility.html
rename : testing/marionette/doc/accessibility.js.html => testing/marionette/doc/api/accessibility.js.html
rename : testing/marionette/doc/action.Action.html => testing/marionette/doc/api/action.Action.html
rename : testing/marionette/doc/action.InputState.Key.html => testing/marionette/doc/api/action.InputState.Key.html
rename : testing/marionette/doc/action.InputState.Null.html => testing/marionette/doc/api/action.InputState.Null.html
rename : testing/marionette/doc/action.InputState.Pointer.html => testing/marionette/doc/api/action.InputState.Pointer.html
rename : testing/marionette/doc/action.Key.html => testing/marionette/doc/api/action.Key.html
rename : testing/marionette/doc/action.Mouse.html => testing/marionette/doc/api/action.Mouse.html
rename : testing/marionette/doc/action.PointerParameters.html => testing/marionette/doc/api/action.PointerParameters.html
rename : testing/marionette/doc/action.Sequence.html => testing/marionette/doc/api/action.Sequence.html
rename : testing/marionette/doc/action.html => testing/marionette/doc/api/action.html
rename : testing/marionette/doc/action.html#.Chain => testing/marionette/doc/api/action.html#.Chain
rename : testing/marionette/doc/action.js.html => testing/marionette/doc/api/action.js.html
rename : testing/marionette/doc/addon.html => testing/marionette/doc/api/addon.html
rename : testing/marionette/doc/addon.js.html => testing/marionette/doc/api/addon.js.html
rename : testing/marionette/doc/assert.html => testing/marionette/doc/api/assert.html
rename : testing/marionette/doc/assert.js.html => testing/marionette/doc/api/assert.js.html
rename : testing/marionette/doc/atom.html => testing/marionette/doc/api/atom.html
rename : testing/marionette/doc/atom.js.html => testing/marionette/doc/api/atom.js.html
rename : testing/marionette/doc/browser.Context.html => testing/marionette/doc/api/browser.Context.html
rename : testing/marionette/doc/browser.Windows.html => testing/marionette/doc/api/browser.Windows.html
rename : testing/marionette/doc/browser.html => testing/marionette/doc/api/browser.html
rename : testing/marionette/doc/browser.js.html => testing/marionette/doc/api/browser.js.html
rename : testing/marionette/doc/capture.html => testing/marionette/doc/api/capture.html
rename : testing/marionette/doc/capture.js.html => testing/marionette/doc/api/capture.js.html
rename : testing/marionette/doc/cert.html => testing/marionette/doc/api/cert.html
rename : testing/marionette/doc/cert.js.html => testing/marionette/doc/api/cert.js.html
rename : testing/marionette/doc/cookie.html => testing/marionette/doc/api/cookie.html
rename : testing/marionette/doc/cookie.js.html => testing/marionette/doc/api/cookie.js.html
rename : testing/marionette/doc/driver.html => testing/marionette/doc/api/driver.html
rename : testing/marionette/doc/driver.js.html => testing/marionette/doc/api/driver.js.html
rename : testing/marionette/doc/element.Store.html => testing/marionette/doc/api/element.Store.html
rename : testing/marionette/doc/element.html => testing/marionette/doc/api/element.html
rename : testing/marionette/doc/element.js.html => testing/marionette/doc/api/element.js.html
rename : testing/marionette/doc/error.html => testing/marionette/doc/api/error.html
rename : testing/marionette/doc/error.js.html => testing/marionette/doc/api/error.js.html
rename : testing/marionette/doc/evaluate.html => testing/marionette/doc/api/evaluate.html
rename : testing/marionette/doc/evaluate.js.html => testing/marionette/doc/api/evaluate.js.html
rename : testing/marionette/doc/evaluate.this.Sandboxes.html => testing/marionette/doc/api/evaluate.this.Sandboxes.html
rename : testing/marionette/doc/event.js.html => testing/marionette/doc/api/event.js.html
rename : testing/marionette/doc/fonts/OpenSans-Bold-webfont.eot => testing/marionette/doc/api/fonts/OpenSans-Bold-webfont.eot
rename : testing/marionette/doc/fonts/OpenSans-Bold-webfont.svg => testing/marionette/doc/api/fonts/OpenSans-Bold-webfont.svg
rename : testing/marionette/doc/fonts/OpenSans-Bold-webfont.woff => testing/marionette/doc/api/fonts/OpenSans-Bold-webfont.woff
rename : testing/marionette/doc/fonts/OpenSans-BoldItalic-webfont.eot => testing/marionette/doc/api/fonts/OpenSans-BoldItalic-webfont.eot
rename : testing/marionette/doc/fonts/OpenSans-BoldItalic-webfont.svg => testing/marionette/doc/api/fonts/OpenSans-BoldItalic-webfont.svg
rename : testing/marionette/doc/fonts/OpenSans-BoldItalic-webfont.woff => testing/marionette/doc/api/fonts/OpenSans-BoldItalic-webfont.woff
rename : testing/marionette/doc/fonts/OpenSans-Italic-webfont.eot => testing/marionette/doc/api/fonts/OpenSans-Italic-webfont.eot
rename : testing/marionette/doc/fonts/OpenSans-Italic-webfont.svg => testing/marionette/doc/api/fonts/OpenSans-Italic-webfont.svg
rename : testing/marionette/doc/fonts/OpenSans-Italic-webfont.woff => testing/marionette/doc/api/fonts/OpenSans-Italic-webfont.woff
rename : testing/marionette/doc/fonts/OpenSans-Light-webfont.eot => testing/marionette/doc/api/fonts/OpenSans-Light-webfont.eot
rename : testing/marionette/doc/fonts/OpenSans-Light-webfont.svg => testing/marionette/doc/api/fonts/OpenSans-Light-webfont.svg
rename : testing/marionette/doc/fonts/OpenSans-Light-webfont.woff => testing/marionette/doc/api/fonts/OpenSans-Light-webfont.woff
rename : testing/marionette/doc/fonts/OpenSans-LightItalic-webfont.eot => testing/marionette/doc/api/fonts/OpenSans-LightItalic-webfont.eot
rename : testing/marionette/doc/fonts/OpenSans-LightItalic-webfont.svg => testing/marionette/doc/api/fonts/OpenSans-LightItalic-webfont.svg
rename : testing/marionette/doc/fonts/OpenSans-LightItalic-webfont.woff => testing/marionette/doc/api/fonts/OpenSans-LightItalic-webfont.woff
rename : testing/marionette/doc/fonts/OpenSans-Regular-webfont.eot => testing/marionette/doc/api/fonts/OpenSans-Regular-webfont.eot
rename : testing/marionette/doc/fonts/OpenSans-Regular-webfont.svg => testing/marionette/doc/api/fonts/OpenSans-Regular-webfont.svg
rename : testing/marionette/doc/fonts/OpenSans-Regular-webfont.woff => testing/marionette/doc/api/fonts/OpenSans-Regular-webfont.woff
rename : testing/marionette/doc/frame.Manager.html => testing/marionette/doc/api/frame.Manager.html
rename : testing/marionette/doc/frame.html => testing/marionette/doc/api/frame.html
rename : testing/marionette/doc/frame.js.html => testing/marionette/doc/api/frame.js.html
rename : testing/marionette/doc/global.html => testing/marionette/doc/api/global.html
rename : testing/marionette/doc/global.html#event => testing/marionette/doc/api/global.html#event
rename : testing/marionette/doc/index.html => testing/marionette/doc/api/index.html
rename : testing/marionette/doc/interaction.html => testing/marionette/doc/api/interaction.html
rename : testing/marionette/doc/interaction.js.html => testing/marionette/doc/api/interaction.js.html
rename : testing/marionette/doc/l10n.html => testing/marionette/doc/api/l10n.html
rename : testing/marionette/doc/l10n.js.html => testing/marionette/doc/api/l10n.js.html
rename : testing/marionette/doc/legacyaction.html => testing/marionette/doc/api/legacyaction.html
rename : testing/marionette/doc/legacyaction.js.html => testing/marionette/doc/api/legacyaction.js.html
rename : testing/marionette/doc/listener.js.html => testing/marionette/doc/api/listener.js.html
rename : testing/marionette/doc/message.js.html => testing/marionette/doc/api/message.js.html
rename : testing/marionette/doc/modal.Dialog.html => testing/marionette/doc/api/modal.Dialog.html
rename : testing/marionette/doc/modal.html => testing/marionette/doc/api/modal.html
rename : testing/marionette/doc/modal.js.html => testing/marionette/doc/api/modal.js.html
rename : testing/marionette/doc/navigate.html => testing/marionette/doc/api/navigate.html
rename : testing/marionette/doc/navigate.js.html => testing/marionette/doc/api/navigate.js.html
rename : testing/marionette/doc/packets.js.html => testing/marionette/doc/api/packets.js.html
rename : testing/marionette/doc/proxy.AsyncMessageChannel.html => testing/marionette/doc/api/proxy.AsyncMessageChannel.html
rename : testing/marionette/doc/proxy.SyncChromeSender.html => testing/marionette/doc/api/proxy.SyncChromeSender.html
rename : testing/marionette/doc/proxy.html => testing/marionette/doc/api/proxy.html
rename : testing/marionette/doc/proxy.js.html => testing/marionette/doc/api/proxy.js.html
rename : testing/marionette/doc/reftest.Runner.html => testing/marionette/doc/api/reftest.Runner.html
rename : testing/marionette/doc/reftest.html => testing/marionette/doc/api/reftest.html
rename : testing/marionette/doc/reftest.js.html => testing/marionette/doc/api/reftest.js.html
rename : testing/marionette/doc/scripts/linenumber.js => testing/marionette/doc/api/scripts/linenumber.js
rename : testing/marionette/doc/scripts/prettify/Apache-License-2.0.txt => testing/marionette/doc/api/scripts/prettify/Apache-License-2.0.txt
rename : testing/marionette/doc/scripts/prettify/lang-css.js => testing/marionette/doc/api/scripts/prettify/lang-css.js
rename : testing/marionette/doc/scripts/prettify/prettify.js => testing/marionette/doc/api/scripts/prettify/prettify.js
rename : testing/marionette/doc/server.TCPConnection.html => testing/marionette/doc/api/server.TCPConnection.html
rename : testing/marionette/doc/server.TCPListener.html => testing/marionette/doc/api/server.TCPListener.html
rename : testing/marionette/doc/server.html => testing/marionette/doc/api/server.html
rename : testing/marionette/doc/server.js.html => testing/marionette/doc/api/server.js.html
rename : testing/marionette/doc/session.Capabilities.html => testing/marionette/doc/api/session.Capabilities.html
rename : testing/marionette/doc/session.Proxy.html => testing/marionette/doc/api/session.Proxy.html
rename : testing/marionette/doc/session.Timeouts.html => testing/marionette/doc/api/session.Timeouts.html
rename : testing/marionette/doc/session.html => testing/marionette/doc/api/session.html
rename : testing/marionette/doc/session.js.html => testing/marionette/doc/api/session.js.html
rename : testing/marionette/doc/stream-utils.js.html => testing/marionette/doc/api/stream-utils.js.html
rename : testing/marionette/doc/styles/jsdoc-default.css => testing/marionette/doc/api/styles/jsdoc-default.css
rename : testing/marionette/doc/styles/prettify-jsdoc.css => testing/marionette/doc/api/styles/prettify-jsdoc.css
rename : testing/marionette/doc/styles/prettify-tomorrow.css => testing/marionette/doc/api/styles/prettify-tomorrow.css
rename : testing/marionette/doc/transport.js.html => testing/marionette/doc/api/transport.js.html
rename : testing/marionette/doc/wait.html => testing/marionette/doc/api/wait.html
rename : testing/marionette/doc/wait.js.html => testing/marionette/doc/api/wait.js.html
2017-10-04 18:35:12 +01:00
Andrew Halberstadt
6b65448914 Bug 1403222 - Add test suite families to SCHEDULES.exclusive r=dustin
MozReview-Commit-ID: JWKB7eOgfWc

--HG--
extra : rebase_source : b81ab806cd2455f4e4fc761863fe699feadd0bb5
2017-09-26 10:47:22 -04:00
Vedant Chakravadhanula
d8b5c6edce Bug 1350897 - Tested quit shutdown/restart cause in Marionette Python client. r=whimboo
The Marionette server now returns a JSON containing the cause of shutdown which isn't included in previous Firefoxen. We needed to test this JSON in the quit and restart methods in the python client.

MozReview-Commit-ID: 8uL9tbNszcm

--HG--
extra : rebase_source : 7f01fe55444b034a5f07e42acac0224a981be881
2017-10-03 10:48:30 +05:30
Peter Major
3d736e3368 Bug 1402978 - Add cookie domain field to WebDriver:AddCookie r=ato
There were two issues with the previous implementation:
* Domain cookies were created as host only cookies (due to lack of
leading '.' characters)
* The cookie domain included in the Marionette request was completely
ignored, which always resulted in host-only cookies

MozReview-Commit-ID: 2JLQ3vwNMrb

--HG--
extra : rebase_source : c72ba077ef1b1a1f308e4c9a1d2093c18f7483ce
2017-09-29 15:22:50 +01:00
Andreas Tolfsen
9251f67abf Bug 1405004 - Remove unused imports from testing/marionette/element.js. r=whimboo
MozReview-Commit-ID: 7EoehdeV8tf

--HG--
extra : rebase_source : ce0a2a5e68b60514a4ec847df176ea4dd9452588
2017-10-02 17:20:57 +01:00
Andreas Tolfsen
31adf07368 Bug 1405279 - Lint for unused variables. r=whimboo
MozReview-Commit-ID: 6hUMzC21Tl

--HG--
extra : rebase_source : 64943c3d934674066abf385035db1949c1a71891
2017-10-03 14:36:09 +01:00
Andreas Tolfsen
d28ce13224 Bug 1405279 - Remove unused variables. r=whimboo
MozReview-Commit-ID: CmiDVCw6xVK

--HG--
extra : rebase_source : e71cfb7da973d95c796a93cc1e4da6f709acf65e
2017-10-03 14:35:47 +01:00
Sebastian Hengst
b1575a7d2b Backed out changeset ddfc127526b2 (bug 1403222) for failing python/mozbuild/mozbuild/test/frontend/test_reader.py::TestBuildReader::test_schedules, at least for Linux asan opt builds. r=backout on a CLOSED TREE 2017-10-02 16:03:12 +02:00
Andrew Halberstadt
ef896de9c0 Bug 1403222 - Add test suite families to SCHEDULES.exclusive r=dustin
MozReview-Commit-ID: JWKB7eOgfWc

--HG--
extra : rebase_source : 6c456c91985f2006910bda66fdbc5d18e066d020
2017-09-26 10:47:22 -04:00
Henrik Skupin
c5802a3204 Bug 1404277 - Retrieve namespaceURI as property and not attribute. r=ato
With newer Selenium atoms which do not conflate attributes and
properties, the retrieval via getElementAttribute will fail. By
retrieving it directly as property will fix it.

MozReview-Commit-ID: CFy3JZDeUWq

--HG--
extra : rebase_source : ed3a358f52b7cd54f3c5dda037fddaa93173e3b6
2017-09-29 12:54:03 +02:00
Peter Major
f497148541 Bug 1405240 - Fix test_cookie.js unit test assertions r=ato
When verifying error messages, the second parameter of Assert.throws has
to be a regular expression.

MozReview-Commit-ID: LJ6Iif8ORTs

--HG--
extra : rebase_source : 0cbe9f31880df44f9c822d8410ab4571281c17ef
2017-10-03 16:28:17 +01:00
Ian MacLeod
dbb37eec2c Bug 1389488 - Check that add-on file exists before forwarding request to AddonManager r=whimboo
MozReview-Commit-ID: 6b6QS9y6vPj

--HG--
extra : rebase_source : c4d2174ba11ddcc5076152982b761bb02ee94d65
2017-09-24 02:08:44 -07:00
Ian MacLeod
596a2c319b Bug 1368034 - Update default values for urlbar searches in Marionette r=whimboo
Search suggestions create unneccessary network requests and the suggestions
opt-in notification interferes with tests that don't expect it to be there.
So, this patch updates the default settings in Marionette to disable both.

MozReview-Commit-ID: 8X8SYPq19tj

--HG--
extra : rebase_source : cd0fe8f3437340b1266d161e1cad46bcbcd1a6f6
2017-09-25 02:10:47 -07:00
Vedant Chakravadhanula
f0c4e7a6c8 Bug 1364349 - Removed platform property of Firefox Puppeteer. r=whimboo
The wrapper puppeteer.platform in Firefox UI test was deemed redundant.

MozReview-Commit-ID: LUocC59bLNF

--HG--
extra : rebase_source : e764ba1d09d3f752e75ec6aed80ca93781c319dc
2017-09-25 14:30:11 +05:30
James Graham
ad38a14c75 Bug 1393366 - Increase the marionette connect timeout in wptrunner, r=maja_zf
This switches to using a timeout of 120s * timeout_multplier, which is
twice the current value. The Marionette startup_timout value is
removed because it turns out that's only used when marionette starts
the Firefox instance and therefore is ignored in this case.

MozReview-Commit-ID: 4VA8yB6M1d5

--HG--
extra : rebase_source : ba9d506d4061d49f2a95fbb24e690841fc902c97
2017-09-21 17:56:43 +01:00
Andreas Tolfsen
e3681ac449 Bug 1400226 - Wait for visibilitychange event on window minimize/restore. r=whimboo
The sizemodechange event is not strongly connected to the
visibilitychange event that the WPT minimize_window.py test is now
using to ascertain whether the window has been successfully iconified.

Because Marionette uses the sizemodechange event it is causing
intermittents such as https://bugzil.la/1397007.  You can also read a
lengthy summary I did on the problem in https://bugzil.la/1397007#c11.

The fix for the problem is to wait for the visibilitychange DOM
event content.

MozReview-Commit-ID: B6i33Ee5iMC
2017-09-21 15:02:36 +01:00
Andreas Tolfsen
9ac995ab12 Bug 1400225 - Subscribe to and relay web content DOM events. r=automatedtester,whimboo
This makes it possible to subscribe to DOM events in web content, in
order to facilitate fixes for cases such as https://bugzil.la/1397007.

Although the current interface, WebElementEventTarget, is associated with
browser.Context (curBrowser) it is the intention that we in the future
will associate this with representations of the marshaled web element.
This will make it quack and act like an Element's EventTarget, which
has nice parity to it.

The WebElementEventTarget works by passing IPC messages to
a backend service in the content frame script implemented by
ContentEventObserverService.  This registers event handlers for specific
DOM events, and relays these events back to the browser-specific message
handler in chrome.

This will enable chrome code to wait for events to occur in content,
like this:

	await new Promise(resolve => {
	  webElement.addEventListener("visibilitychange", resolve, {once: true});
	  contentBrowser.minimize();
	});

MozReview-Commit-ID: B8MMHyG8n04

--HG--
extra : rebase_source : 25ac77fbcfb09435325719ac61614c4a8ce37996
2017-09-15 17:07:41 +01:00
Wes Kocher
519bb0922b Merge inbound to central, a=merge
MozReview-Commit-ID: EK8iFR1hSRp
2017-09-18 16:21:01 -07:00
Henrik Skupin
6d45bcb001 Bug 1397612 - Skip TestQuitRestart.test_in_app_restart_safe_mode due to hangs after restart.
MozReview-Commit-ID: 1CvdUz7Uti0
2017-09-18 13:39:03 -07:00
Andreas Tolfsen
4491a3016a No bug: Generate Marionette API docs. r=me NPOTB
MozReview-Commit-ID: IjfiYEDpmEh
2017-09-16 09:58:47 +01:00
Henrik Skupin
61d1233ce1 Bug 1400594 - Further reduce start_timeout for test_startup_timeout. r=maja_zf
On Windows TaskCluster workers Marionette could be ready within 1s.
As such the currently used timeout is too long, and needs to be
further reduced.

MozReview-Commit-ID: KbLVdpB71cu

--HG--
extra : rebase_source : 2b9139e4b7e2c9d5815e7cc481086ca779385538
2017-09-18 10:30:57 +02:00
Henrik Skupin
890c883dee Bug 1399628 - Disable Shield extension in Marionette and geckodriver. r=ato
Shield experiments interfer with core features of Firefox which can
cause tests run via Marionette or geckodriver to fail. Resetting the
API URL will make sure that no experiments can be downloaded.

MozReview-Commit-ID: HnE49jfnen7

--HG--
extra : rebase_source : 2fa6cf86ddce798eba88a41d227768f149cccc70
2017-09-14 21:03:40 +02:00
Sebastian Hengst
80dfe00824 Backed out changeset 3baecf7b25f2 (bug 1399628) for build bustage. r=backout 2017-09-15 14:36:12 +02:00
Henrik Skupin
b2ac5a3fe1 Bug 1399628 - Disable Shield extension in Marionette and geckodriver. r=ato
Shield experiments interfer with core features of Firefox which can
cause tests run via Marionette or geckodriver to fail. Resetting the
API URL will make sure that no experiments can be downloaded.

MozReview-Commit-ID: HnE49jfnen7

--HG--
extra : rebase_source : 9cec29085032318e9e8467d6d754afe0890ae645
2017-09-14 21:03:40 +02:00
Henrik Skupin
38ed548903 Bug 1397675 - Immediately kill the process if no connection can be made after startup. r=maja_zf
When the binary gets launched we do not immediately kill the process if the
connection to Marionette server cannot be established within the given amount
of seconds. Instead "_handle_socket_failure" is getting called because
the utility method `raise_for_port` inappropriately uses the `@do_process_check`
decorator.

By removing the decorator the initial connection attempt can be handled
differently. As such the process if handled by Marionette will be immediately
killed. Currently we are waiting for the process to quit itself within 120s,
which will actually never happen due to no active session.

Further `start_session` defaults to a timeout of 60s which itself is problematic
for test harnesses using Marionette but controlling the binary themselves. In
those cases timeouts can happen often for slow starting browser processes like
debug builds. Instead this timeout should default to the `startup_timeout` value.

MozReview-Commit-ID: BZvX5KT45mK

--HG--
extra : rebase_source : 875807b75f0575a10dc9de3588237002fa6a5821
2017-09-07 15:40:19 +02:00
Sebastian Hengst
7dd2b068b5 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-13 13:35:21 +02:00
Andreas Tolfsen
d228da0fa7 No bug: Generate Marionette API docs. r=me
MozReview-Commit-ID: IGfMtLgswlY
2017-09-13 11:52:44 +01:00
Andreas Tolfsen
b803b6e1dc Bug 1399076 - Error when weakref of web element is destroyed. r=automatedtester
Take into account that a weak referenced element might have been destroyed
in the element staleness check.

An error is thrown when the reference object has been destroyed when
getting a weakrefs' pointer.  We catch this, but element.isStale does
not take into account that the el argument in this case can be null,
or in this revision of the patch, undefined.

MozReview-Commit-ID: 7sr4YGhAotS

--HG--
extra : rebase_source : 995eeef4ec1b19bf100cb95c4dd343e947b1cf52
2017-09-12 13:18:52 +01:00
Andreas Tolfsen
bbf5d23b36 Bug 1396866 - Restore window state on maximizing, minimizing, and fullscreening. r=automatedtester
When maximizing the window we must restore it from iconified state or
exit fullscreen first.  Likewise for minimizing the window, we must
exit fullscreen.  For fullscreening the window we need to also restore
the window.

MozReview-Commit-ID: AOQX2cV2C75

--HG--
extra : rebase_source : 53f310cc261a9a411bc46a04dd50a160a930b5af
2017-09-09 12:20:40 +01:00
Kris Maglione
8c91f29845 Bug 1398499: Part 3 - Add Marionette tests for global sharing. r=mccr8
This tests both that the settings have the desired effect and that switching
between sharing enabled and sharing disabled without a startup cache flush
does not cause any issues.

Tests for user pref changes are currently non-fatal, since they're known not
to work reliably.

MozReview-Commit-ID: 1ZFwyiNf3da

--HG--
extra : rebase_source : c38bd92d2137c90f8c4d202b7009612b45ff4be9
2017-09-09 17:33:01 -07:00
Henrik Skupin
54ec2c0bf0 Bug 1397734 - Centralize defaults for socket and startup timeouts r=maja_zf
Currently defaults for startup_timeout and socket_timeout are defined
at two different places (Marionette driver and harness). As of now it's
even the case that startup_timeout has different values. While Marionette
driver uses 120s, the harness only uses 60s.

As result all jobs which are based on the Marionette harness fail if
Firefox starts-up slowly like for debug builds.

MozReview-Commit-ID: Dl4sBG1H7NA

--HG--
extra : rebase_source : 959facabebc371beee23b4de345ddd2495913bb7
2017-09-07 15:36:50 +02:00
Sebastian Hengst
ca5bb38a4c Backed out changeset bc05e6c94a17 (bug 1397734) for mass mochitest failures (passed str to timedelta). r=backout on a CLOSED TREE 2017-09-08 09:30:48 +02:00
Henrik Skupin
67e8ef4b57 Bug 1397734 - Centralize defaults for socket and startup timeouts r=maja_zf
Currently defaults for startup_timeout and socket_timeout are defined
at two different places (Marionette driver and harness). As of now it's
even the case that startup_timeout has different values. While Marionette
driver uses 120s, the harness only uses 60s.

As result all jobs which are based on the Marionette harness fail if
Firefox starts-up slowly like for debug builds.

MozReview-Commit-ID: Dl4sBG1H7NA

--HG--
extra : rebase_source : 688338b1782deaf08eb01c7c5d4ca01ba03328f5
2017-09-07 15:36:50 +02:00
Henrik Skupin
03ba8ad526 Bug 1397306 - Empty noProxy list should reset no proxy exclusions. r=ato
To allow resetting the default no proxy exclusion entries in
Firefox tests have to pass an empty noProxy list. This should
also be correctly applied.

MozReview-Commit-ID: ABmYdPvoSvx

--HG--
extra : rebase_source : 313fe0a918a4a9bfe5204e5777568ee5f89744d3
2017-09-07 10:21:36 +02:00
Sebastian Hengst
1c4ad71269 Backed out changeset 1e12a866239c (bug 1394381) for busting web-platform-tests. r=backout on a CLOSED TREE 2017-09-06 18:51:32 +02:00
Andreas Tolfsen
8a7c17f04e Bug 1396618 - Throttle window minimize and restore r=automatedtester
MozReview-Commit-ID: 5LUWYwURQgs

--HG--
extra : rebase_source : fcc47b5994b356fad670cc56cc03f0976338a950
2017-09-04 16:55:34 +01:00
Henrik Skupin
c22e1e2d16 Bug 1394381 - Add logging output for Marionette connection attempts. r=maja_zf
If Marionette client cannot connect to the server, the attempts
have to be logged to stderr. This allows us to inspect the reason
why a connection from the client could not be made, and that it
still tries to connect (see bug 1362293).

MozReview-Commit-ID: ElE1M73ums8

--HG--
extra : rebase_source : e64a549e98b0adc4e7ea410f0d2fd500e0d55f87
2017-08-28 17:46:06 +02:00
Henrik Skupin
8ea68cdf34 Bug 1331313 - Let add-on install() / uninstall() wait for the expected add-on. r=ato
Currently the listener for addon installs misses a check for the addon id,
to only resolve the promise when it has been called for the expected  addon.
This can cause race-conditions if other addons are getting installed at the
same time.

The same applies to uninstall which doesn't wait at all until the operation
has been completed.

MozReview-Commit-ID: 5GsomMoAVZ1

--HG--
extra : rebase_source : a1b43adb2239b0c28cbee1d843f4b6c666a07f0a
2017-08-23 15:53:45 +02:00
Henrik Skupin
269febe5eb Bug 1387470 - Use moz:webdriverClick capability for spec conforming element click. r=ato
To allow geckodriver to temporarily opt-in for using the webdriver
conforming click, a new custom capability has to be created for
Marionette. If not specified the legacy clickElement method will
be used instead.

MozReview-Commit-ID: LuyTjLJXMGL

--HG--
extra : rebase_source : 8e133fb2d9767ea580468013fedff5233fd8eb93
2017-09-01 17:11:35 +02:00
Sebastian Hengst
45cb996f32 merge mozilla-central to autoland. r=merge a=merge 2017-09-05 12:37:56 +02:00
Steve Armand
e46ff00709 Bug 1368967 - Enable the ESLint generator-star-spacing rule across mozilla-central. r=standard8
MozReview-Commit-ID: 5do3eoCEAMR

--HG--
extra : rebase_source : 5f692e474e1d7d173fcb4c9c08617f0fe489e443
2017-09-04 00:49:32 -04:00
Andreas Tolfsen
2c9fa2e359 No bug: Generate Marionette API docs. r=me
DONTBUILD

MozReview-Commit-ID: LSonzfgaZ6n
2017-09-04 15:32:15 +01:00
Andreas Tolfsen
35190fd47d No bug: Fix Marionette jsdoc errors. r=me
DONTBUILD

MozReview-Commit-ID: HvhpWSOwM0n
2017-09-04 15:32:08 +01:00
Sebastian Hengst
43bc951ac7 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: ES9rKhiQo10
2017-09-01 10:38:51 +02:00
Henrik Skupin
476c801003 Bug 1387094 - Add noProxy support for manual proxy type. r=ato
MozReview-Commit-ID: 1C9sFgrno4i

--HG--
extra : rebase_source : 4182535b4dc5660966856adc250e38c08e009623
2017-08-31 17:49:36 +02:00
Wes Kocher
6472928439 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 77Uz3uceUmk
2017-08-31 16:56:23 -07:00
Andreas Tolfsen
8e318ae1c0 Bug 1395469 - Check discarded ChromeWindow in staleness test. r=me
HTML elements' ownerGlobal is a WindowProxy that indirects operations
to the current browsing context.  However, for XUL elements this global
is ChromeWindow which gets reset to null when the window is discarded.

For the same reason, since win indirects to the current browsing context's
associated window, we need to test that the element's node document is
not the active document.

Finally test that its shadow-including root is a document.

MozReview-Commit-ID: EYh18P8DbcN
2017-08-31 17:36:27 +01:00
Andreas Tolfsen
482df6f9bf Bug 1394849 - Add error.stack to create stacktraces. r=automatedtester
This patch introduces a new error.stack function as a shorthand for
creating stacktraces.  It is equivalent to calling

	new Error().stack

and removing the first line of the stack.  Removing the first line is
needed to make it appear as if the error originated from the caller's
position in the program.

MozReview-Commit-ID: DpSSWU5vPDm

--HG--
extra : rebase_source : 52697e348367b2b7dbeb28a711a9bd1fdef076ec
2017-08-29 17:34:37 +01:00
Andreas Tolfsen
7b0b197759 Bug 1394849 - Export pprint separately. r=automatedtester
pprint is currently exposed twice: once on the error namespace and once
separately.  We only want to expose it once, and since there are only a
handful "error.pprint" usages left, we can go ahead and make this change.

When we move transition to use "require" in the future, like devtools
does, it will be possible to use both "error.pprint" and "pprint" styles
without export duplication.

MozReview-Commit-ID: CAnPDWn9Vr7

--HG--
extra : rebase_source : 05a05460d710eb96fa7b20cb94477be0282809de
2017-08-29 17:33:38 +01:00
Andreas Tolfsen
29f6ebe13f Bug 1394881 - Use Node.isConnected for web element staleness check. r=automatedtester
It turns out that Node.isConnected (described in
https://dom.spec.whatwg.org/#dom-node-isconnected) handles an element’s
shadow root, which element.isDisconnected tries to replicate.

element.isDisconnected and element.isStale are both long and error-prone
and can be removed entirely in favour of this web platform API.

The relevant change to the WebDriver specification landed in
32a477b023.

MozReview-Commit-ID: 5Q0gWLvw8KL

--HG--
extra : rebase_source : 773ab302df27cf11be6079f918a48d3730ceb5c1
2017-08-30 14:22:39 +01:00
Andreas Tolfsen
3e05362c6a Bug 1395176 - Add eslint rule that forbids use of var. r=automatedtester
MozReview-Commit-ID: GvuSbH6EHea

--HG--
extra : rebase_source : 4093bf49449a6537ed0b428d93767bf6906ba8ee
2017-08-30 17:36:56 +01:00
Andreas Tolfsen
aeb61b530d Bug 1395176 - Lint testing/marionette for var usage. r=automatedtester
MozReview-Commit-ID: FCcyuUVJC7J

--HG--
extra : rebase_source : b6f16c2b2118aff532dd7480304bcd94aa739148
2017-08-30 17:38:23 +01:00
Andreas Tolfsen
0738b2f5fb Bug 1395176 - Turn marshal helper into function. r=automatedtester
MozReview-Commit-ID: 16azA4HnEg6

--HG--
extra : rebase_source : bcfab3f33714a7c0bf3e63dd84ea101fb560a2b7
2017-08-30 17:38:10 +01:00
Andreas Tolfsen
428df6da9e Bug 1395176 - Use scoped remoteFrames instead of global. r=automatedtester
MozReview-Commit-ID: 5Kj78w2gDvx

--HG--
extra : rebase_source : 0a47bbb4309a6cd2598bc77251575ef32d9cd7ce
2017-08-30 17:37:33 +01:00
Henrik Skupin
636959a3aa Bug 1369827 - Fix socksVersion key in proxy capabilities. r=ato
In the spec the socksProxyVersion key has been renamed to
socksVersion. Marionette has to be adjusted for this change.

MozReview-Commit-ID: Ep3zNZLKxXl

--HG--
extra : rebase_source : f29f45c9d30fa5f208b595f2e90f544ab652c8cc
2017-08-23 11:47:01 +02:00
Henrik Skupin
8c9c9c7b11 Bug 1369827 - Make proxy port an optional suffix for the host. r=ato
The WebDriver spec has been changed a while ago in regard of how
proxy capabilities are getting specified. It means that the port
is no longer its own key but an optional suffix for each of the
ftpProxy, httpProxy, sslProxy, and socksProxy keys.

MozReview-Commit-ID: zdYnVZSf09

--HG--
extra : rebase_source : c4928e6170b52a0ee247f50861646ec29a56bd34
2017-08-18 14:49:00 +02:00
Andrew Halberstadt
2255a9eed7 Bug 1395126 - Support cascading configuration for flake8, r=bc
This allows .flake8 files to override one another, and fixes a pretty bad known
bug with our flake8 implementation. For example, say we have a .flake8 file at:
/foo/.flake8

Before this patch, if we ran |mach lint foo/bar|, the configuration defined in
that .flake8 file wouldn't get picked up. It would only work if running the
specific directory that contains it, e.g |mach lint foo|.

This change additionally allows multiple .flake8 files to be used. So if
there's one defined at both:
/.flake8
/foo/.flake8

Then running |mach lint foo/bar| will first apply the root .flake8, then the
one under /foo (overriding earlier configuration).

This bug still doesn't make flake8 configuration perfect though. Any directory
containing a .flake8 file still needs to be explicitly listed in the "include"
section of /tools/lint/flake8.yml. Otherwise in the example above, if running
|mach lint /|, it wouldn't be able to find /foo/.flake8. This is a hard problem
and is likely best solved by fixing flake8's upstream configuration handling.

Unfortunately this means we still can't switch from a whitelist to a blacklist.

MozReview-Commit-ID: 3DZAi1QHYYo

--HG--
extra : rebase_source : 51298c5847f6c2792581d9b312c87b70fa716ee1
2017-08-29 17:32:31 -04:00
Sebastian Hengst
a56d428b1f merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Gf0QPFp52Bj
2017-08-30 11:05:16 +02:00
Andreas Tolfsen
6a8d4baed7 Bug 1393812 - Fix call to element.isDisconnected. r=automatedtester
A fallout from https://bugzil.la/1392346 was that element.isStale called
element.isDisconnected incorrectly by using the old container object.
This was reported in https://bugzil.la/1392854.

Since we in the long term want to get rid of the concept
of window/shadow root containers (in preparation for
https://bugzil.la/marionette-window-tracking), we might as well fix
the fallout by making element.isDisconnected take separate window-
and shadowRoot arguments, like element.isStale.

Fixes: https://bugzil.la/1392854
MozReview-Commit-ID: ELIu8HsZUfK

--HG--
extra : rebase_source : 3f0cc83048d9f069c47c08c0a6d886033c106825
2017-08-25 16:30:08 +01:00
Ganti Sai Sarath Chandra
6ed789d12b Bug 1378422 - Add python 2 only classifiers to python modules under /testing, r=ahal
MozReview-Commit-ID: DRi8KFyCnBn

--HG--
extra : rebase_source : 3ac98bdc648f8a0e3dc6d3b6d42e19dfc295a396
2017-08-19 04:19:06 +05:30
Henrik Skupin
c80a4170d0 Bug 1394377 - Increase default shutdown timeout to 120s. r=maja_zf
The background thread hang monitor will crash Firefox after 60s if
a shutdown is too slow. Debug builds are slower and as such Marionette
would force kill Firefox right before the hang monitor can kick in.

MozReview-Commit-ID: GGQFPEZ37dg

--HG--
extra : rebase_source : 99223b83c60be1abad1cc23d8a7c9c31a9f39379
2017-08-28 17:35:39 +02:00
Henrik Skupin
e5ebb0b363 Bug 1387678 - Skip all tests in test_shadow_dom.py due to intermittent failures. r=jmaher
MozReview-Commit-ID: KVJMcZWEW8p

--HG--
extra : rebase_source : f21ba7056d0cf3e557e6a2a00acf12d4dcf6e3ab
2017-08-28 16:46:37 +02:00
Andreas Tolfsen
f0f4363e58 Bug 1392318 - Use fromJSON convention in action module. r=automatedtester
The convention is to use fromJSON (instead of fromJson) because this
gives parity to toJSON which is supported by JSON.stringify.

MozReview-Commit-ID: 9dX14pFO2Bj

--HG--
extra : rebase_source : d0c1d657eee1f84d34e5a7116d8bb9ca579c8b51
2017-08-21 18:00:31 +01:00
Francois Marier
719c2b26b8 Bug 1388938 - Disable channel annotation and flashblock in tests harnesses.r=hchang
Since these tests harnesses are already disabling Safe Browsing and tracking
protection, they should also disable the other two features that cause
lists to be downloaded from the Mozilla shavar server.

MozReview-Commit-ID: 2158qRU4XZx

--HG--
extra : rebase_source : 287bfb7580538cca7f58ab035b7141166346c318
2017-08-23 15:47:37 -07:00
Sebastian Hengst
aeacc34883 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 6TGQRm8SSk0
2017-08-24 13:28:57 +02:00
Kris Maglione
821308e4d1 Bug 1391110: Part 4 - Remove unnecessary nsIFrameLoaderOwner QIs. r=smaug
The FrameLoaderOwner interface has been implemented in WebIDL for several
years now, so these QIs are simply unnecessary overhead.

MozReview-Commit-ID: LAzvfm5Qhy0

--HG--
extra : rebase_source : 2495c07df21c474f5fabc257ff4db43b0d8047e4
2017-08-19 13:32:58 -07:00
Dão Gottwald
10caf949d2 Bug 1390359 - Replace faded out (i) icon with a search icon when the location bar is empty or modified. r=adw
MozReview-Commit-ID: 8Q6MeB1XuyD

--HG--
extra : rebase_source : 5152c5077e951afad4932b938e4022c3704d2a05
2017-08-24 09:30:39 +02:00
Wes Kocher
e3d5db5c9a Backed out changeset df24976c2a46 (bug 1390359) for test_chrome_element_css.py failures a=backout
MozReview-Commit-ID: I0zHTpanBS0
2017-08-24 00:13:25 -07:00
Dão Gottwald
3e3744e717 Bug 1390359 - Replace faded out (i) icon with a search icon when the location bar is empty or modified. r=adw
MozReview-Commit-ID: BQJ8ZiFAzco

--HG--
extra : rebase_source : f42aa26361094f6b072975a7bd86f10b9960e7c6
2017-08-23 09:41:48 +02:00
Andreas Tolfsen
b65f30cdab Bug 1393097 - Relicense test_execute_async_script.py to public domain. r=automatedtester
DONTBUILD

MozReview-Commit-ID: AMrcfZyfEQM

--HG--
extra : rebase_source : 5632343813bb45edab99e30d8aba32ef48a34bda
2017-08-23 17:12:11 +01:00
Andreas Tolfsen
3f7148fec0 Bug 1393094 - Relicense test_execute_script.py to public domain. r=automatedtester
DONTBUILD

MozReview-Commit-ID: 2195jqRYoQN

--HG--
extra : rebase_source : f214dfac96a7d40d38e2e21823aa3fe7afaaa14b
2017-08-23 17:08:14 +01:00
Francois Marier
95ce2d4568 Bug 1385484 - Ensure that login reputation checks are disabled in tests. r=hchang
The login reputation checks depend on a server lookup and therefore would
render non-deterministic the performance and correctness of tests.

MozReview-Commit-ID: Bil0rSZsGPT

--HG--
extra : rebase_source : ae06a028c71eee323307ecd4e62bbf1e8a14fe13
2017-08-22 17:56:20 -07:00
Wes Kocher
207dd28c61 Backed out 4 changesets (bug 1385484) for build failures a=backout
Backed out changeset 401c2744f16b (bug 1385484)
Backed out changeset 2ff443a0c744 (bug 1385484)
Backed out changeset 1a1c476a9aaa (bug 1385484)
Backed out changeset 87ec064a3681 (bug 1385484)

MozReview-Commit-ID: D9WGXiXaNoZ

--HG--
extra : rebase_source : ebab6135905e972abf7eeab9af8db41454687373
2017-08-22 17:22:41 -07:00
Francois Marier
7975ef15d4 Bug 1385484 - Ensure that login reputation checks are disabled in tests. r=hchang
The login reputation checks depend on a server lookup and therefore would
render non-deterministic the performance and correctness of tests.

MozReview-Commit-ID: Bil0rSZsGPT

--HG--
extra : rebase_source : c9a641e4bf49c48bf864ed546bf2ae6eb51c27e4
2017-08-08 16:25:12 -07:00
Andreas Tolfsen
7c7d5a22d4 Bug 1392346 - Decouple element staleness check from element.Store. r=automatedtester
In preparation for a larger window tracking change to Marionette, we
want to decouple the element staleness check from the element.Store.

MozReview-Commit-ID: JNZqCc2eZqy

--HG--
extra : rebase_source : a21344ef9ecc01523545b2f866fbb5415afcedb3
2017-08-21 19:09:15 +01:00
Andreas Tolfsen
b7180de1e8 Bug 1392323 - Correct use of pprint in action module. r=automatedtester
In certain places, the Marionette action module calls error.pprint as
if it is a function.  pprint is a ES6 string template and should be used
like pprint`${replacement}`.

MozReview-Commit-ID: 29UoCNxkKa7

--HG--
extra : rebase_source : f8fe408827353f78ee223175316d5b5f9b6a8df5
2017-08-21 18:09:40 +01:00
Andreas Tolfsen
c07ee45e6b Bug 1392339 - Fix misuse of nsIDOMElement in API docs. r=automatedtester
MozReview-Commit-ID: 3q35q6TTbTH

--HG--
extra : rebase_source : 07b2d26874a051a8b6663020ee49dcd20beb286c
2017-08-21 18:56:19 +01:00
Andreas Tolfsen
34a091cffa Bug 1392339 - Fix misuse of nsIDOMWindow in API docs. r=automatedtester
nsIDOMWindow is the XPCOM interface and not what we mean in all these
cases.  We either want to refer to the ChromeWindow or to the WindowProxy,
depending on the context of the code.

MozReview-Commit-ID: 405po1XLXRi

--HG--
extra : rebase_source : 47a179f7caed76592dab28f8e10550cda5fe3d02
2017-08-21 18:52:18 +01:00
Andreas Tolfsen
fca9551967 Bug 1392281 - Pass window global to action module instead of container. r=automatedtester
Various functions in the action module take a container object such as

	{frame: <WindowProxy global>, shadowRoot: <Element>}

when it in fact never uses the shadowRoot entry.  As part of the new
window tracking we will get rid of the container concept altogether.

Because the action module is sufficiently self-contained, we can start
with removing it from there already.

MozReview-Commit-ID: KeeNF08mqnX

--HG--
extra : rebase_source : 51eee50a648a994fab456adf4add46c91a6c82a3
2017-08-21 17:34:23 +01:00
Andreas Tolfsen
657e3f287d Bug 1391691 - Make WebDriver:FullscreenWindow idempotent. r=automatedtester
MozReview-Commit-ID: 4AQlYYNV03f

--HG--
extra : rebase_source : 2b4c8bb55292665925411025e952367f1af27123
2017-08-18 18:32:11 +01:00
Andreas Tolfsen
a4b0685950 Bug 1391691 - Make WebDriver:MaximizeWindow idempotent. r=automatedtester
MozReview-Commit-ID: EJ0VQOTWysg

--HG--
extra : rebase_source : 8f97877c78c04672acd715db82b98133330372db
2017-08-18 18:31:42 +01:00
Andreas Tolfsen
bd75d1ac7c Bug 1391691 - Make WebDriver:MinimizeWindow idempotent. r=automatedtester
MozReview-Commit-ID: 4XBw0UFfZ1O

--HG--
extra : rebase_source : ced1fb5e6add0b2688c3e6cc0740eb9a9e54456a
2017-08-18 18:30:50 +01:00
Andreas Tolfsen
d93ed539e8 Bug 1391691 - Rename GeckoDriver#fullscreen to fullscreenWindow. r=automatedtester
The other window state manipulation commands are named minimizeWindow
and maximizeWindow.

MozReview-Commit-ID: IBVqJSRwG8x

--HG--
extra : rebase_source : a1efaf7cf2a5c068b62c60453b1f8814d34b043b
2017-08-18 18:29:47 +01:00
Andreas Tolfsen
61810789d2 Bug 1391691 - Export WindowState properly. r=automatedtester
MozReview-Commit-ID: CNev3JIWJAt

--HG--
extra : rebase_source : f835504765e7af521bb65b3035548a95885da8e1
2017-08-21 14:08:44 +01:00
Wes Kocher
75e9f7dbef Backed out 10 changesets (bug 1391691) for wpt failures a=backout
Backed out changeset 666ac679317e (bug 1391691)
Backed out changeset 46f82e1e2cde (bug 1391691)
Backed out changeset 1fd98ace1473 (bug 1391691)
Backed out changeset 5bddbd90ec7c (bug 1391691)
Backed out changeset 4653134d01ef (bug 1391691)
Backed out changeset fd88b612ac2e (bug 1391691)
Backed out changeset 6306abc0b5e9 (bug 1391691)
Backed out changeset 649b0e761c87 (bug 1391691)
Backed out changeset 6c48daaad075 (bug 1391691)
Backed out changeset 17aeed1f6454 (bug 1391691)

MozReview-Commit-ID: 6Cw1QibNQKM

--HG--
extra : rebase_source : 0197f824719f11e113595dd9a4a86b2c8d1fd8fe
2017-08-21 09:19:10 -07:00
Andreas Tolfsen
ab34c37f43 Bug 1391691 - Make WebDriver:FullscreenWindow idempotent. r=automatedtester
MozReview-Commit-ID: 4AQlYYNV03f

--HG--
extra : rebase_source : ab85f647405a23d249c3c79413382004b9d5ba90
2017-08-18 18:32:11 +01:00
Andreas Tolfsen
fd1746e875 Bug 1391691 - Make WebDriver:MaximizeWindow idempotent. r=automatedtester
MozReview-Commit-ID: EJ0VQOTWysg

--HG--
extra : rebase_source : 8fa9ab528c30f11d791b0e49f36661957f19befa
2017-08-18 18:31:42 +01:00
Andreas Tolfsen
9e4a620575 Bug 1391691 - Make WebDriver:MinimizeWindow idempotent. r=automatedtester
MozReview-Commit-ID: 4XBw0UFfZ1O

--HG--
extra : rebase_source : c2de251b5e994710ae197e63b7413a321f490900
2017-08-18 18:30:50 +01:00
Andreas Tolfsen
017325b653 Bug 1391691 - Rename GeckoDriver#fullscreen to fullscreenWindow. r=automatedtester
The other window state manipulation commands are named minimizeWindow
and maximizeWindow.

MozReview-Commit-ID: IBVqJSRwG8x

--HG--
extra : rebase_source : 29271a475a847ca15c1d8f736520b238c0818791
2017-08-18 18:29:47 +01:00
Andreas Tolfsen
14a5d8a735 Bug 1391691 - Export WindowState properly. r=automatedtester
MozReview-Commit-ID: CNev3JIWJAt

--HG--
extra : rebase_source : 80177d33da8a1f0b75227a3bb22e9c81652c0520
2017-08-21 14:08:44 +01:00
Andreas Tolfsen
5906316d3c Bug 1388036 - Restore window when setting window rect. r=automatedtester
If the window is minimized when setting the window rect, restore it
before resizing or moving the window.  We already exit fullscreen,
so this brings parity to the WebDriver:SetWindowRect command.

MozReview-Commit-ID: KrvWJjKX1eA

--HG--
extra : rebase_source : 968317ae961c8292edbadf2b4cfe439b7dc11f56
2017-08-18 16:01:24 +01:00
Andreas Tolfsen
cfe89162b6 Bug 1391952 - Introduce camel case lint rule. r=automatedtester
The Firefox remote protocol in testing/marionette predominantly uses
camel casing in naming properties and variables.  To enforce consistency
with this practice, this patch adds an eslint rule to enforce camel case.

There are a few exceptions where we use snake case in response output.
We can disable the lint rule on an individual basis in this handful
of cases.

MozReview-Commit-ID: DL7msdriFil

--HG--
extra : rebase_source : 737791b59002027f7501e7c46bd31d7a368a9b66
2017-08-19 14:18:51 +01:00
Andreas Tolfsen
c44c39fe1c Bug 1391952 - Disable camel case lint for input and output. r=automatedtester
MozReview-Commit-ID: 5KargkSvSPn

--HG--
extra : rebase_source : 45974434b348aed13a50fe4c98f11fc39217723c
2017-08-19 14:21:43 +01:00
Andreas Tolfsen
6c36c123e0 Bug 1391952 - Lint testing/marionette. r=automatedtester
MozReview-Commit-ID: CdA2gkIaul7

--HG--
extra : rebase_source : a3c4b785da01c19d8ef41cb3628a4844ec518ca2
2017-08-19 14:22:17 +01:00
Andreas Tolfsen
802a866314 Bug 1391699 - Disallow fallthrough case statements. r=automatedtester
We recently had a serious bug in Marionette (https://bugzil.la/1254136)
due to a case statement that fell through due to a missing "break"
statement.  This patch introduces a lint rule to prevent similar episodes
in the future.

When you do want a case to fall through, it is possible to add a comment
like this:

	switch (foo) {
	  case 1:
	    doSomething();
	    // fall through

	  case 2:
	    doSomething();
	    break;
	}

MozReview-Commit-ID: Gu8cFGsdne2

--HG--
extra : rebase_source : 8b29c663167783770d0eb0a32b7a7c2cb83a529e
2017-08-18 18:55:56 +01:00
Andrew Halberstadt
f79b06a32a Bug 1339178 - Use pytest to run python-tests, r=davehunt
This switches most tests over to use pytest as the runner instead of unittest (taking
advantage of the fact that pytest can run unittest based tests).

There were a couple tests that had failures when swithing to pytest:
config/tests/unit-expandlibs.py
xpcom/idl-parser/xpidl/runtests.py

For these tests, I added a runwith='unittest' argument so that they still run the
same way as before. Once we fix them to use pytest, the unittest logic in mozunit.py
can be deleted.

MozReview-Commit-ID: Gcsz6z8MeOi

--HG--
extra : rebase_source : 3c762422ce0af54cbbe7d9fc20085a2d1ebe7057
2017-08-29 14:50:33 -04:00
Henrik Skupin
f901b6658a Bug 1254136 - Fix double registration for sessionstore-windows-restored. r=automatedtester
A missing break statement caused a double execution of the code in
"profile-after-change", which leads to two instantiations of the
Marionette server colliding due to the same port.

MozReview-Commit-ID: Dp6fncj463j

--HG--
extra : rebase_source : dd4301c2fb797da228c0011e6bd90afa9171fb54
2017-08-10 18:04:47 +02:00
Henrik Skupin
f5ae03f271 Bug 1391016 - "proxyAutoconfigUrl" is required for proxyType "pac". r=automatedtester
MozReview-Commit-ID: DC43PmCAWBn

--HG--
extra : rebase_source : 910653f16a44f934dddbb9a00d1d66bf496ee1fe
2017-08-16 21:58:55 +02:00
Henrik Skupin
1342b7079f Bug 1391016 - Make sure that proxyType is required and a string. r=automatedtester
The webdriver spec declares the "proxyType" as required, and of
type string.

MozReview-Commit-ID: FXUhdYfOwWI

--HG--
extra : rebase_source : dc069a4de1e014951ed430bf5448ca0e3ac2545e
2017-08-16 21:45:09 +02:00
Andreas Tolfsen
4c0b8e5e9b Bug 1390595 - Exit with jsdoc return code from "mach marionette doc". r=whimboo
The "mach marionette doc" command to generate Marionette server API
documentation should exit with jsdoc's return code so the caller can
determine whether the operation was successful.

MozReview-Commit-ID: BXqGQlN5WPN

--HG--
extra : rebase_source : d7a45f321fe7f7c455d905b6cb90549872f2059d
2017-08-15 20:00:42 +01:00
Wes Kocher
7921644d1b Merge inbound to central, a=merge
MozReview-Commit-ID: 1DadhJTLBXN
2017-08-15 19:02:51 -07:00
Andreas Tolfsen
6358549fc7 No bug: Generate Marionette API docs. r=me
MozReview-Commit-ID: L9YAB4WCZmu
2017-08-15 19:56:04 +01:00
Henrik Skupin
654b88a12d Bug 1387092 - Add support for proxyType "direct". r=ato
The webdriver spec has been updated a while ago and renamed the proxyType
for not using a proxy from "noProxy" to "direct".

MozReview-Commit-ID: FjDIK8XCba8

--HG--
extra : rebase_source : 423149d3f82cf1b7e28d29a775359ac66e7a6f90
2017-08-15 19:23:33 +02:00
Sebastian Hengst
b07f79e076 Backed out changeset 30805fec70ed (bug 1387092) for failing testing/marionette/test_session.js | test_Proxy_init. r=backout 2017-08-15 19:08:53 +02:00
Henrik Skupin
e33bba5063 Bug 1390486 - Add "dom.file.createInChild" preference to recommended prefs. r=ato
To allow geckodriver to create file objects in child processes, this
preference has to be set to true. As such it needs to be recommended
in Marionette and set as default preference for geckodriver.

MozReview-Commit-ID: 8bdbi5jH6Vc

--HG--
extra : rebase_source : cc8963d2b15357b6d1607854e978aa764fcbd42f
2017-08-15 17:47:15 +02:00
Henrik Skupin
57339723eb Bug 1387092 - Add support for proxyType "direct". r=ato
The webdriver spec has been updated a while ago and renamed the proxyType
for not using a proxy from "noProxy" to "direct".

MozReview-Commit-ID: FjDIK8XCba8

--HG--
extra : rebase_source : ab41d737c9ba06c8883bfd36839807e6c3316c92
2017-08-11 11:55:51 +02:00
Andreas Tolfsen
7cf5d04a5e Bug 1388082 - Drop Task.jsm from Marionette. r=automatedtester
MozReview-Commit-ID: HbEHjOv1W3g

--HG--
extra : rebase_source : 8eb72aed9138dcfbe2fbe9d15e9a286944ae64a3
2017-08-07 19:02:20 +01:00
Andreas Tolfsen
a388449f1f Bug 1388082 - Remove unused import. r=automatedtester
MozReview-Commit-ID: 1W6eI99Ze40

--HG--
extra : rebase_source : 277fe9280e71db8afff5ad3a588e2155d589adf8
2017-08-07 19:01:20 +01:00
Andreas Tolfsen
b5560cd3ea Bug 1388082 - Convert content script to async/await. r=automatedtester
MozReview-Commit-ID: GHyhwa91L73

--HG--
extra : rebase_source : 9c82555641ca4ee3e496d35fd76fa24d7ba60e37
2017-08-07 18:59:45 +01:00
Andreas Tolfsen
2075d0f6df Bug 1388082 - Use async/await in wait module xpcshell tests. r=automatedtester
MozReview-Commit-ID: C0C0GBS9fWr

--HG--
extra : rebase_source : 1a62a0cca34afbe7aca970e5ee0f5281d8939a56
2017-08-07 18:58:09 +01:00
Andreas Tolfsen
e13cd58584 Bug 1388082 - Use async/await in reftest module. r=automatedtester
MozReview-Commit-ID: 9sUL77lPCK1

--HG--
extra : rebase_source : 4388640825b40e8cb93216d1f1323ebabd474c16
2017-08-07 18:57:37 +01:00
Andreas Tolfsen
0b25415ec8 Bug 1388082 - Update proxy examples and docs. r=automatedtester
MozReview-Commit-ID: AhR9ZSxpHQF

--HG--
extra : rebase_source : f86efa4c58c080135f9d47248300e321120186ae
2017-08-07 18:57:11 +01:00
Andreas Tolfsen
65b371f187 Bug 1388082 - Switch to async/await in interaction module. r=automatedtester
MozReview-Commit-ID: 2aUUrT3KXRF

--HG--
extra : rebase_source : c8d9b411c59da2979fc9b08fa1d09afec8f82d9b
2017-08-07 18:56:29 +01:00
Andreas Tolfsen
4e649b2c30 Bug 1388082 - Switch to async/await in action module. r=automatedtester
MozReview-Commit-ID: EREW0Hmmtb6

--HG--
extra : rebase_source : 6c9d6193e7031ee3f2d89042618f35cd36d303b1
2017-08-07 18:56:08 +01:00
Andreas Tolfsen
ac8a376af8 Bug 1388082 - Convert execute script methods to async. r=automatedtester
MozReview-Commit-ID: 6oUZ4v8snh0

--HG--
extra : rebase_source : 1ce7c286b0bce68ffaf74a6c8235ce57ca39af8a
2017-08-07 16:53:02 +01:00
Andreas Tolfsen
351fdfb92f Bug 1388082 - Make WebDriver service use async/await. r=automatedtester
MozReview-Commit-ID: A1dW91OvGcG

--HG--
extra : rebase_source : af8cf1d157f2fe4fdcd0e96b06ebe87e23d22a73
2017-08-07 16:52:37 +01:00
Sebastian Hengst
56c035fa36 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4cZJ3qFjvPY
2017-08-12 23:49:21 +02:00
Wes Kocher
ef0d82bb2b Merge m-c to inbound, a=merge
MozReview-Commit-ID: HSkzFTcnhOy
2017-08-11 13:25:37 -07:00
Wes Kocher
3985469cdb Bug 1388424 - Fix flake8 issue a=me
MozReview-Commit-ID: 4OcGtGQfgyD
2017-08-11 13:04:38 -07:00
Andreas Tolfsen
94e1614eb3 Bug 1388424 - Read capabilities off top-level object. r=whimboo
geckodriver sends capabilities as a JSON Object in the body of the
command, like this:

	[0,1,"newSession",{"acceptInsecureCerts":true}]

With https://bugzil.la/1387380 we wanted the Marionette Python client
to match this behaviour, however the patch overlooked the fact that
the server reads cmd.parameters.capabilities, meaning it looks for a
"capabilities" field on this object instead of treating the object as
the dictionary of capabilities.

As a follow-up to that bug, this patch removes the ability to override
the session ID by specifying a "sessionId" field.  This functionality
was only used for in-app restart tests.  When Firefox restarts, the
Marionette session is arguably not the same, and sessions should not
live on between restarts.

This patch will fix capabilities passed from geckodriver and align the
Marionette Python client.

For backwards compatibility reasons, it needs to be possible to use the
Python client with older Firefoxen that reads cmd.parameters.capabilities
instead of cmd.parameters.  This is why we duplicate the capabilities
object, like geckodriver does.

MozReview-Commit-ID: DCpaxl9hOLe
2017-08-11 11:06:15 +02:00
Sebastian Hengst
c3f9d66a33 Backed out changeset 2cf4290c2eef (bug 1388424) for failing marionette's test_quit_restart.py TestQuitRestart.test_force_clean_restart. r=backout 2017-08-11 12:11:14 +02:00
Andreas Tolfsen
43dd368771 Bug 1388424 - Read capabilities off top-level object. r=whimboo
geckodriver sends capabilities as a JSON Object in the body of the
command, like this:

	[0,1,"newSession",{"acceptInsecureCerts":true}]

With https://bugzil.la/1387380 we wanted the Marionette Python client
to match this behaviour, however the patch overlooked the fact that
the server reads cmd.parameters.capabilities, meaning it looks for a
"capabilities" field on this object instead of treating the object as
the dictionary of capabilities.

As a follow-up to that bug, this patch removes the ability to override
the session ID by specifying a "sessionId" field.  This functionality
was only used for in-app restart tests.  When Firefox restarts, the
Marionette session is arguably not the same, and sessions should not
live on between restarts.

This patch will fix capabilities passed from geckodriver and align the
Marionette Python client.

For backwards compatibility reasons, it needs to be possible to use the
Python client with older Firefoxen that reads cmd.parameters.capabilities
instead of cmd.parameters.  This is why we duplicate the capabilities
object, like geckodriver does.

MozReview-Commit-ID: DCpaxl9hOLe

--HG--
extra : rebase_source : 4464d9510ec8cc8a36a834d5b4b1178752dd488b
2017-08-08 17:37:41 +01:00
J. Ryan Stinnett
7d6a07aa90 Bug 1389153 - Skip more shadow DOM tests for Stylo. r=heycam
MozReview-Commit-ID: Arz7INgvzhH

--HG--
extra : rebase_source : 4b05b842aaad29fe9cad57f45be93db69ce1d1b7
2017-08-10 12:07:50 -05:00
Sebastian Hengst
dfdb63cdb8 Backed out changeset 69f808119fa3 (bug 1254136) for failing marionette-headless' test_cli_arguments.py TestCommandLineArguments.test_start_in_safe_mode on OS X and in marionette on Linux opt. r=backout 2017-08-11 09:06:41 +02:00
Henrik Skupin
f82940708a Bug 1388627 - close_chrome_window always operates in chrome context. r=automatedtester
MozReview-Commit-ID: J1R407tTuy4

--HG--
extra : rebase_source : bd508f1d3dcdfe08580e3dca4c4a64ac507efa92
2017-08-09 10:40:47 +02:00
Henrik Skupin
98282f804b Bug 1388627 - Remove obsolete Wait.until() calls from Window Manager Mixin. r=automatedtester
Given that both 'close' and 'close_chrome_window' wait for the underlying
tab or window to be closed, there is not need to explicitely wait in tests.

MozReview-Commit-ID: HOGgqzkNE9d

--HG--
extra : rebase_source : 0a1b197d499c9c2528e67e61172d90579f7ad696
2017-08-09 10:23:09 +02:00
Henrik Skupin
c77841c654 Bug 1254136 - Fix double registration for sessionstore-windows-restored. r=automatedtester
MozReview-Commit-ID: Dp6fncj463j

--HG--
extra : rebase_source : d69b5f5fc5f4e881c6d4b5e80576360078a59a0d
2017-08-10 18:04:47 +02:00
Ryan VanderMeulen
6eb7aef00e Merge m-c to autoland. a=merge 2017-08-09 18:51:26 -04:00
Henrik Skupin
e051e64a33 Bug 1386977 - Handle popstate events for page loads. r=automatedtester
In case of websites manipulating the browser's history via history.pushState
there will be no usual page load events fired. Instead listeners for popstate
events have to be used.

When such an event occurs we can directly return because the browser will
not load the underlying page. This only happens when navigating to another
page first, or restarting Firefox.

MozReview-Commit-ID: 3PceeYK9Co7

--HG--
extra : rebase_source : 30c162f72279712920a96ebc2076db27d01c41b6
2017-08-08 19:48:35 +02:00
muthuraj90ec
0d332730e8 Bug 1370403 - Synthesize contextmenu MouseEvent when performing webdriver actions; r=maja_zf
MozReview-Commit-ID: 85nQTsTRttF
2017-08-09 07:51:18 -04:00
dagasatvik
d4398e95f2 Bug 1385820 - Enable the ESLint no-new-wrappers rule across mozilla-central; r=markh,standard8
MozReview-Commit-ID: FvJO3ibeiwg

--HG--
extra : rebase_source : 5fc5c6760924da81a6d0708ff0d5586fc62c8c5e
2017-08-07 23:57:51 +05:30
Andreas Tolfsen
a791c795cb Bug 1387380 - Stop capabilities negotiation in Marionette. r=whimboo
The geckodriver HTTPD proxy implements WebDriver conforming capabilities
negotation and it is unnecessary to do this in the Marionette WebDriver
service.  The capabilities matching that Marionette implements is also
not as good as the implementation found in geckodriver.

The WebDriver:NewSession command will still accept a JSON Object of
"configuration" capabilities that carry the pre-matched capabilities from
geckodriver.  These will be used as configuration options for the session.
Type- and bounds checks will still be performed on this input.

MozReview-Commit-ID: CROjgGuTXOG

--HG--
extra : rebase_source : eb7e9f69fe3b23b77ea497d758fe30ac93d6373c
2017-08-04 20:04:12 +01:00
David Burns
74b035b657 Bug 1387644 - Return NoSuchElementError when element is not found r=ato
MozReview-Commit-ID: LDHiyce09GR

--HG--
extra : rebase_source : dff3b50237a3d124c0c41458c0adaf94694f45ef
2017-08-05 00:50:46 +01:00
Sebastian Hengst
b52285fffc merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: LBuvGxGDK9k
2017-08-06 11:05:44 +02:00
Masatoshi Kimura
8b713b2b0f Bug 1375125 - Stop using nsILocalFile in the tree. r=froydnj
This mechanically replaces nsILocalFile with nsIFile in
*.js, *.jsm, *.sjs, *.html, *.xul, *.xml, and *.py.

MozReview-Commit-ID: 4ecl3RZhOwC

--HG--
extra : rebase_source : 412880ea27766118c38498d021331a3df6bccc70
2017-08-04 17:49:22 +09:00
Andreas Tolfsen
da6629ba61 Bug 1387559 - Drop session_id fallback for WebDriver:NewSession. r=automatedtester
The WebDriver service in the remote protocol accepts sessionId and
session_id and we only need on.  All known consumers are using sessionId,
and we can drop the session_id fallback.

MozReview-Commit-ID: 6fa5Lgkzwfu
2017-08-05 17:35:54 +01:00
Andreas Tolfsen
5ec99cbafd Bug 1387457 - Convert element click functions to async. r=automatedtester
The element click functions in testing/marionette/interaction.js are
generator functions using "yield".  This patch converts them to async
functions.

MozReview-Commit-ID: 4A4cTaY619w
2017-08-05 17:21:06 +01:00
Phil Ringnalda
2685e4feb0 Backed out changeset 8bd84dfdba0d (bug 1387457) for eslint bustage
MozReview-Commit-ID: 4wgm2jnoDsl
2017-08-04 19:41:37 -07:00
Andreas Tolfsen
26e6ac4cfd Bug 1387461 - Add note to remove element.isVisible. r=automatedtester
DONTBUILD

MozReview-Commit-ID: AO8ikaX6RHB

--HG--
extra : rebase_source : d222314bc744df440594946f3b88435c5a89b17e
2017-08-04 15:51:19 +01:00
Andreas Tolfsen
2777c1c3a7 Bug 1387457 - Convert element click functions to async. r=automatedtester
The element click functions in testing/marionette/interaction.js are
generator functions using "yield".  This patch converts them to async
functions.

MozReview-Commit-ID: 4A4cTaY619w

--HG--
extra : rebase_source : 1b6f1b545f438ae253fd4024500bf41536d976aa
2017-08-04 15:45:02 +01:00
Andreas Tolfsen
895f6b68a5 Bug 1387447 - Update accessibility pointer-events expectations. r=yzen
With a WebDriver-conforming Element Click implementation, the element
click intercepted error is returned when an element with pointer-events:
"none" causes the click to hit the underlying element.

This patch does not functionally change anything yet about the
accessibility tests, but splits disabled_accessibility_elementIDs into
two lists, aria_disabled_elements and pointer_events_none_elements, in
anticipation of moving Marionette to use a different click implementation.

In the future, the ARIA tests will fail with "element not accessible"
errors as they do now, but the pointer-events tests will fail with
"element click intercepted" instead.

MozReview-Commit-ID: Ks1hyUVyLK7

--HG--
extra : rebase_source : 20dbcc228955626cd2d1617aa055f29f4e5928a4
2017-08-04 15:16:37 +01:00
Andreas Tolfsen
e6afed160b Bug 1381876 - Ensure Maximize Window is synchronous. r=automatedtester
Because the sizemodechange event is not synchronous on all platforms,
we additionally need to await the window's dimensions to change.

However, if the window manager does not have a notion of a maximised
state, this operation too could time out.  However, it is believed
that the additional wait will allow for the window to transition to the
required state in this scenario.

MozReview-Commit-ID: KeHJMKSJfjQ

--HG--
extra : rebase_source : 797b3be8f6adb027f15dd638f22afa6efd0f0432
2017-08-01 18:30:52 +01:00
Andreas Tolfsen
e611d3c375 Bug 1381876 - Introduce TimedPromise. r=automatedtester
This introduces a specialisation of the well-known Promise that can
time out after a set limit, causing the promises' "reject" callback to
be invoked.

The TimedPromise object represents the timed, eventual completion
(or failure) of an asynchronous operation, and its resulting value.
In contrast to a regular Promise, it times out after a set timeframe.

MozReview-Commit-ID: Rb3POsPYeT

--HG--
extra : rebase_source : cdff792dfa43af3cff1b20b3e81edb1a826e561e
2017-08-01 18:28:13 +01:00
Andreas Tolfsen
c956360dcb Bug 1381876 - Rename WaitCondition to Condition. r=automatedtester
The condition can be used for other things than poll-waiting.

MozReview-Commit-ID: 1sudv5JuEQT

--HG--
extra : rebase_source : ff58917f6fc0a860e149805ad838816541091705
2017-08-01 18:26:09 +01:00
Andreas Tolfsen
e6fdbe4caf Bug 1381876 - Compare window rect, not window size. r=automatedtester
The dictionary from Marionette#window_size is a subset of what is returned
from Marionette#window_rect, causing the self.assertEqual to complain
that they are not equal.  We want to compare the same types.

MozReview-Commit-ID: L4XTlgtUYKW

--HG--
extra : rebase_source : c3adf89777ac589cab2fb84fe3e543f22d9895fc
2017-08-01 18:21:04 +01:00
Andreas Tolfsen
107a4758fb Bug 1381876 - Remove unused import from test_window_maximize.py. r=automatedtester
MozReview-Commit-ID: 5C7ewMqY1iY

--HG--
extra : rebase_source : e545b6c24bd246e4d9554f35ede9ae7489cf6215
2017-08-01 18:19:58 +01:00
Andreas Tolfsen
acef2ddd2d Bug 1381876 - Fix window maximised assertions. r=automatedtester
The "delta" in the second assertion was not deducted from the height.
The patch also improves the error message.

MozReview-Commit-ID: 8u8UhKg3Q62

--HG--
extra : rebase_source : a3771620fc15225ac6932c718515b8dfcf2fdab0
2017-08-01 18:19:34 +01:00
Andreas Tolfsen
6e4c649956 Bug 1381876 - Include window state in window rect. r=automatedtester
The window state was included for only some of the commands' responses
earlier.

MozReview-Commit-ID: DdNyR7vdgtY

--HG--
extra : rebase_source : b7c3c7376f8affff673c903ba2c90e2cee93878a
2017-08-01 18:18:12 +01:00
Andreas Tolfsen
adf6b1ae3e Bug 1381876 - Return window rect from Context#rect consistently. r=automatedtester
MozReview-Commit-ID: D5pCPK2PEr3

--HG--
extra : rebase_source : a9e6c80314084a6b9fe3b4313d1599911528297b
2017-08-01 18:17:29 +01:00