Commit Graph
17672 Commits
Author SHA1 Message Date
Aryeh Gregor 1258553ff9 Bug 1388775 - extractContents should copy nodes in tree order, not backwards; r=smaug
Per spec, Range.prototype.extractNodes() should copy the nodes in tree
order:

https://dom.spec.whatwg.org/#dom-range-extractcontents

Gecko instead copies them in reverse order.  This causes us to fail a
wpt MutationObserver test.

MozReview-Commit-ID: 8MYXGhDsJCd
2017-08-09 18:40:21 +03:00
Sebastian Hengst 2bf4f14895 merge mozilla-central to autoland. r=merge a=merge 2017-08-10 17:23:44 +02:00
Sebastian Hengst c5c6ea74cc merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: mN7ThnGN3X
2017-08-10 17:20:12 +02:00
Sebastian Hengst 06c0230a2f Backed out changeset 85b4584e1a83 (bug 1384969) for dropping debug and trace output from Marionette. r=backout a=backout
MozReview-Commit-ID: Bc8BwL6aatK
2017-08-10 11:45:36 +02:00
Sebastian Hengst 5a7d596930 Backed out changeset 78d87b59f5a7 (bug 1370508) for unexpected pass of wpt-reftest /css/css-namespaces-3/syntax-013.xml. r=backout on a CLOSED TREE 2017-08-10 10:23:22 +02:00
Kartikaya Gupta ef49c57fb1 Bug 1388833 - Force-enable hardware acceleration for test suites that enable WebRender, because HWA is now a WR requirement. r=ahal
MozReview-Commit-ID: EtUdSeDCmFZ
2017-08-09 16:23:04 -04:00
Aryeh Gregor 01a3e64b81 Bug 1388746 - Do not split start/end text nodes in deleteContents/extractContents; r=smaug
If a range endpoint is in the middle of a text node, and you call
deleteContents() or extractContents(), the spec says to delete the data
from the node.  In the case of extractContents(), the new text node
that's inserted into the DocumentFragment is a clone with its data set
to the bit that was deleted.
<https://dom.spec.whatwg.org/#dom-range-deletecontents>
<https://dom.spec.whatwg.org/#dom-range-extractcontents>

We don't do this.  Instead, we split the text node.  Then the bit to
delete is deleted naturally at a later stage together with all the other
nodes.

The result is the same, but on the way there we do a bunch more node
mutations.  This causes extra mutation records, which cause us to fail a
WPT test.  Chrome passes.  Changing to match the spec actually reduces
our lines of code anyway.

MozReview-Commit-ID: FTTV5yNSj71
2017-08-09 17:39:06 +03:00
Dão Gottwald 285e84fbf4 Bug 1386964 - Set default tab height, mark flaky viewport-units-css2-001.html subtests as passing on Linux as well as anchoring-with-bounds-clamping.html on Mac. r=dholbert
MozReview-Commit-ID: 2gNQSImPfw1
2017-08-10 07:37:47 +02:00
Xidorn Quan eb1ddd7394 Bug 1370508 - Enable stylo on generic XML documents. r=heycam
MozReview-Commit-ID: 4XQ9RPQ7oa1
2017-08-09 19:57:33 +10:00
Phil Ringnalda 8450a6bd99 Backed out changeset 4c274336b01e (bug 1386964) for unexpected passes in /scroll-anchoring/anchoring-with-bounds-clamping.html
MozReview-Commit-ID: Id1MCoaN242
2017-08-09 21:15:27 -07:00
Xidorn Quan 03d31cc943 Bug 1383992 part 2 - Enable some more mochitests for stylo. r=jmaher
MozReview-Commit-ID: AnZAxhPwwEB
2017-08-09 08:31:26 +10:00
Ryan VanderMeulen 29860c1c91 Merge m-c to autoland. a=merge 2017-08-09 18:51:26 -04:00
Dão Gottwald 798cb1aa3a Bug 1386964 - Set default tab height and mark flaky viewport-units-css2-001.html subtests as passing on Linux. r=dholbert
MozReview-Commit-ID: 5gLgepyDiaW
2017-08-09 22:05:22 +02:00
Henrik Skupin 93849c193b 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
2017-08-08 19:48:35 +02:00
Kartikaya Gupta 5d1dbf70ad Bug 1388726 - Force-enable acceleration in the regular linux reftest suite. r=jmaher,jrmuizel
MozReview-Commit-ID: FNU7hEN3Jkf
2017-08-09 12:48:08 -04:00
Kartikaya Gupta b67d4f49d1 Bug 1388726 - Fix the pref used to disable acceleration in linux reftest-unaccelerated runs. r=jmaher
MozReview-Commit-ID: HaYzi1x87q1
2017-08-09 11:17:49 -04:00
Mark Banner 841c44632e Bug 1388725 - Fix add_task in SpawnTask.js to give a useful crash for unhandled exceptions. r=jmaher
MozReview-Commit-ID: 6ZTKhi1eZ4P
2017-08-09 14:16:27 +01:00
Andreas Tolfsen 60ff2bb130 Bug 1388365 - Test window rect state. r=whimboo
MozReview-Commit-ID: 1MoA370SUeW
2017-08-08 14:59:37 +01:00
Andreas Tolfsen cc0e7d5279 Bug 1388365 - Return value from assert_success. r=whimboo
Return the contents of value, if it exists, after asserting the response
was successful.

assert_success can be passed a value which will assert that the response's
value matches an expected value.  If you want to compare a subsection
of the response it may be convenient to for the value to be returned
after it has been asserted that the response was a success.

MozReview-Commit-ID: 1dyzQIazYEN
2017-08-08 15:37:15 +01:00
Andreas Tolfsen 07ffb94a86 Bug 1388365 - Add minimize and fullscreen to client.Window. r=whimboo
MozReview-Commit-ID: KMqJmnAwGEY
2017-08-08 15:36:38 +01:00
Andreas Tolfsen 312af58518 Bug 1388365 - Add client.Window#state and #rect. r=whimboo
Introduces two new APIs on client.Window in the WPT WebDriver client:
client.Window#state and client.Window#rect.  The latter is used to reduce
raw calls amongst client.Window's shorthands to GET window/rect.

MozReview-Commit-ID: Kf4P2q93QaL
2017-08-08 14:59:09 +01:00
Andreas Tolfsen 8647b81de7 Bug 1388365 - Return window to normal state. r=whimboo
If a test leaves the window in maximized, minimized, or fullscreen
state it should be returned to the normal state the next time a session
is requested.

MozReview-Commit-ID: IALlITFVz1w
2017-08-08 14:57:24 +01:00
Andreas Tolfsen 602d703d03 Bug 1388365 - Vendor webdriver 0.29.0. r=whimboo
MozReview-Commit-ID: 3vhk9kfmDHD
2017-08-08 15:10:55 +01:00
Andreas Tolfsen e5d877847d Bug 1388365 - Upgrade to webdriver 0.29.0. r=whimboo
Upgrades the webdriver crate dependency to 0.29.0, which contains some
backwards incompatible changes for RectResponse.  This type has been
split in two, WindowRectResponse and ElementRectResponse.

The former type contains a new "state" field which is already implemented
by Marionette.  Because geckodriver is used with a range of earlier
Firefoxen, it defaults to "normal" window state if the field is not
returned from Marionette.  This is acceptable.

MozReview-Commit-ID: FRxppRVmiZl
2017-08-08 15:09:45 +01:00
Valentin Gosu c44f3dfa97 Bug 1380617 - Fix web platform tests meta to expect punycode encoding r=annevk
MozReview-Commit-ID: 4PU6Zg105SB
2017-08-09 17:44:12 +02:00
muthuraj90ec bc3f387cca Bug 1370403 - Synthesize contextmenu MouseEvent when performing webdriver actions; r=maja_zf
MozReview-Commit-ID: 85nQTsTRttF
2017-08-09 07:51:18 -04:00
Wes Kocher a5ac8e39ed Merge m-c to autoland a=merge
MozReview-Commit-ID: 2qLtb79Nlhs
2017-08-08 15:26:30 -07:00
Wes Kocher ea3488f133 Merge inbound to central, a=merge
MozReview-Commit-ID: HpVAbc2vi78
2017-08-08 15:14:28 -07:00
Aryeh Gregor 94394a4544 Bug 1388119 - Drop support for createEvent("ErrorEvent"/"PopStateEvent"); r=smaug
They were just dropped from the spec:

https://github.com/whatwg/dom/issues/362
https://github.com/whatwg/dom/pull/489

ErrorEvent we never supported anyway until it was added recently to
match the spec.  PopStateEvent is not supported by WebKit, Blink is
planning to try dropping support, our telemetry shows usage is
basically zero, and we never supported any way to initialize it anyway.

The changes to Document-createEvent.html and Document-createEvent.js are
taken from upstream.  The other wpt changes are new in this commit.

MozReview-Commit-ID: A6GzhLwL08l
2017-08-07 21:19:59 +03:00
Carsten "Tomcat" Book b9fbb93a18 Merge mozilla-central to autoland 2017-08-08 13:25:29 +02:00
Carsten "Tomcat" Book b83067d218 merge mozilla-inbound to mozilla-central a=merge 2017-08-08 13:18:14 +02:00
dagasatvik 91d42b2553 Bug 1385820 - Enable the ESLint no-new-wrappers rule across mozilla-central; r=markh,standard8
MozReview-Commit-ID: FvJO3ibeiwg
2017-08-07 23:57:51 +05:30
Andreas Tolfsen 35421b78bf Bug 1388072 - Drop Marionette fallback prefs from geckodriver. r=automatedtester
The marionette.defaultPrefs.port and marionette.logging preferences were
removed in https://bugzil.la/1344748, which shipped in Firefox 54.
Because the next version of geckodriver (0.19.0) will only support
Firefox 55 and greater, it is safe to remove the fallbacks.

MozReview-Commit-ID: 4fhtoRasqyB
2017-08-07 16:13:54 +01:00
J. Ryan Stinnett e066dda46e Bug 1385027 - Update Stylo test annotations for Windows. r=manishearth
MozReview-Commit-ID: 7FPPAga0jgW
2017-08-01 16:32:48 -05:00
Geoff Brown db86d72fd1 Bug 1385629 - Use correct tooltool cache directory for Marionette and Firefox-UI tests on osx; r=whimboo 2017-08-08 09:31:57 -06:00
Alphan Chen d3e8744fcd Bug 1362075 - Correct window.open() URL failure exception. r=ehsan 2017-08-08 02:07:00 +02:00
Aryeh Gregor 428fdb587b Bug 1388069 - Support createEvent("FocusEvent"); r=smaug
This is the one event we don't support in createEvent() that Blink
doesn't want to drop support for because they see nontrivial usage:

https://www.chromestatus.com/metrics/feature/timeline/popularity/1171

Supporting it shouldn't hurt us and might make us work better on
whatever the sites are that Blink is hitting.

MozReview-Commit-ID: FbfTd6AYnDg
2017-08-07 20:52:41 +03:00
Kartikaya Gupta 2d47644da5 Bug 1388423 - Get full rust backtraces everywhere. r=jmaher
MozReview-Commit-ID: 2Mfrpupz7As
2017-08-08 12:34:55 -04:00
Andrew Halberstadt fb3e60433d Bug 1328830 - Add ability to set prefs from the DEFAULT section of a mochitest manifest, r=jmaher
This will only work if runByManifest is enabled, otherwise the harness will error out. It's also
illegal to set this on an individual test, it must be on the entire manifest.

MozReview-Commit-ID: LWYa3Sk1uyW
2017-07-20 09:31:32 -04:00
Andrew Halberstadt 1f67d4f389 Bug 1328830 - Switch mochitest's --run-by-dir feature to --run-by-manifest, r=gbrown
MozReview-Commit-ID: LWYa3Sk1uyW
2017-07-20 12:10:15 -04:00
Andrew Halberstadt 999c11ec3e Bug 1328830 - [manifestparser] Check line continuation before looking for next key, r=jmaher
Currently manifestparser will only look for line continuations *after* looking for a key. This means
that line continuations cannot contain key separators. For example, this:

    [test]
    foo=
      bar=baz

gets treated as:

    {'name': 'test', 'foo': '', 'bar': 'baz'}

Here, bar=baz will be treated as a new key/value pair despite the indentation. This patch switches
the order around, so we look for a continuation first. Now, it is only treated as a continuation if
the indent is greater than the indent of the preceding key.

So this manifest:

    [test]
    foo=bar
      baz=fleem

is a continuation and results in:

    {'name': 'test', 'foo': 'bar\nbaz=fleem'}

But this manifest:

    [test]
      foo=bar
      baz=fleem

is not a continuation, and yields:

    {'name': 'test', 'foo': 'bar', 'baz': 'fleem'}

MozReview-Commit-ID: FAMP5TUIo9q
2017-07-19 14:48:01 -04:00
Tobias Schneider d922007b79 Bug 1369360 - (Intermittent intersection-observer/timestamp.html) Log time deltas. m=me,test-only 2017-08-07 18:24:13 -07:00
Wes Kocher 3d5fc0faac Merge inbound to central, a=merge
MozReview-Commit-ID: 5tBON9YUdAO
2017-08-07 15:23:46 -07:00
Andreas Tolfsen 1f8871497b 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
2017-08-04 20:04:12 +01:00
Carsten "Tomcat" Book 1da26e4b9f Merge mozilla-central to autoland 2017-08-07 13:16:54 +02:00
Phil Ringnalda b97dad4d61 Bug 1303802 - reenable rootNode test chunk now that we don't have a rootNode implementation so the rootNode test which failed when we had one now passes when we don't have one
MozReview-Commit-ID: 45C8gxzo8p3
2017-08-06 18:41:50 -07:00
Matthew Noorenberghe a26c0eb0c9 Bug 1387634 - Update unsupported @autocomplete token list to reflect the autofill MVP. r=smaug
Also remove stale expected failures for region and locality.

MozReview-Commit-ID: 7McvaCWfY3a
2017-08-04 16:15:31 -07:00
James Graham d2ce424a6e Bug 1387534 - Update test metadata to reflect the fact it fails on all OSX builds, a=testonly
MozReview-Commit-ID: 4vOGDMIMN26
2017-08-07 11:53:51 +01:00
Aryeh Gregor d77578ce2b Bug 1363658 - Serializing doctypes should omit internal subset; r=hsivonen
Changes to match spec, Chrome, and Safari.  The spec was discussed and
is what we want -- we already expand entities from the internal subset
when parsing, so there's no need to remember their definitions.  Indeed
it seems like it would make sense to alter the parser to throw away the
internal subset entirely at the end of parsing.

MozReview-Commit-ID: LDvYAqSZkgE
2017-08-03 15:33:55 +03:00
Aryeh Gregor 7827cd2dfb Bug 1370835 - Match new standard for span IDL property; r=mystor
https://github.com/whatwg/html/issues/2705
https://github.com/whatwg/html/pull/2734

MozReview-Commit-ID: 7Sso9sO8f7y
2017-08-03 21:24:56 +03:00