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

15509 Коммитов

Автор SHA1 Сообщение Дата
Patrick McManus 3a1c3e7365 Bug 1281278 - test coverage for h2 push with brotli r=nwgh
MozReview-Commit-ID: 84LZRLsefJD

--HG--
extra : rebase_source : 3e09bebff4b2799471d96e9fcd06925ce36ff251
2017-04-06 13:40:26 -04:00
Chris Manchester c3b5b59a79 Bug 1354265 - Run process output through the stack fixer in mochitests. r=jgraham
MozReview-Commit-ID: LA4LCk9TetD

--HG--
extra : rebase_source : 44d20554e29d947cb293cdde29dc1856a396b103
2017-04-06 12:58:28 -07:00
Henrik Skupin a3baec363f Bug 1354310 - Ensure to use page load timeout for Wait().until() in unit tests. r=ato
Tests which have to wait for a page being loaded should always use a timeout as
set via self.marionette.timeout.page_load.

MozReview-Commit-ID: HFTOYy6WYNk

--HG--
extra : rebase_source : cc2981595e2a62fd761baec8a3c15486832cc0ed
2017-04-07 09:26:23 +02:00
Andreas Tolfsen ab9085d475 Bug 1354323 - Accept string text for sendKeysToDialog command; r=automatedtester
As a follow-up to https://bugzilla.mozilla.org/show_bug.cgi?id=1354323,
this makes the Marionette sendKeysToDialog command take a text field
with a string, instead of the value field with an array of strings.

The relevant WebDriver specification change is
https://github.com/w3c/webdriver/pull/889.

Fixes: https://github.com/mozilla/geckodriver/issues/607

MozReview-Commit-ID: AY52pAK2582

--HG--
extra : rebase_source : f767ae09e5f415e6e944ececfb83c442f23407f3
2017-04-06 23:37:04 +01:00
Sebastian Hengst 04a9d28a8f Backed out changeset c001a2501875 (bug 1343774) for failing talos damp. r=backout 2017-04-07 13:48:53 +02:00
Henry Chang eec96acbf0 Bug 1343425 - Supports nsIURIClassifier.asyncClassifyLocalWithTables. r=baku
We add a new "on-off" protocol PURLClassifierLocal which calls
nsIURIClassifier.asyncClassifyLocalWithTables on construction and
calls back on destruction. Pretty much the same design as PURLClassifier.

In order to avoid code duplication, the actor implementation is templatized
and |MaybeInfo| in PURLClassifier.ipdl is moved around.

Test case is included and the custom event target is not in place for labelling.
The custom event target will be done in Bug 1353701.

MozReview-Commit-ID: IdHYgdnBV7S

--HG--
extra : rebase_source : ab1c896305b9f76cab13a92c9bd88c2d356aacb7
2017-04-07 14:15:16 +08:00
Fred Lin 94e7614dff Bug 1343774 - remove unused functions;r=Honza
MozReview-Commit-ID: CCB8o7mXOPR

--HG--
extra : rebase_source : 207bc91aaf9057b57153e76034f273906f27200b
2017-04-07 11:55:13 +08:00
Carsten "Tomcat" Book 83d84af024 Backed out changeset 2b6c014551e0 (bug 1352699) 2017-04-07 10:48:04 +02:00
Ricky Chien 808805247c Bug 1352699 - Fix mochitest failures r=Honza
MozReview-Commit-ID: 8rhAQw5oflC

--HG--
extra : rebase_source : 609bd5ad639e7bbedbef23b23dc890ff6fb178f3
2017-04-05 22:59:57 +08:00
Phil Ringnalda 3d24dfb690 Backed out 7 changesets (bug 1353074) for crashes in test_accessiblecaret_selection_mode.py
Backed out changeset 0c075043bc43 (bug 1353074)
Backed out changeset 001f220710a2 (bug 1353074)
Backed out changeset 9c1ca76fba9b (bug 1353074)
Backed out changeset 8dcd190a0a59 (bug 1353074)
Backed out changeset 23409efe536f (bug 1353074)
Backed out changeset 8112153e0793 (bug 1353074)
Backed out changeset 2670eec1ed8a (bug 1353074)
2017-04-06 22:11:45 -07:00
Hiroyuki Ikezoe 7982c47b04 Bug 1354053 - Enable word-spacing interpolation test. r=birtles
MozReview-Commit-ID: 7ojKarwDiyE

--HG--
extra : rebase_source : 7731d00f83845be1adacf3d52ab87fb08cc1b293
2017-04-07 10:13:37 +09:00
Andreas Tolfsen 782bf7c317 Bug 1353074 - Components ctor test should not throw; r=maja_zf
Testing the return value is misleading in this case.  What we want to
test is that it does not throw due to a permissions issue.

MozReview-Commit-ID: 2Wbwou9opyF

--HG--
extra : rebase_source : cd056ed38b9cf7b9eb095635209fbe6b090721fd
2017-04-03 19:20:19 +01:00
Andreas Tolfsen 74899f126c Bug 1353074 - Run wrappedJSObject execute script tests in all sandboxes; r=maja_zf
MozReview-Commit-ID: 5u2u5alGb7Z

--HG--
extra : rebase_source : 4a5f4e3654c38d8f177410d23cd93db2ab20e7e3
2017-04-03 19:19:05 +01:00
Andreas Tolfsen 31840306ac Bug 1353074 - Run Components permission test in all sandboxes; r=maja_zf
The Components.classes constructor should throw an error in both the
mutable and the "default" sandbox.

MozReview-Commit-ID: C40nZNaVWwz

--HG--
extra : rebase_source : f02506f16ff409761ba09ae0f32ff2902cdf07a3
2017-04-03 19:18:25 +01:00
Andreas Tolfsen efe0198497 Bug 1353074 - Run globals execute script tests in all sandboxes; r=maja_zf
We accidentally only ran them in "default" and "system" before, and also
one of the arguments in the system globals test was wrong.

MozReview-Commit-ID: DmBYGsZaIVP

--HG--
extra : rebase_source : c9f1493ce3faed0ec2e5ad6125a4f7811a1fef03
2017-04-03 19:17:24 +01:00
Andreas Tolfsen 8cf451fca6 Bug 1353074 - Test arguments in all sandboxes; r=maja_zf
We were previously missing a test for the arguments variable that is
implicitly exposed to functions.

MozReview-Commit-ID: IC6aJcUsyhd

--HG--
extra : rebase_source : 9039dcb7fcea681d8c9cd729cca8c55701631a5c
2017-04-03 19:15:13 +01:00
Andreas Tolfsen 3516605970 Bug 1353074 - Use tuples for script arguments; r=maja_zf
The Python standard library uses tuples to define arguments for functions,
whenever they are invoked through meta programming.

The Marionette client only allows the list type for backwards
compatibility, so we prefer tuples in this case.

Another good argument for tuples is that tuples are immutable.

MozReview-Commit-ID: 72zPzYvBz7Q

--HG--
extra : rebase_source : 2406e92b8bec8a965df6457bb166fd9761513b1e
2017-04-03 19:14:16 +01:00
Andreas Tolfsen 23a0800f6f Bug 1353074 - Make unload event safe for introspection from content; r=maja_zf
Marionette does not protect the unloadHandler in
testing/marionette/evaluate.js from content introspection or
modification, which can happen when web frameworks override
window.addEventListener/window.removeEventListener.

The script evaluation module used in Marionette relies on
sandbox.window.addEventListener/removeEventListener to throw an error when
script execution is aborted due to the document unloading itself.  If the
window.addEventListener/removeEventListener functions have been overridden
to introspect the objects that are passed, they may inadvertently touch
objects originating from chrome space, such as the unloadHandler.

Because the Gecko sandboxing system put in place strict security measures
to prevent accidental chrome-space modification from content, inspecting
the unloadHandler will throw a permission denied error once the script
has finished executing.

We have found examples in the wild of this in particular with the Angular
web framework.  This patch makes the unloadHandler safe for introspection
from web content.

Fixes: https://github.com/mozilla/geckodriver/issues/515
MozReview-Commit-ID: E2LgPhLLuDT

--HG--
extra : rebase_source : 6fe4f61fd18f42fb5332a664189f3ea919db28c5
2017-04-03 18:36:43 +01:00
Wes Kocher 02ea689f15 Backed out changeset f898176c408d (bug 1281278) for xpcshell failures a=backout 2017-04-06 15:48:18 -07:00
Wes Kocher 4778bff897 Merge m-c to autoland, a=merge 2017-04-06 15:10:53 -07:00
Wes Kocher 0c3144c6f6 Merge inbound to central, a=merge 2017-04-06 15:01:34 -07:00
James Graham 7daf9955f1 Bug 1353858 - Fix ASAN leak detection in mochitest, r=ato
The gecko messages are now in the "process_output" action, rather than
in the "log" action (except for a few legacy cases), so examine both
when looking for LSAN messages.

MozReview-Commit-ID: 82r1p8WLwFa

--HG--
extra : rebase_source : 5af1c529e58f5ba90a3fd222e3cbbc67a850a08c
2017-04-06 17:15:01 +01:00
Ben Hearsum 0c31e96434 bug 1354115: remove special WebSense rules for non-blacklisted and unknown WebSense users. r=jlorenzo 2017-04-06 10:17:24 -04:00
Patrick McManus 01f6a3a07d Bug 1281278 - test coverage for h2 push with brotli r=nwgh
MozReview-Commit-ID: 84LZRLsefJD

--HG--
extra : rebase_source : 44aff3361b08ef412ae747097ab6e68adcabb28f
2017-04-06 13:40:26 -04:00
Aki Sasaki 4c2cc9870a bug 1354289 - m-c l10n_bumper fixes. r=rail a=release DONTBUILD
MozReview-Commit-ID: 7jVpr5RPoTy

--HG--
extra : rebase_source : cf193acc0f4746060483ab35a4051c577af52995
2017-04-06 13:42:12 -07:00
Joel Maher 5e5cbbbbd1 Bug 1344486 - Intermittent TEST-UNEXPECTED-PASS | /html/semantics/scripting-1/the-script-element/nomodule-set-on-async-classic-script.html. fail early if noModule. r=jgraham
MozReview-Commit-ID: K8qMR6fICXH
2017-04-06 07:30:08 -04:00
Carsten "Tomcat" Book 207b516e89 merge mozilla-inbound to mozilla-central a=merge 2017-04-06 12:50:50 +02:00
Ting-Yu Chou eac5520b11 Bug 1333003 part 7 - Add jittest-chunked to the suites so the tests are run. r=grenade
MozReview-Commit-ID: 8C5Qr4WuBTu

--HG--
extra : rebase_source : a2ffb528058a20d2e0d8fcd05a9e4a56e97fa051
2017-03-17 12:23:44 +08:00
Ting-Yu Chou 5dd0d99f75 Bug 1333003 part 6 - Fix test scripts to run ASan on Windows. r=ted
MozReview-Commit-ID: 6F9UXgTRb2Y

--HG--
extra : rebase_source : c618544db62381087f4190d3b12c57c340606b15
2017-03-10 12:08:34 +08:00
Ting-Yu Chou f2c09ab084 Bug 1333003 part 3 - Add mozharness configs for Windows x64 ASan build jobs. r=grenade
MozReview-Commit-ID: 7Ng6uwPMl9m

--HG--
extra : rebase_source : f043c3e428d8572725122922fe8eedd6e4867bda
2017-03-10 14:15:22 +08:00
David Keeler 7034d3800d bug 1353789 - unship deployment-checker r=Felipe,jcj
MozReview-Commit-ID: 3Q5v97JVs2X

--HG--
extra : rebase_source : 978054d6bbc1a1d2a1adcd8edf606c0bdc8150de
2017-04-05 09:56:26 -07:00
William Lachance dfdc5f2814 Bug 1353527 - Tag mozdevice 0.50 r=bc
MozReview-Commit-ID: 8MMuTDX7uBH

--HG--
extra : rebase_source : 6c632ad1cca513796b80d98050994ebb6d5cce6b
2017-04-04 16:44:07 -04:00
Carsten "Tomcat" Book 7a670cdd01 merge mozilla-inbound to mozilla-central a=merge 2017-04-05 14:33:35 +02:00
Andrea Marchesini f74a9b26a8 Bug 1353197 - Add a test for URLSearchParams handling of non-ASCII keys in the record<> ctor, r=annevk 2017-04-05 08:09:33 +02:00
Andreas Tolfsen 7be8673acf Bug 1350887 - Warn when non-loopback connections are allowed; r=whimboo
MozReview-Commit-ID: LG8f5q5QbD6

--HG--
extra : rebase_source : 4e6fa8263633aeafef753e4157fce4a6f14ab78f
2017-03-28 17:06:06 +01:00
Andreas Tolfsen 272199f4fe Bug 1350887 - Propagate errors thrown when starting server.TCPListener; r=whimboo
Errors thrown are printed to console and there is no point in having a
custom catch to print it.

This also makes it possible to start Marionette programmatically without
worrying about disappearing errors.

MozReview-Commit-ID: GGhyCyYqJg

--HG--
extra : rebase_source : 28937d94c8688c05887dcbf7dcf862e7bdc3a6c7
2017-03-28 16:48:20 +01:00
Andreas Tolfsen cc9e1bdd13 Bug 1350887 - Bind sacrificial goat to ephemeral port; r=whimboo
Port 666 is in the protected port range and can not normally be bound
to unless the process is running with sudo permissions.

We can instead bind to port 0, which will give us a system-defined port
in the epemeral range.

MozReview-Commit-ID: Ld6BDMhtbck

--HG--
extra : rebase_source : 0c2ae692dd675c664898e004c29a0e342fd9755b
2017-03-28 16:46:54 +01:00
Andreas Tolfsen 8ecaf68f51 Bug 1350887 - Fall back to deprecated pref if it exists; r=whimboo
This is a follow-up to address a fallout caused by bug 1344748 whereby
deprecated preferences relevant to Marionette are no longer being
picked up.  This is preventing trace logs from being emitted in CI.

The old logic related to falling back to a deprecated preference is
faulty in that it the preferred, new preference always exists through
the power of testing/marionette/prefs.js.  This patch introduces a new
helper method getPref that first looks at whether the preferred pref
is set, and only falls back to the deprecated if it isn't set and the
deprecation preference exists.

MozReview-Commit-ID: 8DeawLAELyK

--HG--
extra : rebase_source : d75ff2eff3941c2cb074d4f3983a70ebd66b8043
2017-03-27 14:28:32 +01:00
Andreas Tolfsen 914224d736 Bug 1350887 - Include Marionette prefs amongst defaults; r=ted,whimboo
The Marionette component ships in Firefox, but is not enabled by default.
We want to facilitate activating Marionette at runtime by flipping
the marionette.enabled preference, and showing the Marionette related
preferences in about:config helps discoverability.

It is also useful to rely on the preferences' default values so that
they do not have to be hardcoded in the component.

When Marionette is enabled by setting marionette.enabled to true, a set of
recommended automation preferences found in testing/marionette/server.js
are set if the user has not overriden/user-defined one of them and
marionette.prefs.recommended is true (default).  When Marionette is
stopped, the altered preferences are reset.

MozReview-Commit-ID: 3HLnEI0TEBB

--HG--
extra : rebase_source : 8be91ed46c443dd120cbc4b42c729cf3ae250b5f
2017-03-29 18:25:55 +01:00
Andreas Tolfsen ceccc2692a Bug 1350887 - Add general overview documentation to Marionette; r=whimboo
MozReview-Commit-ID: HwMOQVxwIDN

--HG--
extra : rebase_source : 39e98771948eb7baa8df3a68fc1023c573964374
2017-04-03 15:00:05 +01:00
Andreas Tolfsen eb895f6667 Bug 1350887 - Ensure Marionette prefs file has sensible name; r=maja_zf
Files appended to JS_PREFERENCE_FILES are moved into the
objdir/dist/bin/defaults/pref directory, shared with default global
preferences from other parts of Gecko.

To ensure Marionette's preference file ends up in this directory with
a sensible name, we put it in testing/marionette/prefs/marionette.js so
that it ends up in the objdir as dist/bin/defaults/pref/marionette.js.

MozReview-Commit-ID: 9YJ7vysDjSJ

--HG--
rename : testing/marionette/prefs.js => testing/marionette/prefs/marionette.js
extra : rebase_source : a5f275ed051eac659e89b55e8dfe950b67885618
2017-03-30 14:52:16 +01:00
bechen 09f08159e8 Bug 1318542 - Disable testcase 3_track.html, see bug1342063, the testcase un-expected-PASS on OSX 10.10. r=alwu
MozReview-Commit-ID: LBZuyqy52ZJ

--HG--
extra : rebase_source : fb33478db75cb3b6f72b65b8bd23c47046ec9b43
2017-04-05 10:48:25 +08:00
Maja Frydrychowicz d16dcf0eb4 Bug 1345653 - Test pointer move with element origin and click with navigation; r=ato
Verify that there is no hang when we use pointer actions to
perform a click that results in navigation and document unload.

MozReview-Commit-ID: EO5FClnxML5

--HG--
extra : rebase_source : e4ea787bd7ad583d8141aef9ec2bf63df33ef912
2017-04-04 00:30:00 -04:00
Maja Frydrychowicz 708c0a069b Bug 1345653 - Add pause and click to actions client API; r=ato
MozReview-Commit-ID: 9yMUtEWt2tx

--HG--
extra : rebase_source : c44e20ac6d9af55b8257da81ee2a74f3fc608dff
2017-04-04 00:01:43 -04:00
Maja Frydrychowicz 0429c52c84 Bug 1345653 - Handle document unload when dispatching actions; r=ato
This fixes the reported hang that occurs after a pointer click
action resulting in navigation.

MozReview-Commit-ID: A9SBhextVLH

--HG--
extra : rebase_source : 7de7f06a1c05e0e52a03f1850187926aa13a4b08
2017-04-04 00:01:11 -04:00
Wes Kocher bceaacd2b8 Merge inbound to central, a=merge 2017-04-04 11:25:13 -07:00
Sebastian Hengst 05dc53ce54 Backed out changeset 5146b0e10a73 (bug 1350887) for failing 541406-1.html with assertion aEditor at IMEContentObserver.cpp:285. r=backout
--HG--
rename : testing/marionette/prefs/marionette.js => testing/marionette/prefs.js
2017-04-04 15:59:20 +02:00
Sebastian Hengst acb28d567c Backed out changeset 0b1355194d54 (bug 1350887) 2017-04-04 15:54:43 +02:00
Sebastian Hengst 7cd5efe8b6 Backed out changeset eef96bc84d1f (bug 1350887) 2017-04-04 15:54:39 +02:00
Sebastian Hengst 3874eb2afd Backed out changeset 0a6f238454c3 (bug 1350887) 2017-04-04 15:54:35 +02:00