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

2578 Коммитов

Автор SHA1 Сообщение Дата
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
Ryan VanderMeulen 5f9d8f5990 Backed out changeset 555b205831e7 (bug 1364245) because it didn't fully fix the problem. 2017-05-13 13:10:40 -04:00
Andreas Tolfsen 3e5326f9db Bug 1362992 - Wrap implementation errors as UnknownError r=automatedtester
JavaScript errors that arise from the Marionette implementation are
currently wrapped as WebDriverErrors.  A WebDriverError is encoded with
a "webdriver error" error code, which officially does not exist in the
WebDriver specification.

To distinguish WebDriver errors from programming errors of Marionette,
this changes them to be encoded as UnknownErrors (error code
"unknown error").  This will make stacktraces coming from clients
easier to read, since it is clear that the error is not caught by the
WebDriverError-catchall.

MozReview-Commit-ID: A5HejTOgOp8

--HG--
extra : rebase_source : 7bd4f539954dd11973b2bd16c1bf4f4ea7b4a4d7
2017-05-08 14:01:30 +01:00
Henrik Skupin 0cd2f844e4 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. But due to the slowness of the browser, the next
command could already operate on a complete readyState. Delaying the load
of resources is the only possible option.

MozReview-Commit-ID: D2je04Euwf0

--HG--
extra : rebase_source : d74f276d96cd5bd2301f9dac8866f9dadc6e2937
2017-05-12 11:44:17 +02:00
Andreas Tolfsen 3eb9ebace3 Bug 1363053 - Use Node.ELEMENT_NODE instead of magic number r=maja_zf
This patch removes the magic number and instead uses the ELEMENT_NODE
constant which exists on all objects of the Node prototype chain.
We already test that obj has a nodeType own property.

MozReview-Commit-ID: If9HIkBjCyN

--HG--
extra : rebase_source : 5b04727b53616c08bf74a4f3acb56c33d827d015
2017-05-08 18:58:47 +01:00
Andreas Tolfsen c9a2bed65e Bug 1363053 - Return JSON representation of return value r=maja_zf
According to a recent change in the WebDriver specification, we need to
return an object's JSON representation iff it exists.

The relevant specification prose change was made in
1ee4c61c11.

This patch causes return values that have a toJSON property that is a
function, to return the value of calling said function.

MozReview-Commit-ID: GpQNE9GpjCH

--HG--
extra : rebase_source : 7192bbd484cbaa4661f2442990082aefcdd1570b
2017-05-08 18:57:09 +01:00
Andreas Tolfsen a9505b4395 Bug 1363053 - Move element.fromJson/toJson to evaluate module r=maja_zf
This patch renames element.fromJson and element.toJson to
evaluate.fromJSON and evaluate.toJSON, respectively.

The JSON (de)serialisation code belongs more naturally in the evaluate
module, which did not exist when these functions were written.

MozReview-Commit-ID: FJGbjGD1kZ6

--HG--
extra : rebase_source : b2528f545c8213b06b9116299806d8ab8a875250
2017-05-08 17:05:20 +01:00
Brendan Dahl a071a0f003 Bug 1356681 - Expand headless mode support for linux. r=automatedtester,jrmuizel,kanru
Full Firefox on Linux can now be run with a --headless flag.
This includes seven parts:
1) Running all marionette tests in headless mode.
2) Prevents crashes where Firefox calls into GTK.
3) Adds a headless screen helper which supports changing the headless
screen size with the environment variables MOZ_HEADLESS_WIDTH and
MOZ_HEADLESS_HEIGHT.
4) Supports simulating moving a headless window.
5) Adds a stubbed out nsSound implementation.
6) Supports simulating size mode changes of headless windows.
7) Adds the --headless flag for Firefox.
2017-05-18 17:47:10 -07:00
David Burns a7e391c346 Bug 1364213: Add Test for Set Window Rect for setting to available dimensions; r=whimboo
This adds a test to set the window size to that of the available height and width. This
was an issue before. See https://github.com/mozilla/geckodriver/issues/153

MozReview-Commit-ID: J7H8WIYiB5l

--HG--
extra : rebase_source : d1da5420ccf99cab9c0e96c869059d0feb63fbb7
2017-05-11 22:28:41 +01:00
Dão Gottwald 9cc94f157a Bug 1364090 - Detach the reload and stop buttons from the location bar. r=johannh
MozReview-Commit-ID: Ltp6EghiI44

--HG--
extra : rebase_source : f033cadab35b56cf96f25786260853a8a5f9a1ed
2017-05-11 19:16:05 +02:00
Henrik Skupin 2a458fb433 Bug 937659 - Implement page load strategy. r=ato
By using the page load strategy each navigation request has to return
when the page load has reached the expected document ready state, or
immediately if a strategy of "none" is set.

This also removes the page load checks when switching frames because
this is not part of the webdriver spec.

MozReview-Commit-ID: 3KbsDvzEG6c

--HG--
extra : rebase_source : 68170235424e181c083febd44fca6bb0c5dfec63
2017-04-19 13:22:13 +02:00
Henrik Skupin cfdbf9979c Bug 937659 - Fix deserializing of page load strategy. r=ato
The patch aligns the steps for deserializing the page load strategy with
the webdriver specification.

MozReview-Commit-ID: GnVTnhVQVkG

--HG--
extra : rebase_source : c7796817fa6d0397b4821445dc3bd87853e0e509
2017-04-19 12:32:20 +02:00
Henrik Skupin 7d15bba78b Bug 1318351 - Remove mainContent and related code used by B2G. r=ato
MozReview-Commit-ID: 1BZY5VvCMZ9

--HG--
extra : rebase_source : f306e0509b2403496dd60fa19ca28abe2e198cdb
2017-05-04 11:45:08 +02:00
Henrik Skupin 2ef12d4a3e Bug 1318351 - Ensure that window ids are internally handled as numbers. r=ato
Right now we retrieve window handles at different locations and as
such those are sometimes numbers but also strings. Given that we have
strict comparisons when checking for the id, checks can fail.

The patch also ensures that both close() and closeChromeWindow()
methods are returning the window ids as string.

MozReview-Commit-ID: ImOLe0Z2OE1

--HG--
extra : rebase_source : fe6e7857def2fde4e8253b1bfef8dd2a7d6bd954
2017-05-09 10:25:26 +02:00
Henrik Skupin e266de9045 Bug 1318351 - Remove obsolete B2G code from listener frame script. r=ato
MozReview-Commit-ID: J5e3AQGgOxh

--HG--
extra : rebase_source : b4d6998db644c7c44b29f1fec0668ce0484b1d38
2017-05-03 16:46:58 +02:00
Henrik Skupin 16a144567e Bug 1318351 - Remove B2G related assertions. r=ato
MozReview-Commit-ID: Iy0wYJoodvO

--HG--
extra : rebase_source : 3bd93ecc4ef24df3db6846d7db2a314c183128aa
2017-05-03 16:40:37 +02:00
Henrik Skupin 6c250f896a Bug 1318351 - Remove readyStateTimer which was only used for B2G. r=ato
MozReview-Commit-ID: 5vrrMLiSSQW

--HG--
extra : rebase_source : 1d2e0b80b31e0f3149e43b4211935d69f5571d41
2017-05-02 23:27:00 +02:00
squeaks cced8e85eb Bug 1360586: Removed unused maximized variable r=automatedtester
MozReview-Commit-ID: Bd11JNGuuhk

--HG--
extra : rebase_source : 03f5ef5bd4c3f652556820567eaf6670c7d1b2b5
2017-05-09 11:29:59 -07:00
btian bc058622e6 Bug 1351795 - part 2: Remove console.markTimeline. r=baku
MozReview-Commit-ID: EmbscFp9oD4

--HG--
extra : rebase_source : 3f620c05faf82731d384dfca369db62ae8eb871e
2017-05-09 15:34:18 +08:00
Henrik Skupin 517f62ad3a Bug 1352132 - Navigation unit tests have to wait for the page loaded in the newly opened tab. r=ato
There is a race condition for all navigation tests inside the setUp
method of the BaseNavigationTestCase class. The assert for history
items can already happen if the page hasn't been fully loaded yet.
As such a failure is thrown. To fix this we have to wait for the
page being loaded.

MozReview-Commit-ID: 9LbArVT9WqA

--HG--
extra : rebase_source : 0c64798893b64f66f39e7aca16db9b4423d78047
2017-05-08 21:18:24 +02:00
David Burns 26b4a70a73 Bug 1362990: Implement InvalidCookieDomainError in Marionette; r=ato
This implements the error Invalid Cookie Domain as described in
https://w3c.github.io/webdriver/webdriver-spec.html#dfn-invalid-cookie-domain
which is used in the Marionette Cookie Handling code.

MozReview-Commit-ID: EA8Zb03QcMo

--HG--
extra : rebase_source : 2084427475643e2be264cb90c13d674a18eb0bed
2017-05-08 17:08:41 +01:00
David Burns 2b14993449 Bug 1189749: Implement full screen support in Marionette r=ato
This implements the Full Screen method described in the WebDriver specification
(http://w3c.github.io/webdriver/webdriver-spec.html#fullscreen-window) as well as
tests for it.

MozReview-Commit-ID: GKec7GNE6rm

--HG--
extra : rebase_source : 92d427b40d6aeb760783e67d4796a56bb0dbc6cb
2017-05-08 16:41:35 +01:00
Henrik Skupin 4baa8cc9a2 Bug 1361983 - Extend page unload timer if flushEventLoop returns after beforeunload event. r=ato
In cases when the navigation trigger function returns too late and the
beforeunload event has already been fired, the page load currently gets
canceled. This happens because the page unload timer hasn't been set at
this time and the unbeforeunload handler doesn't extend its time.

With this patch a flag is used which indicates if an beforeunload
event already occurred, so when the pageunload timer notifies the page
listener the unload timer can be extended to 5s as expected.

MozReview-Commit-ID: FKK0oGEWijU

--HG--
extra : rebase_source : bf4342cfb439eb85cb87cad922054953e5cb97f3
2017-05-04 11:53:30 +02:00
Henrik Skupin 2c6b09cf46 Bug 1362528 - Let getWindowHandles and getChromeWindowHandles return list of strings r=ato
By the webdriver spec both commands have to return a list of strings for the
window handles. Right now those are numbers.

MozReview-Commit-ID: 5Gn624BaVI1

--HG--
extra : rebase_source : 400acb7a0cc4bc1b1bf09934959a63da1bb5a28c
2017-05-05 22:21:51 +02:00
David Burns 7d9e71c048 Bug 1361987 - Move setWindowRect to not return from a generator. r=ato
setWindowRect is using `return` from a generator which is not valid
javascript. This now populates the response before it is returned to
the client.

MozReview-Commit-ID: 6vSadp59Nrt

--HG--
extra : rebase_source : d642771dd2308c21d1e3398b7387b4ae4e5ffeea
2017-05-05 20:29:04 +01:00
David Burns eda4f81db7 Bug 1361987 - Move maximizeWindow call to not use a return in a generator. r=ato
The maximizeWindow call in Marionette uses return which is not valid javascript.
This change update the response that is then picked up by the server before
returning to the remote end.

MozReview-Commit-ID: JJzsTHba0AK

--HG--
extra : rebase_source : 8b64aa37c7391d60a9de3276cef89a5564bbcd37
2017-05-05 14:49:41 +01:00
Carsten "Tomcat" Book 6ae9b7bb71 Merge mozilla-central to autoland
--HG--
rename : browser/base/content/gcli_sec_bad.svg => devtools/client/themes/images/gcli_sec_bad.svg
rename : browser/base/content/gcli_sec_good.svg => devtools/client/themes/images/gcli_sec_good.svg
rename : browser/base/content/gcli_sec_moderate.svg => devtools/client/themes/images/gcli_sec_moderate.svg
2017-05-05 15:27:55 +02:00
Carsten "Tomcat" Book fdc689ba16 merge mozilla-inbound to mozilla-central a=merge 2017-05-05 15:17:26 +02:00
Dão Gottwald 39669a550b Bug 1054740 - Stop reusing tabs when restoring windows since at this point it's counterproductive rather than a useful optimization. r=mikedeboer
MozReview-Commit-ID: EuM08mEhDqZ

--HG--
extra : rebase_source : 43fc0410045f0efe48db2ae14d56994a90bded5f
2017-05-04 14:26:32 +02:00
Michal Novotny 133308dd0d Bug 1361435 - Remove references to unused pref network.http.bypass-cachelock-threshold, r=mcmanus
Removes references to now unused pref that was added in bug 868441 and removed in bugs 913807 and 1054572. It also removes some leftovers from http channel which have not been removed in those 2 bugs.
2017-05-04 17:37:42 +02:00
Andrew Swan 79a787c063 Bug 1352204 Fix test issues with non-MPC extensions r=kmag
Continue to allow non-multiprocessCompatible extensions in automation.
There are a ton of places that would need to be changed, many of which
will be changing soon anyway with the non-webextensions change in 57
so this is mostly the expedient route to keeping the tree green.

MozReview-Commit-ID: EZZoDVdhLfy

--HG--
extra : rebase_source : f83472bc1c88dd0deadbe485d9002499027ff07f
2017-05-03 08:02:51 -07:00
Henrik Skupin 891449384c Bug 1357634 - Use 'beforeunload' to detect a possible page load. r=ato
Using only the different unload events to detect a page load is
unreliable because of a possible delay in starting the navigation,
which could be triggered by a slowness of the application.

By using 'beforeunload', an event will be received much earlier,
and the unload timer can be extended to a couple more seconds to
wait for the navigation request to start.

If a website has it's own 'beforeunload' listener registered,
a tab modal dialog will be opened by Firefox, and Marionette
returns from the currently active command immediately to allow
the test to handle the dialog.

MozReview-Commit-ID: 6ZUYtFJSSnz

--HG--
extra : rebase_source : 3f7b9d9d0067ed7c65a3bb8774f0a5ae8bc702c2
2017-04-28 10:27:12 +02:00
Andreas Tolfsen c6333df5ad Bug 1355888 - Clarify that -marionette flag works cross platform; r=whimboo
Windows systems only accept singled-dashed -marionette, whereas Unix
platforms accept both that and double-dashed --marionette.  This makes
the documentation true for all supported platforms.

MozReview-Commit-ID: IG7ir2HVoHo

--HG--
extra : rebase_source : f3b2740e47f373e5f784d131f1844f82b4c56990
2017-04-13 15:22:40 +01:00
Andreas Tolfsen 29483db42b Bug 1355888 - Remove unused DEFAULT_PORT constant; r=whimboo
MozReview-Commit-ID: 3lkxXFM7Jz0

--HG--
extra : rebase_source : 2ee28babb8ef080542b7b16bbf2a6e9b852b1a9c
2017-04-13 15:09:30 +01:00