Commit Graph

13655 Commits

Author SHA1 Message Date
Boris Chiou
029fb647e7 Bug 1545309 - Run ResizeObserver eventloop test after loading successfully. r=dholbert
In test0(), we use the callback of `requestAnimationFrame` to know in which
eventloop (i.e. `Tick()`) we are. However, we may not trigger the callback
of `requestAnimationFrame` if we are not visible. This is an optimization
in Bug 1145439.

Detail:
We use `Document::ShouldThrottleFrameRequests()` to check if we should throttle
the frame requests in the current `Tick()`. This function returns true if we
didn't get painted during the last paint, so we are not visible, so throttle
the frame requests. Note that because we have to paint this document at least
once to unthrottle it, we will drop one `requestAnimationFrame` frame when a
document that previously wasn't visible scrolls into view.

Therefore, we should make sure we got the first paint before running test0().
Using onload is not perfect, but we don't have other better choose for now.

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

--HG--
extra : moz-landing-system : lando
2019-05-06 22:53:09 +00:00
Boris Chiou
006096c775 Bug 1545309 - Make test function independent from others in eventloop.html. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D29904

--HG--
extra : moz-landing-system : lando
2019-05-06 22:52:54 +00:00
Ting-Yu Lin
62831385c7 Bug 1494100 Part 3 - Implement "contain:size" for ColumnSetWrapperFrame. r=dholbert
Add multicol-width-004.html and multicol-width-005.html to test "width:
min-content" and "width: max-content" with column-span:all children.
There's no size containment in these tests.

Note it may be worth to reuse nsBlockFrame's mCachedMinISize and
mCachedPrefISize to cache intrinsic size for ColumnSetWrapperFrame, but
this can be done separately.

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

--HG--
extra : moz-landing-system : lando
2019-05-08 22:58:39 +00:00
Botond Ballo
289a01ff3a Bug 1477610 - Update bug reference in disabled annotation of viewport-resize-event-on-load-overflowing-page.html. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D30418

--HG--
extra : moz-landing-system : lando
2019-05-09 03:57:15 +00:00
Botond Ballo
5fa4b3ae8b Bug 1477610 - Wait for the load event before running viewport-unscaled-size-iframe.html. r=hiro
This ensures that the iframe is loaded by the time we query its visual viewport size.

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

--HG--
extra : moz-landing-system : lando
2019-05-09 03:57:08 +00:00
Botond Ballo
c9b2e53ef1 Bug 1477610 - Make sure a resize during page load doesn't get mis-identified as a resize caused by a subsequent layout change. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D30416

--HG--
extra : moz-landing-system : lando
2019-05-09 03:56:58 +00:00
Botond Ballo
c681e36378 Bug 1477610 - Run Visual Viewport web platform tests with APZ zooming prefs enabled. r=kats
This causes some scrollbar-related assertions to fail on desktop because
scrollbar behaviour with desktop zooming is not correct yet.

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

--HG--
extra : moz-landing-system : lando
2019-05-09 03:56:51 +00:00
Botond Ballo
9ec620930d Bug 1477610 - Flush layout when reporting the visual viewport size via the Visual Viewport API. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D29089

--HG--
extra : moz-landing-system : lando
2019-05-09 03:56:41 +00:00
Cameron McCormack
f5b7d1380b Bug 866102 - Implement -webkit-line-clamp. r=mats,emilio,dholbert
Differential Revision: https://phabricator.services.mozilla.com/D20115

--HG--
extra : moz-landing-system : lando
2019-05-09 02:32:30 +00:00
Wes Kocher
3fb822b110 Bug 1501562 - Fixup some wpt metadata syntax to unbreak wpt tests
Differential Revision: https://phabricator.services.mozilla.com/D30436

--HG--
extra : moz-landing-system : lando
2019-05-09 00:22:53 +00:00
Boris Chiou
f97f4fc49a Bug 1545239 - Unobserve the target if using a different observed box. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D30129

--HG--
extra : moz-landing-system : lando
2019-05-08 20:54:43 +00:00
Boris Chiou
efb8ebe0fe Bug 1545239 - Add tests for border-box and different writing modes. r=dholbert
1. Add new tests with an extra argument of "content-box"/"border-box" in
   observe(), and test contectBoxSize and borderBoxSize.
2. Add a new test for changing the writing mode. Changing writing mode makes
   the element change the orientation, but the logical box size is still
   the same, so we shouldn't fire the event.

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

--HG--
extra : moz-landing-system : lando
2019-05-08 21:27:55 +00:00
Boris Chiou
d8c029b6bf Bug 1545239 - Make each test cases independent in resize-observer/observe.html. r=dholbert
I think it's better to make sure each test is independent from others, so we
create elements inside each test function. (Only change observe.html
because I touch only this file in this bug.)

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

--HG--
extra : moz-landing-system : lando
2019-05-08 20:54:39 +00:00
Boris Chiou
7ab6e6d017 Bug 1545239 - Update ResizeObserver and ResizeObserverEntry. r=smaug,dholbert
In this patch, we support
1. content-box (default)
2. border-box

And let ResizeObserverEntry expose these box sizes.

Besides, we store the mLastReportedSize as the logical size.

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

--HG--
extra : moz-landing-system : lando
2019-05-08 20:54:36 +00:00
Wes Kocher
f4fbfffbe3 Bug 1501562 - Disable some frequent intermittent failing tests on geckoview testrunneractivity
Differential Revision: https://phabricator.services.mozilla.com/D30424

--HG--
extra : moz-landing-system : lando
2019-05-08 23:17:03 +00:00
Wes Kocher
15748c8677 Bug 1501562 - Update wpt expectation metadata for geckoview testrunneractivity
Differential Revision: https://phabricator.services.mozilla.com/D30423

--HG--
extra : moz-landing-system : lando
2019-05-08 23:16:50 +00:00
alwu
b864f159ca Bug 1549642 - handle cue with negative duration. r=jya
According to the spec [1], the cue's end time might be negative and be smaller than its start time.

In this case, when we reach the cue's start on the media time line, we should treat it as a `missing cue` (which won't be actually displayed, but will receive events) when we run the `TimeMarchesOn`.

Therefore, we have to add this kind of cue into `otherCue` and let `TimeMarchesOn` handles it properly, to dispatch `enter` and `exit` event for it.

[1] https://html.spec.whatwg.org/multipage/media.html#text-track-cue-end-time

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

--HG--
extra : moz-landing-system : lando
2019-05-08 18:09:56 +00:00
alwu
d0e102148f Bug 1548731 - part3 : modify wpt 'track-mode.html'. r=smaug
This patch does two changes in order to test the correct behavior.

(1) Not to use time out function
Waiting for 0.4s by using timeout function doesn't mean the code will exactly be executed after 0.4s.
If we would like to specify the time when we would like to change track's mode, we should listen for video's `timeupdate` to get the correct result.

(2) Modify ending condition
As this test is going to turn the track's mode to `showing/hidden` after video plays after 0.4s, the second and the third cue would be showed correctly.

The second cue is from 0.3 to 0.7, so when we changed track mode in 0.4s, the second cue would be regard as an active cue, and we would dispatched `enter` event on it. When the cue is going to become inactive, the event `exit` would be dispatched.

Therefore, there would be total 4 times of the accumulation of `enter` and `exit` events, which means `oncuechange` would also be dispatched 4 times.

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

--HG--
extra : moz-landing-system : lando
2019-05-07 18:01:44 +00:00
alwu
282387d20d Bug 1548731 - part2 : enable failed wpt items. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D29784

--HG--
extra : moz-landing-system : lando
2019-05-08 21:23:31 +00:00
Boris Zbarsky
b5ec0b5d10 Bug 325352 part 2. Don't no-op document.open if our parser has a script nesting level equal to 0. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D30314

--HG--
extra : moz-landing-system : lando
2019-05-08 16:03:37 +00:00
Jonathan Kew
fabb0dc4d5 Bug 1549728 - Flush line-breaker whenever the word-break property changes. r=emilio
The patch in bug 1507744 was not sufficient by itself, as the line-breaker could still accumulate a single "current word" across a text-run boundary, and then a single word-break value would be applied to it. We need to flush the line-breaker when word-break changes, so that each part of the word will have break opportunities set according to the appropriate value.

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

--HG--
extra : moz-landing-system : lando
2019-05-08 15:09:44 +00:00
Andrea Marchesini
c97597a819 Bug 1457503 - Removal of http-equiv cookies. draft, r=jkt
Differential Revision: https://phabricator.services.mozilla.com/D29841

--HG--
extra : moz-landing-system : lando
2019-05-08 13:50:45 +00:00
Ehsan Akhgari
5157e26d94 Bug 1549389 - Fix the expected value of attribute0023 wpt test; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D30051

--HG--
extra : moz-landing-system : lando
2019-05-08 08:47:25 +00:00
Ehsan Akhgari
3d7881e880 Bug 1549011 - Ignore cookie name-value-pair strings with an empty name; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D29929

--HG--
extra : moz-landing-system : lando
2019-05-08 08:51:42 +00:00
Andrea Marchesini
7ccddfedc4 Bug 1548034 - Remove Clear-Site-Data 'executionContexts' feature, r=annevk,smaug
Differential Revision: https://phabricator.services.mozilla.com/D29863

--HG--
extra : moz-landing-system : lando
2019-05-08 13:12:59 +00:00
Edgar Chen
f551bbe0a8 Bug 1548848 - Moving assigned nodes caused by slot removal should properly invalidate layout; r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D30194

--HG--
extra : moz-landing-system : lando
2019-05-08 10:39:40 +00:00
Marcos Cáceres
ab5e4d5362 Bug 1549241 - disable payments-related feature-policy tests on GeckoView due to crashes r=baku
See https://bugzilla.mozilla.org/show_bug.cgi?id=1544637

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

--HG--
extra : moz-landing-system : lando
2019-05-08 08:53:25 +00:00
alwu
a03cdc6fb8 Bug 1549628 - enable wpt 'track-add-track.html'. r=jya
Added missing event parameter for the callback function of `onaddtrack`.

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

--HG--
extra : moz-landing-system : lando
2019-05-07 18:16:27 +00:00
Jonathan Kew
46386b586c Bug 1507744 - Add WPT reftests for word-break:break-all applied to an inline element. r=emilio
Tests 001-003 are fixed by the patch in this bug; 004-007 still fail in Firefox after the patch is applied.
(Safari passes all these tests; Chrome fails 004 and 007 in my testing.)

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

--HG--
extra : moz-landing-system : lando
2019-05-07 15:27:40 +00:00
Edgar Chen
68f697ae81 Bug 1362272 - Part 2: Implement notifying of rejected promises; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D17238

--HG--
extra : moz-landing-system : lando
2019-05-07 11:39:58 +00:00
Boris Zbarsky
1937c1675a Remove unnecessary wpt failure annotation for selection/Document-open.html. No bug. r=jgraham
The test this is trying to annotate no longer exists, and we pass the new test.

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

--HG--
extra : moz-landing-system : lando
2019-05-07 09:05:17 +00:00
Rob Wu
8357966ca4 Bug 1546481 - Let wpt test servers listen at localhost r=jgraham
When the host is omitted, a new socket will listen at any address,
which triggers the following firewall warning:

> Do you want the application "Python.app"
> to accept incoming network connections?

Since the default behavior without approval is to deny,
it should be safe to limit this to local connections only.

Doing so gets rid of the FIVE firewall prompts that appear when a wpt
test is started, for each server (http, https, http2, ws, wss).

While I'm at it, I've also fixed the port detection logic to not trigger
the firewall prompt (it appears at `mach wpt-serve`).

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

--HG--
extra : moz-landing-system : lando
2019-05-07 09:04:58 +00:00
Lee Salzman
0037d62d7b Bug 1414961 - enable WR dual-source blending by default. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D30107

--HG--
extra : moz-landing-system : lando
2019-05-07 02:30:16 +00:00
Oana Pop Rus
251b4874dc Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-05-07 01:33:06 +03:00
Oana Pop Rus
65399363fb Merge inbound to mozilla-central. a=merge 2019-05-07 00:45:24 +03:00
alwu
92efaf5bf1 Bug 1548935 - enable wpt 'track-add-remove-cue.html'. r=jya
If we can't get corresponding cue, `getCueById()` will return `null`, not empty object. Therefore, we should use `assert_equals` instead.

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

--HG--
extra : moz-landing-system : lando
2019-05-06 01:59:12 +00:00
Andreea Pavel
39aa1bf1ab Bug 1525580 - Disabled update-after-oneday.https.html for high frequent failures r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D30067

--HG--
extra : moz-landing-system : lando
2019-05-06 15:31:50 +00:00
Sebastian Hengst
860aa7b49f Bug 1540551 - Disable window height tests failing on Windows 7 DevEdition r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D29948

--HG--
extra : moz-landing-system : lando
2019-05-06 05:42:51 +00:00
Frederik Braun
18a04317f0 Bug 1548773: Remove support for typemustmatch r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D29803

--HG--
extra : moz-landing-system : lando
2019-05-05 14:41:59 +00:00
Razvan Maries
f0abfc328a Bug 1525580 - Disabled update-after-oneday.https.html for high frequent failures r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D29908

--HG--
extra : moz-landing-system : lando
2019-05-05 20:39:12 +00:00
Coroiu Cristina
6f634e87e9 Merge inbound to mozilla-central a=merge on a CLOSED TREE 2019-05-06 00:38:28 +03:00
Coroiu Cristina
4a840bbe4b Backed out 3 changesets (bug 1540200) for causing merge conflicts
Backed out changeset 4352d1f0da34 (bug 1540200)
Backed out changeset ff2ca836d8a7 (bug 1540200)
Backed out changeset 3e4cc0d312d0 (bug 1540200)
2019-05-06 00:37:06 +03:00
Mihai Alexandru Michis
e329bc4d67 Merge mozilla central to mozilla inbound on a CLOSED TREE 2019-05-04 01:00:29 +03:00
Sebastian Hengst
f1bc51d3d7 Bug 1547557 - [wpt-sync] Update web-platform-tests to 2f2bf34086414fb3bd8e01e92aca1aa18e7ea730: Fix typo. a=typo 2019-05-03 20:15:14 +02:00
moz-wptsync-bot
0f99cba8c7 Bug 1547557 - [wpt-sync] Update web-platform-tests to 2f2bf34086414fb3bd8e01e92aca1aa18e7ea730, a=testonly
wpt-head: 2f2bf34086414fb3bd8e01e92aca1aa18e7ea730
wpt-type: landing
2019-05-03 18:30:30 +01:00
Anders Hartvoll Ruud
b1b2718321 Bug 1541691 [wpt PR 16151] - [css-properties-values-api] Absolutize initial <url> values., a=testonly
Automatic update from web-platform-tests
[css-properties-values-api] Absolutize initial <url> values.

The computed value would incorrectly remain relative for the initial value
of <url>-registered custom properties. This is because it did not undergo
the token-rewriting done for non-initial properties.

Since the token-rewriting function was implemented, circumstances have
changed a little: there is now a general absolutization mechanism (i.e.
StyleBuilderConverter::ConvertRegisteredPropertyVariableData). Therefore,
this CL performs the URL absolutization on the CSSValue-level rather than
the token level. This automatically also catches the initial-value case.

Note that CSSVariableDatas with var()-references would previously "forget"
their base URL and TextEncoding when resolved. This didn't matter in
practice, because we would already have rewritten the tokens at that point.
However, it matters now, since the URL is now made absolute _after_ the
CSSVariableData is resolved. Hence, CSSVariableData::CreateResolved has
gained the appropriate parameters.

R=futhark@chromium.org

Bug: 641877
Change-Id: I0fd80664adb49e60df24dcc0e91d23872f61fdb8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1528188
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/master@{#646218}

--

wpt-commits: 2f2bf34086414fb3bd8e01e92aca1aa18e7ea730
wpt-pr: 16151
2019-05-03 18:30:30 +01:00
Christian Biesinger
ffecd1d287 Bug 1541689 [wpt PR 16156] - [css-flexbox] Correctly calculate min-height with justify-content, a=testonly
Automatic update from web-platform-tests
[css-flexbox] Correctly calculate min-height with justify-content

Spacing added by justification is not meaninfully part of the
intrinsic block size of an item; remove it.

This is especially problematic with percentage sizes, because
with height: 100% and justify-content: flex-end we would
position any flex items at the end and calculate a minimum
size based on the 100%, even though we ought to ignore percentages.

R=dgrogan@chromium.org, eae@chromium.org

Bug: 945214
Change-Id: If4e271df5e550807632d30e5dd1c2b3068d45313
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1546002
Commit-Queue: Emil A Eklund <eae@chromium.org>
Reviewed-by: David Grogan <dgrogan@chromium.org>
Reviewed-by: Emil A Eklund <eae@chromium.org>
Auto-Submit: Christian Biesinger <cbiesinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#646178}

--

wpt-commits: f326d29cb1469bf9b61d816a4752d02df706d129
wpt-pr: 16156
2019-05-03 18:30:29 +01:00
Morten Stenshorne
91b1e7ab05 Bug 1541687 [wpt PR 16150] - Honor contain:size correctly for multicol containers., a=testonly
Automatic update from web-platform-tests
Honor contain:size correctly for multicol containers.

Updated the existing test for this to actually test with contain:size.

Bug: 863454
Change-Id: I44ac7bd4dd875845d14476dd9b286450bbc66bf0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1545302
Commit-Queue: Emil A Eklund <eae@chromium.org>
Reviewed-by: Emil A Eklund <eae@chromium.org>
Cr-Commit-Position: refs/heads/master@{#646173}

--

wpt-commits: b440056b54c783d18a78da25f8d31ce324e980f4
wpt-pr: 16150
2019-05-03 18:30:29 +01:00
Gérard Talbot
938ceee311 Bug 1541685 [wpt PR 16169] - Corrected 1 error in calc-numbers.html, a=testonly
Automatic update from web-platform-tests
Corrected 1 error in calc-numbers.html

--

wpt-commits: 3419750ac87c9f227bd1aafc8433ed4a9183728f
wpt-pr: 16169
2019-05-03 18:30:28 +01:00
L. David Baron
885b6e16a8 Bug 1541680 [wpt PR 16166] - Sync Mozilla CSS tests as of 2019-03-31, a=testonly
Automatic update from web-platform-tests
Sync Mozilla CSS tests as of https://hg.mozilla.org/mozilla-central/rev/c06dfc552c647a6ce96f35cd84c32a589dc85608 . (#16166)

This contains changes from:
* [bug 1503173](https://bugzilla.mozilla.org/show_bug.cgi?id=1503173) by @dholbert, reviewed by @emilio
* [bug 1514843](https://bugzilla.mozilla.org/show_bug.cgi?id=1514843) by @dholbert, reviewed by @aethanyc
--

wpt-commits: f24d88b7d2cd2d851533e9c1180b1c5c5d118bc3
wpt-pr: 16166
2019-05-03 18:30:28 +01:00