Commit Graph

7681 Commits

Author SHA1 Message Date
L. David Baron
552f835723 Bug 1479859 patch 2 - Send nsChangeHint_UpdateContainingBlock when containing block-ness changes due to one property change, while another property that might trigger containing block-ness doesn't do so because of the frame type. r=emilio
This fixes a rather subtle bug.  What the underlying code here is trying
to do is remove nsChangeHint_UpdateContainingBlock when some properties
that influence whether a frame is a containing block for absolutely
positioned or fixed positioned elements have changed, but the final
calculation of being a containing block has not changed.  However, the
old code was using a function that tested whether the style could
*possibly* lead to a frame being a containing block.  Some of the
properties (like the transform properties) that lead to being a
containing block, for example, don't apply to non-replaced inlines.
Some, however, do (such as 'filter').  So if there's a dynamic change
adding or removing a filter, on an inline that also has an *ignored*
transform property (like 'transform' or 'perspective') set, then the
code prior to this patch causes us to remove the UpdateContainingBlock
hint.

This patch fixes things by testing whether being a containing block
could have changed for *any* type of frame, by separately testing the
changes.

The added tests fail without the patch and pass with the patch, viewed
in isolation.  However, without the previous patch, test 003 passes.

Test 003 also fails in Chrome (but 001 and 002 pass).

Differential Revision: https://phabricator.services.mozilla.com/D2814

--HG--
extra : rebase_source : 0a5dbb15a058cf4a43d989bf53f042c5b718e24d
2018-08-07 15:02:07 -07:00
L. David Baron
7642040d1b Bug 1479859 patch 1 - Make inline frames be abs-pos containing blocks for reasons other than being relatively positioned. r=emilio
The basic change here is making nsCSSFrameConstructor::ConstructInline
use the function nsIFrame::IsAbsPosContainingBlock rather than testing
for only one of the conditions in it (being relatively or absolutely
positioned).  The rest of the code changes follow from that change.

I tested locally that the added test fails without the patch and passes
with it (either with or without the next patch).

Note that this causes a regression of three web-platform-test reftests:
  testing/web-platform/tests/css/css-contain/contain-paint-002.html
  testing/web-platform/tests/css/css-contain/contain-paint-011.html
  testing/web-platform/tests/css/css-contain/contain-paint-012.html
which will be fixed in patch 4, since that fix is easier to write after
patch 2.

Differential Revision: https://phabricator.services.mozilla.com/D2813

--HG--
extra : rebase_source : 0d374628207c234bcd7cf4e320188994fc2680b8
2018-08-07 15:02:07 -07:00
L. David Baron
fe449c667f Bug 1480454 - Part f: Run mach wpt-manifest-update to pick up change from part a. r=me
--HG--
extra : rebase_source : 614ff91cfe76497ff174b8616383dca01978fc9e
2018-08-07 15:00:06 -07:00
Brindusan Cristian
381e833a9d Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-08-08 00:58:40 +03:00
Brindusan Cristian
f8555a213f Merge inbound to mozilla-central. a=merge 2018-08-08 00:51:43 +03:00
Jean-Yves Avenard
b6cff64392 Bug 1481397 - P2. Update test expectations. r=jgraham
Also, enable changeType MSE tests.

Depends on D2837

Differential Revision: https://phabricator.services.mozilla.com/D2870
2018-08-07 22:46:14 +02:00
Narcis Beleuzu
c0ef44e6f9 Backed out changeset 249187863dd9 (bug 1478847) for wptlint failure on MANIFEST.json. CLOSED TREE 2018-08-07 20:31:18 +03:00
Anny Gakhokidze
b6ad54fb42 Bug 1478847 - Fix timeouts for html/browsers/the-window-object/window-open-noopener.html web-platform test, r=jgraham
MozReview-Commit-ID: 8EYpr2j9yMs

Differential Revision: https://phabricator.services.mozilla.com/D2864

--HG--
extra : moz-landing-system : lando
2018-08-07 15:44:09 +00:00
arthur.iakab
1788981183 Merge mozilla-central to autoland 2018-08-07 18:45:15 +03:00
arthur.iakab
2d528aa145 Merge mozilla-central to inbound 2018-08-07 12:41:15 +03:00
Ms2ger
768063d35d Bug 1478713 - Add some tests for the Wasm JS API; r=luke+bbouvier
--HG--
rename : testing/web-platform/mozilla/tests/wasm/js/harness/wasm-constants.js => testing/web-platform/tests/wasm/jsapi/wasm-constants.js
rename : testing/web-platform/mozilla/tests/wasm/js/harness/wasm-module-builder.js => testing/web-platform/tests/wasm/jsapi/wasm-module-builder.js
2018-08-07 10:18:34 +02:00
Ms2ger
82d9496d6a Bug 1480454 - Part a: Add a wasm setting to the wpt .ini expectation files; r=jgraham 2018-08-07 10:18:31 +02:00
Ciure Andrei
9f8ebbde60 Merge inbound to mozilla-central. a=merge 2018-08-07 00:58:13 +03:00
Andrea Marchesini
aeaf76c5f4 Bug 1481195 - The current document should have access to its PerformanceTimingData, r=valentin 2018-08-06 21:27:00 +02:00
Thomas Wisniewski
2e507aec05 Bug 1453301 - Stop supporting about:blank in fetch to match the spec. r=baku
MozReview-Commit-ID: DMku5SAunfo

--HG--
extra : rebase_source : d9cf72be144b41cd5d8c6dbe4042a6e835c12ef3
2018-08-03 21:52:36 -04:00
Thomas Wisniewski
a0847cc720 Bug 1362354 - Handle XHRs with aborted bindings as aborted rather than network errors. r=baku
MozReview-Commit-ID: 86e00dRe6qc

--HG--
extra : rebase_source : 992523d5ca534923b4e1b38c7e5e0351dcf322eb
2018-08-02 19:07:07 -07:00
Yaron Tausky
1a485b81c7 Bug 1264182: Hide URL.createObjectURL from ServiceWorker r=mrbkap,asuth
The appropriate lifetime for URLs created with URL.createObjectURL turned
out to be tricky to define, so it was decided to hide it from service
workers altogether. (https://github.com/slightlyoff/ServiceWorker/issues/688)

This commit implements this change and adds a web platform test to verify it.
It also exposes the MediaSource variant of URL.createObjectURL in DedicatedWorker
and SharedWorker contexts in order to comply with the WebIDL spec (see
https://github.com/w3c/media-source/issues/168#issuecomment-410269436).

Differential Revision: https://phabricator.services.mozilla.com/D2728

--HG--
extra : moz-landing-system : lando
2018-08-07 11:48:51 +00:00
Kyle Machulis
37669b3f4a Bug 1473833 - Skip object loading when given unrecognized mime type; r=bzbarsky
At the moment, a tag that has document type capabilities will try to
load tag content with invalid MIME types as a document. This patch
will cause the load to fail silently instead.

This will cause failures in certain WPTs that expect plugins to be
present to fill in MIME type requirements, which we currently don't
have available on CI. These WPTs have been disabled for the moment.

MozReview-Commit-ID: 9JGR4LClE5x

Differential Revision: https://phabricator.services.mozilla.com/D2542

--HG--
extra : moz-landing-system : lando
2018-08-07 00:53:58 +00:00
Jean-Yves Avenard
fd112df994 Bug 1481176 - P5. Enable more media-capabilities wpt. r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D2791
2018-08-07 19:21:59 +02:00
Sebastian Hengst
254c0034d4 Bug 1480995 - Set css-pseudo/interfaces.html's checks of CSSPseudoElement to fail on release and beta. r=jgraham
MozReview-Commit-ID: 4KOAAvgqVhX

--HG--
extra : rebase_source : 5ffc7221ea82b229b3f0711abeac68ab9b8e47dd
2018-08-05 13:51:17 +03:00
Andrea Marchesini
391a97c993 Bug 1480960 - Remove a wrong WPT meta file related to performance API, r=me 2018-08-05 00:26:02 +02:00
Andrea Marchesini
6a3d862277 Bug 1462879 - PerformanceNavigationTiming must be notified correctly - part 3 - Update the channel properties before notify, r=valentin 2018-08-04 08:54:58 +02:00
Andrea Marchesini
dfba5ad9b9 Bug 1462879 - PerformanceNavigationTiming must be notified correctly - part 2 - getEntryByName, r=valentin 2018-08-04 08:54:58 +02:00
Andrea Marchesini
8ab9f07dd8 Bug 1462879 - PerformanceNavigationTiming must be notified correctly - part 1 - notify, r=smaug, r=valentin 2018-08-04 08:54:58 +02:00
moz-wptsync-bot
ba472efcdb Bug 1480918 - [wpt-sync] Update web-platform-tests to ec8570ebda567074ecd4982253f46931be5eb03b, a=testonly
wpt-head: ec8570ebda567074ecd4982253f46931be5eb03b
wpt-type: landing
2018-08-04 05:39:07 +00:00
moz-wptsync-bot
529004aa68 Bug 1471797 [wpt PR 11699] - Update wpt metadata, a=testonly
wpt-pr: 11699
wpt-type: metadata
2018-08-04 05:39:07 +00:00
Luke Bjerring
29d981546e Bug 1471797 [wpt PR 11699] - Auto-update the webrtc-stats IDL file, a=testonly
Automatic update from web-platform-testsAdd the webrtc-stats IDL file + test (#11699)

--

wpt-commits: ec8570ebda567074ecd4982253f46931be5eb03b
wpt-pr: 11699
2018-08-04 05:39:07 +00:00
Philip Jägenstedt
68f7e17f76 Bug 1480408 [wpt PR 12276] - Add a default name ("idl_test setup") for idl_test, a=testonly
Automatic update from web-platform-testsAdd a default name ("idl_test setup") for idl_test (#12276)

--

wpt-commits: 70413d8d6bf4bf581e52bc3a5edddd205fbd7a41
wpt-pr: 12276
2018-08-04 05:39:06 +00:00
moz-wptsync-bot
2a535354d6 Bug 1475344 [wpt PR 11947] - Update wpt metadata, a=testonly
wpt-pr: 11947
wpt-type: metadata
2018-08-04 05:39:06 +00:00
Luke Bjerring
093985a569 Bug 1475344 [wpt PR 11947] - Update media-capabilities IDL + test, a=testonly
Automatic update from web-platform-testsUpdate media-capabilities IDL + test (#11947)

--

wpt-commits: e90038bd29b39c5e4846e08762de475a48d64910
wpt-pr: 11947
2018-08-04 05:39:05 +00:00
moz-wptsync-bot
994649d065 Bug 1480360 [wpt PR 12272] - Update wpt metadata, a=testonly
wpt-pr: 12272
wpt-type: metadata
2018-08-04 05:39:05 +00:00
Luke Bjerring
ce0fe6ff0c Bug 1480360 [wpt PR 12272] - [idlharness.js] Catch IdlArray.test bugs better, a=testonly
Automatic update from web-platform-tests[idlharness.js] Catch IdlArray.test bugs better (#12272)

When a bug exists in `IdlArray.test`, `idl_test`'s `catch` flow is incorrectly re-attempting to run the tests (causing a double-up of the tests). See https://github.com/web-platform-tests/wpt/issues/11700.

This changes the flow to call `IdlArray.test` in a `finally` (regardless of whether any setup errors have occurred), preventing the possibility of double-ups when bugs in `IdlArray.test` occur.

Also fixes the bug that highlighted this problem (passing a `null` object when the interface contains a `toJSON` operation).
--

wpt-commits: e9f3244421c353a63142dd9742e0ed6edc509cc8
wpt-pr: 12272
2018-08-04 05:39:04 +00:00
Luke Bjerring
f61e109ebe Bug 1480410 [wpt PR 11945] - Update the navigation-timing IDL file, a=testonly
Automatic update from web-platform-testsUpdated navigation-timing IDL file (#11945)

--

wpt-commits: 4a15e98c1339681493dff207de2c69ea29efa602
wpt-pr: 11945
2018-08-04 05:39:04 +00:00
Trevor Rowbotham
a20affe8b6 Bug 1479888 [wpt PR 12248] - [URL] Add additional tests for URLSearchParams.sort(), a=testonly
Automatic update from web-platform-testsURL: additional tests for URLSearchParams's sort()

This adds the following tests for:

* Parameter names with more than one character.
* Parameter names with identical characters, but differing lengths.
* Parameter names that are the empty string.
* Parameter names that contain characters with the same number of code units.
--

wpt-commits: 7cee0d238c42272d48fd06935c5abcf1e490b394
wpt-pr: 12248
2018-08-04 05:39:03 +00:00
moz-wptsync-bot
9a1cefe402 Bug 1475767 [wpt PR 11978] - Update wpt metadata, a=testonly
wpt-pr: 11978
wpt-type: metadata
2018-08-04 05:39:02 +00:00
Luke Bjerring
846e311cfc Bug 1475767 [wpt PR 11978] - Update the CSS-Parser-API IDL file, a=testonly
Automatic update from web-platform-testsUpdate the CSS-Parser-API IDL file (#11978)

--

wpt-commits: c82a9f16b158508dd100617352c6e2e60d0910d0
wpt-pr: 11978
2018-08-04 05:39:02 +00:00
moz-wptsync-bot
55f97c02a7 Bug 1479471 [wpt PR 12198] - Update wpt metadata, a=testonly
wpt-pr: 12198
wpt-type: metadata
2018-08-04 05:39:01 +00:00
Adam Rice
4ef0dc6d52 Bug 1479471 [wpt PR 12198] - Update buffered amount when async callbacks are called, a=testonly
Automatic update from web-platform-testsUpdate buffered amount when async callbacks are called

If an asynchronous callback is called, it means we must have returned to
the start of the event loop. Ensure that any consumed bufferedAmount is
reflected in that case. Do not reflect bufferedAmount if the EventQueue
is paused, as that means that we may be in a nested event loop.

Add a unit test for this case. Also add a unit test for normal
bufferedAmount behaviour, as there wasn't one.

Add a web platform test for what happens if a sync XHR is performed
between calling send() and looking at bufferedAmount.

BUG=856651

Change-Id: Iafa2d619a1eb5284b64500ac03d336fb6380193b
Reviewed-on: https://chromium-review.googlesource.com/1151086
Commit-Queue: Adam Rice <ricea@chromium.org>
Reviewed-by: Yutaka Hirano <yhirano@chromium.org>
Cr-Commit-Position: refs/heads/master@{#580078}

--

wpt-commits: 80f89c9af6cda0d80faf7f9b1c487eaff7205059
wpt-pr: 12198
2018-08-04 05:39:01 +00:00
moz-wptsync-bot
b8bc641db9 Bug 1478278 [wpt PR 12178] - Update wpt metadata, a=testonly
wpt-pr: 12178
wpt-type: metadata
2018-08-04 05:39:00 +00:00
Adam Rice
865cdc5814 Bug 1478278 [wpt PR 12178] - Update ReadableStream to match standard, a=testonly
Automatic update from web-platform-testsUpdate ReadableStream to match standard

Apply standard changes to ReadableStream up to standard version
51227372cc84846bdcf68312724c4cac6a4b9e58. With this change, Blink's
implementation once again passes all non-byte-stream ReadableStream
tests.

Update test expectations to match.

Changes:

* Use null prototypes for the objects returned by
  ReadableStreamDefaultReaderRead when they consumed internally by
  pipeTo(), tee() or fetch. This is the fix for standard issue
  https://github.com/whatwg/streams/issues/933 "Setting
  Object.prototype.then permits interfering with pipeTo() internals".
* In pipeTo() complete all pending writes when readable stream is
  errored.
* Change ordering of accessing strategy parameters to match standard.

Non-user visible changes:

* Use Object.assign() to be more concise when modifying the binding
  object in ReadableStream.js and WritableStream.js.

WPT changes:

* Update the expectations in response-stream-with-broken-then.any.js
  since interference is no longer possible.
* Add extra tests to response-stream-with-broken-then.any.js for the
  arraybuffer -> text case which should have been broken in Chrome but
  wasn't, and the arraybuffer -> stream case.
* Fix bugs in streams/piping/then-interception.js which are only
  apparent when it passes. In particular, delete Object.prototype.then
  even when it is not called.

BUG=866388

Change-Id: I82c8ac2c2b7d71ccbf331388014e8cec847e1b65
Reviewed-on: https://chromium-review.googlesource.com/1149678
Reviewed-by: Yutaka Hirano <yhirano@chromium.org>
Commit-Queue: Adam Rice <ricea@chromium.org>
Cr-Commit-Position: refs/heads/master@{#580057}

--

wpt-commits: 4e98c23a16efc0eb6ea4c305e3f48def3cac4643
wpt-pr: 12178
2018-08-04 05:39:00 +00:00
Hiroshige Hayashizaki
c12b9a2968 Bug 1479949 [wpt PR 12250] - Add tests for worker's URLs intercepted by ServiceWorker, a=testonly
Automatic update from web-platform-testsAdd tests for worker's URLs intercepted by ServiceWorker

This CL checks worker global scopes' URLs (self.location) in the
cases where worker top-level scripts are intercepted by
ServiceWorkers.

The test failure introduced in this CL will be fixed by
https://chromium-review.googlesource.com/1153598.

Bug: 861564
Change-Id: Ia92e1de697b5b9c6a61ab8e5c5abcaaf6dcee777
Reviewed-on: https://chromium-review.googlesource.com/1157220
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org>
Cr-Commit-Position: refs/heads/master@{#580041}

--

wpt-commits: aaaf24402c22c34f95c676f8392f2351a433842d
wpt-pr: 12250
2018-08-04 05:38:59 +00:00
moz-wptsync-bot
2b3b57f354 Bug 1480243 [wpt PR 12264] - Update wpt metadata, a=testonly
wpt-pr: 12264
wpt-type: metadata
2018-08-04 05:38:59 +00:00
Joshua Bell
632aeff6a3 Bug 1480243 [wpt PR 12264] - Cookie Store API: Add test showing BOMs are not stripped, a=testonly
Automatic update from web-platform-testsCookie Store API: Add test showing BOMs are not stripped

The cookie RFC[1] does not define an encoding for cookie names/values;
they are treated as a sequence of octets.

The Cookie Store spec[2] mandates treating the octets as UTF-8 encoded.
When decoding octet sequences into strings, the decode should be done
without treating a leading U+FEFF as a BOM. Add a test to verify this.

[1] https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-02
[2] https://wicg.github.io/cookie-store/

Bug: 729800
Change-Id: I23b7eb82b35862b8797a203ae6ea86cbd69001d2
Reviewed-on: https://chromium-review.googlesource.com/1159336
Reviewed-by: Victor Costan <pwnall@chromium.org>
Commit-Queue: Victor Costan <pwnall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#579985}

--

wpt-commits: 2c4d441493daa04906619978f4d1e9838d6b12d1
wpt-pr: 12264
2018-08-04 05:38:58 +00:00
Domenic Denicola
30ad2a8fe9 Bug 1479573 [wpt PR 6334] - Add tests for self.queueMicrotask(), a=testonly
Automatic update from web-platform-testsAdd tests for self.queueMicrotask()

Follows https://github.com/whatwg/html/pull/2789.
--

wpt-commits: 0c3bed38df6d9dcd1441873728fb5c1bb59c92df
wpt-pr: 6334
2018-08-04 05:38:58 +00:00
Timothy Gu
b5cb9765aa Bug 1480185 [wpt PR 12262] - HTML: Capture event handler removal errors correctly, a=testonly
Automatic update from web-platform-testsHTML: Capture event handler removal errors correctly

--

wpt-commits: 74938e820dbb52a9fa50b6a2ff906c7187e547d5
wpt-pr: 12262
2018-08-04 05:38:57 +00:00
Josh Matthews
6a1bb513ae Bug 1480170 [wpt PR 12261] - servodriver: Use config property instead of kwarg for browser kwargs., a=testonly
Automatic update from web-platform-testsservodriver: Use config property instead of kwarg for browser kwargs.
--

wpt-commits: d769d0a84a3e6d941775fb2479f6457e9ddb8d36
wpt-pr: 12261
2018-08-04 05:38:57 +00:00
L. David Baron
7922a735c6 Bug 1480135 [wpt PR 12258] - Sync Mozilla tests as of 2018-08-01, a=testonly
Automatic update from web-platform-testsSync Mozilla tests as of https://hg.mozilla.org/mozilla-central/rev/af6a7edf0069549543f2fba6a8ee3ea251b20829 . (#12258)

This contains a single change, from [bug 1473047](https://bugzilla.mozilla.org/show_bug.cgi?id=1473047), by @iyermihir, reviewed by @dholbert.
--

wpt-commits: c0ef9d68c8c5ceb8802a5a2ede1c3c5b3ecbcae8
wpt-pr: 12258
2018-08-04 05:38:56 +00:00
moz-wptsync-bot
a43961f691 Bug 1480157 [wpt PR 9779] - Update wpt metadata, a=testonly
wpt-pr: 9779
wpt-type: metadata
2018-08-04 05:38:55 +00:00
Luke Bjerring
1bdb3ffb1b Bug 1480157 [wpt PR 9779] - Update the dom IDL file, a=testonly
Automatic update from web-platform-testsUpdate the dom IDL file (#9779)

--

wpt-commits: 04e4fdae473c5f969b54404f18c586f54039363b
wpt-pr: 9779
2018-08-04 05:38:55 +00:00
Philip Jägenstedt
c595cdda10 Bug 1478998 [wpt PR 12211] - Fold "Unscopable handled correctly" tests into the attribute/operation tests, a=testonly
Automatic update from web-platform-testsFold "Unscopable handled correctly" tests into the attribute/operation tests (#12211)

The `[Unscopable]` checks were added here:
https://github.com/web-platform-tests/wpt/pull/9490

However, this extended attribute is very rarely used, currently only
in DOM and Fullscreen. And yet, every property and operation generates
a test like this, which is normally passing, example:
https://wpt.fyi/results/compat/interfaces.any.html

Just fold these into the existing tests for attributes/operations like
the many other aspects already covered. Because of the
"do_interface_attribute_asserts must be the last thing" problem,
there's a change of structure for the attribute test.
--

wpt-commits: 2f8b11a39d4da8d729903b1b30557a875d5bf76a
wpt-pr: 12211
2018-08-04 05:38:54 +00:00