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

2675 Коммитов

Автор SHA1 Сообщение Дата
Phil Ringnalda 1d977147a3 Backed out 3 changesets (bug 1372595) for build bustage everywhere except Linux32 and OS X
CLOSED TREE

Backed out changeset 6d9081d16588 (bug 1372595)
Backed out changeset 65c71d2ef601 (bug 1372595)
Backed out changeset 5cbd77708cd9 (bug 1372595)

MozReview-Commit-ID: KXCLB1Rt0KN
2017-06-22 19:23:30 -07:00
Andreas Tolfsen a1145f3db2 Bug 1372595 - Return cookie expiry timestamp; r=whimboo
The expires property on nsICookie2 does not exist and we are
consequently returning it as undefined, which gets omitted in the JSON
serialisation to the client.

This patch changes it to return the correct property so that the expiry
property is returned as part of the serialised cookie.

MozReview-Commit-ID: IIjf4NWnUoQ

--HG--
extra : rebase_source : 5e2dc27fb550a010dcbe40eee49d9ae31244d749
2017-06-16 16:41:59 +01:00
Wes Kocher b17932664d Merge m-c to autoland, a=merge
MozReview-Commit-ID: 1dQBCh5pBY6
2017-06-22 14:21:39 -07:00
Andrew Swan 527d6f830c Bug 1373772 Use webextensions in marionette unit tests r=whimboo
These tests currently use legacy extensions that won't work in 57,
switch them to webextensions.

MozReview-Commit-ID: 8lZrqjYSrar

--HG--
extra : rebase_source : bf8f6db2daedcddb8c554325498da7cec5159118
extra : source : 75fe2d21cdff9767c9a96682375d261475c284d1
2017-06-13 20:54:17 -07:00
Erica Wright 8f442c723b Bug 1219725 - Add a button for session restore to the tab bar. r=dao,Gijs,mikedeboer,whimboo ui-r=shorlander
MozReview-Commit-ID: 6zrEbIxXp8c

--HG--
extra : rebase_source : 20ba3acdb18e98940e90f099f18c02934dee0e8b
2017-06-20 11:33:55 -07:00
Phil Ringnalda 08e2f5187b Backed out 3 changesets (bug 1368072) for colliding with a new use of the thing it was renaming
Backed out changeset 1d7e008d7d70 (bug 1368072)
Backed out changeset c4a1ddf9be0d (bug 1368072)
Backed out changeset ba1cdae5a8d6 (bug 1368072)
2017-06-21 23:28:37 -07:00
Wes Kocher ac0fd2038c Merge inbound to m-c a=merge
MozReview-Commit-ID: 3LXFVwSoMvs
2017-06-21 17:58:17 -07:00
Nathan Froyd 452dc60022 Bug 1372670 - part 4 - use nsIThreadManager::dispatchToMainThread more from JS; r=florian
We did an automated conversion for many of these in another bug, but
these instances were either missed or have been added since then.
2017-06-21 12:59:28 -04:00
Joel Maher 5ae491ff90 Bug 1360446 - Intermittent test_click.py TestLegacyClick.test_click. temporarily disable on debug+e10s. r=gbrown
MozReview-Commit-ID: 5izvQ1NnKrD
2017-06-21 10:11:08 -04:00
Carsten "Tomcat" Book 042f077193 Backed out 17 changesets (bug 1363428) for various testfailures
Backed out changeset 70ce0f808a66 (bug 1363428)
Backed out changeset 5a9a4960a48a (bug 1363428)
Backed out changeset a927531f40db (bug 1363428)
Backed out changeset f1114f4af79a (bug 1363428)
Backed out changeset 4ea37712ed33 (bug 1363428)
Backed out changeset 11692e3c22eb (bug 1363428)
Backed out changeset a85d3f3544cb (bug 1363428)
Backed out changeset 6a7985dda6a1 (bug 1363428)
Backed out changeset f09573370d2f (bug 1363428)
Backed out changeset 2b5ad17f890a (bug 1363428)
Backed out changeset c7086fa5816c (bug 1363428)
Backed out changeset d2f9bdba146c (bug 1363428)
Backed out changeset 014b9aeb9ac2 (bug 1363428)
Backed out changeset 41d682cbc05f (bug 1363428)
Backed out changeset e2e74e66ca3e (bug 1363428)
Backed out changeset 97db3b14fafd (bug 1363428)
Backed out changeset 42e2ae612663 (bug 1363428)
2017-06-21 15:16:00 +02:00
Andreas Farre a89aab3e1d Bug 1368072 - Use idleDispatchToMainThread instead. r=ato
Adapt to the move of nsIThread.idleDispatch to
nsIThreadManager.idleDispatchToMainThread.
2017-06-21 12:36:41 +02:00
James Graham a7e4a9aded Bug 1363428 - Add reftest-specific endpoints to Marionette, r=ato
This adds commands to start a reftest session, run a test, and end the
session. It as assumed that after you start a reftest session you will
just run reftests until you end the session. When starting a session
the user provides a string indicating when screenshots should be
taken, and an object mapping urls to a count of the number of times
that url is expected to be used in the session, to help with
caching. Running the tests takes a url to a test, an expected status,
a timeout, and a nested list of possible references, in which each
entry at a specific level is combined by OR and nested references are
combined by AND.

The implementation is heavilly inspired by the existing reftest
harness, starting a minimal window with no tabs, and loading the urls
directly in there. In order to get a screenshot in the e10s case we
have to pass the DRAW_VIEW and USE_WIDGET_LAYERS flags when taking the
screenshot.

For performance we heavily cache canvases; for references that will be
repeated we cache the full canvas with image, and we also cache a
single canvas to use for all other screenshots to avoid the overhead
of repeatedly creating a new canvas element.

MozReview-Commit-ID: JOFvtmH7tg
2017-06-21 11:25:57 +01:00
James Graham 8746d960ea Bug 1363428 - Make it possible to close tabless content windows, r=ato
MozReview-Commit-ID: 8xltsYCN3QA
2017-06-21 11:25:56 +01:00
James Graham f8dfe0f78a Bug 1363428 - Handle top level reftest window specially in Marionette, r=ato
Because this window is a normal Firefox window but doesn't contain any
tabs, the normal Marionette functions for iterating over windows don't
work well. As a sort of hack, identify this window by the id of its
root element, and special case it when finding windows in Marionette.

MozReview-Commit-ID: LxPv13YDXDu
2017-06-21 11:25:56 +01:00
James Graham 53829cedb9 Bug 1363428 - Refactor Marionette switchToWindow implementation, r=ato
This allows other commands to implicitly change the window handle, by
calling findWindow with appropriate arguments to get a window
properties object and then passing that to setWindowHandle.

MozReview-Commit-ID: 4NpYxjsMM4T
2017-06-21 11:25:56 +01:00
James Graham f567c04584 Bug 1363428 - Use an iterator for iterating windows, r=ato
MozReview-Commit-ID: FKsw9EST2H7
2017-06-21 11:25:56 +01:00
James Graham e1fda68800 Bug 1363428 - Skip element highlighting if there are no highlights, r=ato
MozReview-Commit-ID: 3rc4XnykV1S
2017-06-21 11:25:56 +01:00
James Graham af0c956684 Bug 1363428 - Allow passing flags when drawing to a canavs, r=ato
MozReview-Commit-ID: 8QAFiWcsKNE
2017-06-21 11:25:55 +01:00
James Graham 09adef1916 Bug 1363428 - Allow passing in an existing canvas to capture.canvas, r=ato
MozReview-Commit-ID: EGvEr7XfHH9
2017-06-21 11:25:55 +01:00
Andreas Tolfsen 912429a173 Bug 1370863 - Remove log and getLogs commands from Marionette; r=automatedtester
MozReview-Commit-ID: HFZfJGwSqyT

--HG--
extra : rebase_source : 689dc42349854ad7ba6c717263dbb2c1260c7ae1
2017-06-07 14:17:41 +01:00
Andreas Tolfsen 2a8d5de8c8 Bug 1370863 - Remove Marionette.log API from client; r=automatedtester
MozReview-Commit-ID: FjBQ2p1DyLn

--HG--
extra : rebase_source : 00561c25a0432fb8042ea0f5ba2e6b6563272d00
2017-06-09 14:28:15 +01:00
Andreas Tolfsen fbe1c6662b Bug 1370863 - Stop using Marionette.log API in harness; r=automatedtester
MozReview-Commit-ID: 33ZPdJ486rJ

--HG--
extra : rebase_source : e5cff00c41f09afb8f01d18d830bc601cb5a6171
2017-06-09 14:27:27 +01:00
Andreas Tolfsen 93e3a7df66 Bug 1364319 - Make setWindowRect deterministic; r=automatedtester,maja_zf
The Marionette setWindowRect command is meant to provide a blocking API
for resizing and moving the window.  This currently has an intermittent
rate of ~0.254 with the WPT conformance test.

The main issue in providing a blocking API is that the DOM resize
event fires at a high rate and needs to be throttled.  We are able to
throttle this successfully with requestAnimationFrame, and before that,
a hard-coded 60 fps setTimeout delay.  To the naked eye, this appears to
synchronise window resizing before returning the resposne to the client.

However, occasionally the response contains the wrong window size.
window.outerWidth and window.outerHeight do not appear to be
deterministic as DOM properties are not synchronously populated.

Calls to ChromeWindow.outerWidth and ChromeWindow.outerHeight sometimes
also returns inconsistent values.  Tests, document in the bug, have
shown that somtimes, the returned window size from the setWindowRect
command is correct, and that the size from the subsequent getWindowRect
command is not.

By using a combination of Services.tm.mainThread.idleDispatch and a
blocking promise on not returning a response until the window size has
changed, we are able to reduce the intermittent rate significantly (by
over an order of magnitude).

As one would expect, delaying computation allows DOM property values to
populate, and as such does not address the underlying problem or make it
inconceivable that the race described above could re-appear, but it does
seem to be more reliable than the current approach.

MozReview-Commit-ID: Lf2yeeXH082

--HG--
extra : rebase_source : e27912fdcb6edbf825bf3168f3542ff2b4551b8b
2017-06-21 17:13:51 +01:00
Phil Ringnalda 44f60566a9 Backed out 3 changesets (bug 1368072) for timeouts in test_TelemetrySession.js and test_fullscreen-api.html and unhandled "TypeError: Services.tm.mainThread.idleDispatch is not a function" promise rejections
Backed out changeset 357635c84e49 (bug 1368072)
Backed out changeset 1797afe16a2a (bug 1368072)
Backed out changeset 4782401394a9 (bug 1368072)

MozReview-Commit-ID: 6kdcSkERjTD
2017-06-20 21:41:14 -07:00
Andreas Farre 176da5d36c Bug 1368072 - Use idleDispatchToMainThread instead. r=ato
Adapt to the move of nsIThread.idleDispatch to
nsIThreadManager.idleDispatchToMainThread.
2017-06-14 08:59:00 +02:00
Andreas Farre 41db6cb2a1 Bug 1368072 - Use idleDispatchToMainThread instead. r=ato
Adapt to the move of nsIThread.idleDispatch to
nsIThreadManager.idleDispatchToMainThread.
2017-06-22 11:14:11 +02:00
Andreas Farre 947665ad52 Bug 1368072 - Use idleDispatchToMainThread instead. r=ato
Adapt to the move of nsIThread.idleDispatch to
nsIThreadManager.idleDispatchToMainThread.
2017-06-22 11:14:11 +02:00
Henrik Skupin 9a0cf91c1c Bug 1373635 - Application profile has only be reset if explicitly requested. r=ato
For both quit() and restart() methods the profile should not be reset,
unless it has been requested. The current behavior breaks various tests
which make use of quit() and session_start() and which assume that
previously set preferences are still set, eg. sessionrestore tests.

MozReview-Commit-ID: 4BxSSJPrTYF

--HG--
extra : rebase_source : 534c0608caf31c1e2cc256ad3fa8ae1972204603
2017-06-16 15:31:45 +02:00
Andreas Tolfsen 3aa20dc029 Bug 1364319 - Throttle setWindowRect with requestAnmationFrame; r=maja_zf
We need to delay the response from the setWindowRect command until the
window has had time to properly resize.  But because the DOM resize
event is not synchronous, we cannot rely on it alone to tell us when the
widget toolkit has actually completed the resizing.

To overcome this problem we throttle the event using
ChromeWindow.requestAnimationFrame to force the event loop to flush
before resolving the promise.

The setWindowRect command previously relied on a 15 FPS setTimeout delay
because requestAnimationFrame did not work with ChromeWindow, but this
seems to have since been fixed.  Local tests show that this approach is
more stable and produces less intermittent results.

MozReview-Commit-ID: D1ICb3F6vX3

--HG--
extra : rebase_source : ef5ef15db80ce78284672551581ce5d9cdde9189
2017-06-12 13:52:53 +01:00
Sebastian Hengst 265affc002 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 5wTyHWufcCh
2017-06-16 09:50:00 +02:00
Brendan Dahl 33ec005421 Bug 1341493 - Wait for accessibility element if accessibility doc is busy. r=automatedtester
Occasionally marionette tries to get the accessibility element while the
elements are still being built. This causes getAccessibleFor to return
null when there actually should be an accessibility element available.
Instead, if the document is busy, wait until it finishes to get the
accessibility element.
2017-06-15 14:53:14 -07:00
Andreas Tolfsen 3802e2befd Bug 1373218 - Add invalid cookie domain error to status lookup; r=automatedtester
The InvalidCookieDomainError type is missing a status lookup key in
testing/marionette/error.js.  This adds "invalid cookie domain" as a
reverse lookup for the type.

MozReview-Commit-ID: 69hkk28axtt

--HG--
extra : rebase_source : 19628df79d89f7fbaf821cc1847e1be241ff56af
2017-06-15 13:36:47 +01:00
Ignaz Forster 594e4143ba Bug 1352023: Fix broken references / typos in Marionette docs; r=whimboo
MozReview-Commit-ID: 6Wo8ewMacjF

--HG--
extra : rebase_source : 6b297bee5851f9bde4c64381ac502e7dabace029
2017-06-08 23:40:55 +02:00
Andrew Halberstadt c9beaa56b4 Bug 1373294 - Fix E305 (two blank lines after method or class) in files enabled by flake8 linter, r=jmaher
This is needed before we can upgrade to flake8 3.3.0, as that version starts flagging these errors.

These files were modified by running:
autopep8 --select E305 --in-place -r <dir>

on the affected directories. I did it one dir at a time and verified the result after each.

MozReview-Commit-ID: FmlsfiKIbtr

--HG--
extra : rebase_source : 9df32258cadff5d27a0e72113c57f782756c0b18
2017-06-15 12:10:59 -04:00
Henrik Skupin 95e73ca34a Bug 1358978 - Implement --run-until-failure for Marionette. r=maja_zf
To help debugging intermittent failures the --repeat option can be
used, but that doesn't stop if a failure occures and instead it
continuous until the number of specified iterations have been reached.

With --run-until-failure we can allow the harness to stop running
the tests once the first failure appeared. Without the --repeat option
specified it will repeat 30 times by default.

MozReview-Commit-ID: Jlsss4PHNbj

--HG--
extra : rebase_source : 7a74284557c19056d95520f2421b63f29349cf81
2017-04-24 12:48:33 +02:00
Phil Ringnalda 5046ec0134 Merge m-c to m-i
MozReview-Commit-ID: 5k3Ip7tGRsC
2017-06-20 21:49:33 -07:00
Brendan Dahl 50d7ed279a Bug 1355150 - Enable headless mode on windows. r=automatedtester, r=jrmuizel 2017-06-20 15:27:02 -07:00
Henrik Skupin 6d73c8d8f2 Bug 1368965 - Don't inject chrome window handles into window handles. r=ato
Chrome window handles and window handles are identifiers for different types
of windows. As such those should not be mixed up. Especially for chrome
windows without a tabbrowser we erroneously inject such a chrome window
handle. It can break those tests which assume it's a tab.

MozReview-Commit-ID: 1n2vOyfaSUh

--HG--
extra : rebase_source : 08ebff867a0075191908bc7aa535f3f8b386871d
2017-06-13 18:08:44 +02:00
Henrik Skupin c0479d07f7 Bug 1368965 - assert.contentBrowser has to check for closed chrome window. r=ato
Due to the current caching of this.tab in browser.js the assertion
for the contentBrowser would fail. As such additionally assert that
the currently selected chrome window has not been closed yet.

Also assert.window should better check the 'closed' property instead
of handling a possible TypeError.

MozReview-Commit-ID: B79czg3dsux

--HG--
extra : rebase_source : 31bf31d2151e4b461574101ce7770d38fb92bd5c
2017-06-13 18:08:22 +02:00
Sebastian Hengst 1703ff1640 Backed out changeset 5afb0e2ec86c (bug 1364319) for failing Marionette's test_window_rect.py TestSize.test_resize_while_fullscreen on Linux opt. r=backout 2017-06-14 21:31:22 +02:00
Andreas Tolfsen 1011a734c2 Bug 1364319 - Throttle setWindowRect with requestAnmationFrame; r=maja_zf
We need to delay the response from the setWindowRect command until the
window has had time to properly resize.  But because the DOM resize
event is not synchronous, we cannot rely on it alone to tell us when the
widget toolkit has actually completed the resizing.

To overcome this problem we throttle the event using
ChromeWindow.requestAnimationFrame to force the event loop to flush
before resolving the promise.

The setWindowRect command previously relied on a 15 FPS setTimeout delay
because requestAnimationFrame did not work with ChromeWindow, but this
seems to have since been fixed.  Local tests show that this approach is
more stable and produces less intermittent results.

MozReview-Commit-ID: D1ICb3F6vX3

--HG--
extra : rebase_source : 786fe9843f2cbc29e4708dd8db279fd4a273fe51
2017-06-12 13:52:53 +01:00
Wes Kocher e4ecc079ae Backed out changeset 7492cd4b4cb3 (bug 1364319) for marionette failures in test_window_rect.py a=backout
MozReview-Commit-ID: GLjm9aICQjd
2017-06-13 16:18:02 -07:00
Andreas Tolfsen 0b692f9d4d Bug 1364319 - Throttle setWindowRect with requestAnmationFrame; r=maja_zf
We need to delay the response from the setWindowRect command until the
window has had time to properly resize.  But because the DOM resize
event is not synchronous, we cannot rely on it alone to tell us when the
widget toolkit has actually completed the resizing.

To overcome this problem we throttle the event using
ChromeWindow.requestAnimationFrame to force the event loop to flush
before resolving the promise.

The setWindowRect command previously relied on a 15 FPS setTimeout delay
because requestAnimationFrame did not work with ChromeWindow, but this
seems to have since been fixed.  Local tests show that this approach is
more stable and produces less intermittent results.

MozReview-Commit-ID: D1ICb3F6vX3

--HG--
extra : rebase_source : 90dba4abf64c820b11e1edb5e0e96133cbcfa76a
2017-06-12 13:52:53 +01:00
Wes Kocher 8b6a6ce487 Backed out 5 changesets (bug 1370863) for marionette test failures a=backout CLOSED TREE
Backed out changeset e4605e515ffd (bug 1370863)
Backed out changeset 986d20fecd11 (bug 1370863)
Backed out changeset b0a081dfd577 (bug 1370863)
Backed out changeset bb80abe6a298 (bug 1370863)
Backed out changeset 90b14cb85f51 (bug 1370863)

MozReview-Commit-ID: chPvs0RWbK
2017-06-12 17:18:38 -07:00
Wes Kocher 101940382d Merge m-c to autoland, a=merge CLOSED TREE
MozReview-Commit-ID: K0rvhhOLins
2017-06-12 17:13:12 -07:00
Wes Kocher f8412cddff Merge inbound to central, a=merge CLOSED TREE
MozReview-Commit-ID: 4j8ngmg8FAD
2017-06-12 17:02:56 -07:00
Sebastian Hengst 4f35de100b Backed out changeset c932f9b1d502 (bug 1368195) for flake8 linting failure at base.py:855:17 | continuation line under-indented for visual indent (E128). r=backout 2017-06-12 18:21:51 +02:00
Ryan VanderMeulen 97dbdf639a Bug 1371924 - Skip test_execute_script.py TestExecuteContent.test_return_value_on_alert on Android. r=ato 2017-06-12 10:24:16 -04:00
Andreas Tolfsen f2225720a9 Bug 1370863 - Remove log and getLogs commands from Marionette; r=automatedtester
MozReview-Commit-ID: HFZfJGwSqyT

--HG--
extra : rebase_source : eb04f0a3fa55d17eb5fef9bff3170ba5ce147eff
2017-06-07 14:17:41 +01:00
Andreas Tolfsen acbfad9780 Bug 1370863 - Remove Marionette.log API from client; r=automatedtester
MozReview-Commit-ID: FjBQ2p1DyLn

--HG--
extra : rebase_source : 141b3bd768bbe7c5cce108a8ffefa5514773f366
2017-06-09 14:28:15 +01:00