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

13820 Коммитов

Автор SHA1 Сообщение Дата
Ehsan Akhgari 7a3585c49f Bug 1415270 - Part 3: Prevent the editing APIs from being called on non-HTML documents; r=masayuki
This is similar to this Chromium change:
https://codereview.chromium.org/1155353002

The editing spec doesn't mention editing non-HTML documents, and historically
this is only a feature that WebKit has supported.  Supporting this feature
increases the attack surface of the browser without a clear benefit, so it
seems like a good idea to converge on this behaviour.

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

--HG--
rename : testing/web-platform/tests/html/editing/editing-0/making-entire-documents-editable-the-designmode-idl-attribute/user-interaction-editing-designMode.html => testing/web-platform/tests/html/editing/editing-0/making-entire-documents-editable-the-designmode-idl-attribute/user-interaction-editing-designMode-xml.xml
extra : moz-landing-system : lando
2019-05-30 17:14:05 +00:00
Ehsan Akhgari a9e9f5ccdb Bug 1415270 - Part 1: Move nsHTMLDocument editing APIs to Document; r=farre,masayuki
Differential Revision: https://phabricator.services.mozilla.com/D32911

--HG--
extra : moz-landing-system : lando
2019-05-31 01:37:26 +00:00
Boris Chiou c0b92f7a6f Bug 1555030 - Add NS_FRAME_SVG_LAYOUT into SVGViewFrame and nsSVGStopFrame. r=dholbert,longsonr
To avoid hitting the assertion for ResizeObserver, which calls GetBBox()
for all SVG elements.

Note:
If the target has SVG layout and its primary frame cannot be queries as
nsSVGDisplayableFrame, we return a default gfxRect(). And always
returning a default gfxRect() on <view> or <stop> element makes ResizeObserver
doesn't report it (because it is always not active). This behavior
is the same as what Google Chrome has. (i.e. No event is fired.)

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

--HG--
extra : moz-landing-system : lando
2019-05-29 23:50:55 +00:00
Alastor Wu 8a3753f034 Bug 1555091 - enable wpt 'kind.html'. r=jya
This test only contains simple API behavior test, which is not possible to be affected by web-render.

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

--HG--
extra : moz-landing-system : lando
2019-05-30 07:39:22 +00:00
Boris Zbarsky cc371c6881 Bug 1485842. Fix pref handling in the wpt harness to deal with prefs that aren't set already. r=jgraham,karlt
Differential Revision: https://phabricator.services.mozilla.com/D33085

--HG--
extra : moz-landing-system : lando
2019-05-30 08:38:18 +00:00
Andrew McCreight f8a94637c7 Bug 1555516 - Whitelist another CSP leak frame. r=jgraham
The stack isn't always deep enough to get to LoadInfo, so add another
fairly distinct frame that is closer to the top of the stack. I also
noticed an instance of this failure in the service-worker directory,
so I added the whitelisting there, too.

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

--HG--
extra : moz-landing-system : lando
2019-05-30 10:07:10 +00:00
Emilio Cobos Álvarez 3116f4a8c3 Bug 1554755 - Don't set nsIFrame::mMayHaveRoundedCorners to false when there are non-zero percent borders, as we don't track all sizes that are passed to this function. r=mattwoodrow
I _think_ most of the sizes that get here are going to be equivalent to
mRect.Size(), but that seems really hard to prove.

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

--HG--
extra : moz-landing-system : lando
2019-05-30 00:10:55 +00:00
Byron Campen [:bwc] 2d6cf50175 Bug 1551589: readyState fixes r=ng
Depends on D31085

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

--HG--
extra : moz-landing-system : lando
2019-05-29 21:27:18 +00:00
James Graham f40ea14616 Bug 1554619 - Give wpt error message a correct path to wpt, r=ato
Differential Revision: https://phabricator.services.mozilla.com/D32992

--HG--
extra : moz-landing-system : lando
2019-05-29 11:28:58 +00:00
Byron Campen [:bwc] 9c8f9d54ae Bug 1549361: Remove this leak suppression. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D31092

--HG--
extra : moz-landing-system : lando
2019-05-16 00:42:44 +00:00
Mihai Alexandru Michis 157ed60453 Bug 1548125 - Disable mediasource-correct-frames.html for frequent failures on Windows 10. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D32994

--HG--
extra : moz-landing-system : lando
2019-05-29 12:58:11 +00:00
Edgar Chen be4f5f3d91 Bug 1525554 - Avoid testharness reporting unhandled promise rejections in pause-remove-from-document-networkState.html; r=annevk
Differential Revision: https://phabricator.services.mozilla.com/D32305

--HG--
extra : moz-landing-system : lando
2019-05-29 12:35:14 +00:00
James Graham 4490fed96d Bug 1555212 - Make wpt --product install the dependencies in the mach layer, r=ato
This avoids a mismatch in the available arguments between upstream pip and
the version vendored into m-c at the cost of the code being more liable
to break when upstream changes.

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

--HG--
extra : moz-landing-system : lando
2019-05-29 11:30:45 +00:00
Alastor Wu 17d59d11c8 Bug 1555090 - remove 'max-asserts' for wpt 'addCue.html' and 'constructor.html'. r=jgraham
There is no need to add `max-asserts` for those two wpts, they are running correctly without hitting any assertion.

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

--HG--
extra : moz-landing-system : lando
2019-05-29 10:19:20 +00:00
alwu ed2f2811ba Bug 1553692 - enable wpt 'track-text-track-cue-list.html' r=jib
For getter, it will return undefined [1] when we can't get the element. We should use assert_equals because undefined is not an object.

For getCueById, it will return null [2] when we can't get the element. We should use assert_equals because null is not an object.

[1] https://heycam.github.io/webidl/#dfn-attribute-getter
[2] https://html.spec.whatwg.org/multipage/media.html#dom-texttrackcuelist-getcuebyid

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

--HG--
extra : moz-landing-system : lando
2019-05-28 23:02:45 +00:00
Boris Chiou 5a974e30a4 Bug 1429303 - Add a missing reftest for offset-distance interpolation. r=birtles
Differential Revision: https://phabricator.services.mozilla.com/D32537

--HG--
extra : moz-landing-system : lando
2019-05-28 18:31:50 +00:00
Boris Chiou a194573277 Bug 1429303 - Animate offset-rotate. r=birtles
Differential Revision: https://phabricator.services.mozilla.com/D32237

--HG--
extra : moz-landing-system : lando
2019-05-28 18:31:48 +00:00
Ehsan Akhgari eb5865bd87 Bug 1554539 - Fix access-control-basic-options-not-supported.py to consistently fail if the Origin header is unexpectedly missing; r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D32653

--HG--
extra : moz-landing-system : lando
2019-05-28 14:50:11 +00:00
Brindusan Cristian bc9a979544 Bug 1546879 - Disable mediasource-correct-frames-after-reappend.html on Windows. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D32733

--HG--
extra : moz-landing-system : lando
2019-05-28 13:37:08 +00:00
Valentin Gosu 60c1e2be27 Bug 1536744 - Add WPT expect FAIL for ssh origin tests r=baku
These should be removed once bug 1553105 lands.

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

--HG--
extra : moz-landing-system : lando
2019-05-28 13:52:11 +00:00
Valentin Gosu f5bcc2cec2 Bug 1536744 - Remove expected FAILs from URL web-platform-tests r=baku
These were fixed by the improvements added to nsSimplerURI::Resolve()

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

--HG--
extra : moz-landing-system : lando
2019-05-28 13:51:05 +00:00
Edgar Chen b31eaf52cc Bug 1525554 - Avoid testharness reporting error casued by unhandled rejected promises in media-source/mediasource-getvideoplaybackquality.html; r=annevk
Differential Revision: https://phabricator.services.mozilla.com/D32313

--HG--
extra : moz-landing-system : lando
2019-05-28 13:49:15 +00:00
Valentin Gosu 3cf97eb027 Bug 1553582 - Disable resource_reparenting.html in e10s because cancelling the channel is racy r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D32667

--HG--
extra : moz-landing-system : lando
2019-05-28 09:53:07 +00:00
Alastor Wu ddd3f0ae0a Bug 1553678 - enable wpt 'track-active-cues.html' r=jya
According to the spec [1], the TimeMarchesOn should only be ran when media element's show poster flag is not set.

If we would like to receive `cuechange` event, we have to reset media element's `show poster` flag in order to run `TimeMarchesOn` when adding new cues.

[1] https://html.spec.whatwg.org/multipage/media.html#playing-the-media-resource:time-marches-on-2

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

--HG--
extra : moz-landing-system : lando
2019-05-27 12:57:18 +00:00
Ehsan Akhgari ad6a833e39 Bug 1549560 - Move HTMLDocument.open/close/write/writeln to Document; r=farre
Differential Revision: https://phabricator.services.mozilla.com/D32388

--HG--
extra : moz-landing-system : lando
2019-05-27 23:03:03 +00:00
Bogdan Tara 2bcd3a4566 Backed out changeset c352b73db92b (bug 1549560) for dom/base/Document.cpp related build bustages CLOSED TREE 2019-05-27 23:57:00 +03:00
Ehsan Akhgari 6b308d9e98 Bug 1549560 - Move HTMLDocument.open/close/write/writeln to Document; r=farre
Differential Revision: https://phabricator.services.mozilla.com/D32388

--HG--
extra : moz-landing-system : lando
2019-05-27 18:42:23 +00:00
Jonathan Kew 5fe29c880d Bug 1322992 - Implement locale-specific casing behavior for Lithuanian, and add more WPT tests for it. r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D32129

--HG--
rename : testing/web-platform/tests/css/css-text/text-transform/reference/text-transform-upperlower-039-ref.html => testing/web-platform/tests/css/css-text/text-transform/reference/text-transform-upperlower-044-ref.html
rename : testing/web-platform/tests/css/css-text/text-transform/text-transform-upperlower-039.html => testing/web-platform/tests/css/css-text/text-transform/text-transform-upperlower-044.html
extra : moz-landing-system : lando
2019-05-27 01:35:03 +00:00
Kershaw Chang 993dce095a Bug 1546041 - Throw TypeError if mode is Navigate r=baku
According to spec, we should throw TypeError if the mode is Navigate.

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

--HG--
extra : moz-landing-system : lando
2019-05-27 13:51:16 +00:00
Ehsan Akhgari fa14c5eccf Bug 1554516 - Bring the implementation of XMLHttpRequest.requestType setter on the worker thread up to the spec; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D32656

--HG--
extra : moz-landing-system : lando
2019-05-27 11:12:04 +00:00
Brindusan Cristian 58d68b812b Backed out changeset 3b6338393cc7 (bug 1546041) for mochitest failures at test_request.html. CLOSED TREE 2019-05-27 12:56:32 +03:00
Kershaw Chang b53ba78d32 Bug 1546041 - Throw TypeError if mode is Navigate r=baku
According to spec, we should throw TypeError if the mode is Navigate.

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

--HG--
extra : moz-landing-system : lando
2019-05-15 20:36:09 +00:00
alwu abe2ed56ba Bug 1550633 - part14 : add a test for 'honor user preferences for automatic text track selection'. r=bzbarsky
This test is used to ensure that we queue 'honor user preferences for automatic text track selection' as a marco task, not a mirco task.

In this test, we would trigger a media event before queuing a text track selection task, and check the text track's mode to know whether the text track selection runs after the task for media event.

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

--HG--
extra : moz-landing-system : lando
2019-05-24 00:41:00 +00:00
alwu 087c97b591 Bug 1550633 - part12 : enable wpts. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D31561

--HG--
extra : moz-landing-system : lando
2019-05-24 00:41:14 +00:00
alwu 0e6fb4ef3b Bug 1550633 - part11.1 - modify 'track-element-src-change-error.html'. r=jya
According to spec [1], if the track URL changes so that it is no longer equal to URL while fetching is ongoing, we need to change the text track readiness state to`failed to load` and dispatch `error`.

So we now only fire `error` if `src` is removed during loading, but if the track element has finished loading before removing `src`, we won't dispatch `error` for it.

[1] https://html.spec.whatwg.org/multipage/media.html#sourcing-out-of-band-text-tracks:text-track-failed-to-load-3

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

--HG--
extra : moz-landing-system : lando
2019-05-24 00:41:16 +00:00
alwu 0ecc59ad1d Bug 1550633 - part11 : modify wpt 'track-element-src-change.html' and 'track-element-src-change-error.html'. r=jya
According to the spec [1], the text track list of cues is initially empty. It is dynamically modified when the referenced file is parsed.

Therefore, after reset the track element's url, the number of cues of the text track should be zero, until we start parsing resource and add cue into the list.

[1]
https://html.spec.whatwg.org/multipage/media.html#sourcing-out-of-band-text-tracks:text-track-list-of-cues
https://html.spec.whatwg.org/multipage/media.html#sourcing-out-of-band-text-tracks:text-track-list-of-cues-3

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

--HG--
extra : moz-landing-system : lando
2019-05-24 00:41:19 +00:00
alwu 339990cb09 Bug 1550633 - part5 : modify and enable test 'track-mode-not-changed-by-new-track.html'. r=jya
In `honor user preferences for automatic text track selection` [1], we would set `did-perform-automatic-track-selection` flag to true [2], and then we won't execute automatic track selection anymore [3].

It means that we would only do automatic track selection one time, and then user has to enable newly added track explicitly by changing its mode.

In this test, we have done the automatic track selection when we added the `metadata` track to media element's text track list, so we won't run it again, even if the newly added track has `default` attribute.

Therefore, we have to enable the `caption` track explicitly. In addition, add the missing `event` parameter for the function `trackAdded()`.


[1] https://html.spec.whatwg.org/multipage/media.html#honor-user-preferences-for-automatic-text-track-selection
[2] https://html.spec.whatwg.org/multipage/media.html#sourcing-out-of-band-text-tracks:did-perform-automatic-track-selection-2
[3] https://html.spec.whatwg.org/multipage/media.html#sourcing-out-of-band-text-tracks:did-perform-automatic-track-selection

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

--HG--
extra : moz-landing-system : lando
2019-05-24 00:41:31 +00:00
Brindusan Cristian 5a5f5a78fb Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-05-25 00:54:26 +03:00
Brindusan Cristian fd5a4a259a Merge inbound to mozilla-central. a=merge 2019-05-25 00:49:05 +03:00
Andrew McCreight 8ea119cb58 Bug 1553370 - Fix up websocket WPT whitelists for CSP changes. r=jgraham
Recent CSP changes added some new stacks to big page leaks, so add
LoadInfo to some WPT white lists.

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

--HG--
extra : moz-landing-system : lando
2019-05-24 21:15:19 +00:00
Andrew Halberstadt fe77911a5f Bug 1553527 - [testing] Add 'fission' to test manifest context r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D32210

--HG--
extra : moz-landing-system : lando
2019-05-24 18:41:14 +00:00
Ehsan Akhgari de01c84b95 Bug 1467625 - Part 2: Do not allow setting Document.domain without a browsing context; r=farre
Differential Revision: https://phabricator.services.mozilla.com/D32387

--HG--
extra : moz-landing-system : lando
2019-05-24 13:56:29 +00:00
Ehsan Akhgari 14dbf3d080 Bug 1467625 - Part 1: Move HTMLDocument.domain getter/setter to Document; r=farre
Differential Revision: https://phabricator.services.mozilla.com/D32386

--HG--
extra : moz-landing-system : lando
2019-05-24 13:51:09 +00:00
violet 13e131d652 Bug 1383650 - Support geometry property for SVG image element r=longsonr
The only different part is to resolve intrinsic image size. This patch
implements explicit requirements of the spec, but an edge case is tricky.
It's not clear per spec what the intrinsic image size is for an SVG
without explicit width/height, something like:

<svg>
  <image href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><rect width='40' height='90' fill='red' /></svg>"/>
</svg>

Chrome treats the intrinsic size of the href svg as the default size of
a replaced element (300x150), our image/VectorImage.cpp doesn't resolve
size in this case.

We can handle this particular case in some seperate bug if necessary, I think.

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

--HG--
extra : moz-landing-system : lando
2019-05-24 12:40:12 +00:00
Daniel Holbert 0f84d86e05 Bug 1552287 part 2: [css-contain] Adjust various reflow & baseline methods so that layout-contained frames behave as if they have no baseline. r=TYLin
We previously (in bug 1491235) adjusted some utility code to make
layout-contained frames behave as if they have no baseline.

But that's not sufficient. To make frames fully report lack-of-a-baseline,
we now do the following for layout-contained frames, as of this patch:

 (a) We now leave the ReflowOutput outparam's BlockStartAscent member at its
     default value (which is what we do for frames without a baseline like
     e.g. nsCheckboxRadioFrame and nsHTMLCanvasFrame). And if the parent cares
     about the baseline, it'll then ask directly, using a baseline getter.

 (b) We now return 'false' in more implementations of bool-returning
     baseline-getter-methods (where 'false' indicates 'no baseline').

 (c) We now return the margin-box-bottom edge, in the nscoord-returning
     'GetLogicalBaseline()' getter method. (We typically do this by deferring
     to the inherited method, which ultimately comes from nsFrame's
     implementation). It's appropriate to use the margin-box-bottom edge when
     there's no baseline, per the definition of 'vertical-align: baseline',
     here: https://drafts.csswg.org/css2/visudet.html#propdef-vertical-align

Depends on D32182

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

--HG--
extra : moz-landing-system : lando
2019-05-24 04:46:17 +00:00
Daniel Holbert c016e21c54 Bug 1552287 part 1: [css-contain] Fix some CSS layout-containment web-platform-tests to make their assumptions more valid. r=TYLin
In particular:

- In contain-layout-suppress-baseline-002.html, the test currently indirectly
  relies on the 50px-tall-canvas being the tallest thing in each flex
  container. This isn't robustly true (and in fact on windows, the textarea is
  taller at 50.8px tall). So I'm adjusting this test so that it no longer has a
  hardcoded flex container size and no longer depends on this.

- In contain-layout-baseline-005.html and its reference case, we need to
  explicitly specify 'vertical-align:baseline' to test baseline-alignment,
  because some of its tested form controls have other UA-stylesheet-provided
  default values of 'vertical-align'.
  (e.g. <select multiple> defaults to 'vertical-align:text-bottom")

- Also: in that same test, we need to reduce the width of the an <input>
  textfield -- otherwise, it and the other elements on its line may not fit and
  may linewrap, which prevents us from effectively testing baseline-alignment
  on the linewrapped element.

- In contain-layout-button-001.html, the expectation was not correct. Before
  this patch, the test expects that a layout-contained button will have the
  same baseline as an empty button, and that's an invalid expectation. An empty
  button uses a point inside of its content-box as its baseline, whereas a
  layout-contained element *has no baseline*, which means that it does
  'vertical-align:baseline' alignment by aligning its own margin-bottom edge
  with the parent's baseline, per
  https://drafts.csswg.org/css2/visudet.html#propdef-vertical-align
  So, I'm amending the test to have this expectation and updating its meta tags
  to reference the updated expectation and with a reference to that spec text.

Firefox fails the amended contain-layout-button-001.html test, so this patch
adds a .ini file to reflect that failure.  The next patch in this series will
fix our implementation to make us pass the test, and will remove the .ini file.

Chrome also fails the amended contain-layout-button-001.html tests, and I filed
https://bugs.chromium.org/p/chromium/issues/detail?id=965740 on them with an
explanation.

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

--HG--
extra : moz-landing-system : lando
2019-05-24 04:46:07 +00:00
Boris Chiou 3b51b642f3 Bug 1429301 - Implement offset-rotate. r=emilio
This includes style system and layout update. I add 3 extra reftests
because the original tests use ray() function as the offset-path, but we
don't support it. It'd be better to add tests using a different type of
offset-path.

The spec issue about the serialization:
https://github.com/w3c/fxtf-drafts/issues/340

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

--HG--
extra : moz-landing-system : lando
2019-05-24 03:42:03 +00:00
Emilio Cobos Álvarez 43842d4d0a Bug 1544242 - Give up on a test that's too fuzzy on win and OSX for now. CLOSED TREE
Will try to reland it fixed.
2019-05-24 04:57:40 +02:00
Emilio Cobos Álvarez 3a43b20078 Bug 1544242 - Add a test for a bug that this inadvertently fixes. r=heycam
Always generating the slot assignment combinator means that we check the current
host correctly.

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

--HG--
extra : moz-landing-system : lando
2019-05-24 01:11:52 +00:00
Emilio Cobos Álvarez 980074a5b2 Bug 1544242 - Cleanup selector-matching for nested pseudo-elements, match ::slotted correctly when there's no selector before it, and add tests. r=heycam,mats
D29542 fixed the bogus checks that was making nested pseudo-elements match
author rules. This adds tests and ends up being just a cleanup, though as it
turns out we it also fixes an issue with ::slotted() matched from
Element.matches.

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

--HG--
extra : moz-landing-system : lando
2019-05-24 01:09:15 +00:00