Commit Graph

906 Commits

Author SHA1 Message Date
Victor Porof
6d5a049f43 Bug 1503824 - Migrate the treecols binding into a custom element. r=bgrins 2018-11-27 18:43:58 +01:00
Geoff Brown
172d5d491d Bug 1507207 - Skip some tests on Android/e10s; r=snorp
When the Android harness e10s support was fixed, a few crashtests started failing.
2018-11-27 09:41:13 -07:00
WR Updater Bot
7e1f8d0464 Bug 1510075 - Disable crashtests that fail with WR PR #3342. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D13024

--HG--
extra : moz-landing-system : lando
2018-11-27 01:08:50 +00:00
Ting-Yu Lin
4b1c23e4c2 Bug 1506216 - Remove bogus assert in AssertColumnSpanWrapperSubtreeIsSane(). r=bzbarsky
The assert is testing that the content's primary frame shouldn't
generate any native anonymous children, but what we really want to
ensure is that :-moz-column-span-wrapper doesn't create any native
anonymous child (because we don't restyle the wrapper), not the content
which creates ::-moz-column-span-wrapper. The condition is already
guaranteed by !aFrame->HasAnyStateBits(NS_FRAME_OWNS_ANON_BOXES) above.

Also, at this point during the frame construction, we haven't associate
the content with the its primary frame. Therefore,
nsContentUtils::AppendNativeAnonymousChildren() won't return anything
except for scrollbars on root element. That's why we have the crash in
this bug.

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

--HG--
extra : moz-landing-system : lando
2018-11-21 18:59:00 +00:00
Timothy Guan-tin Chien
af2973ef61 Bug 1503019 - Part II, Remove dom.webcomponents.customelements.enabled pref r=smaug
This patch removes the following functions:

* nsContentUtils::IsCustomElementsEnabled()
* CustomElementRegistry::IsCustomElementEnabled(JSContext* aCx, JSObject* aObject)
* CustomElementRegistry::IsCustomElementEnabled(nsIDocument* aDoc)

and all references of the pref.

Depends on D11183

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

--HG--
extra : moz-landing-system : lando
2018-11-15 06:52:01 +00:00
Timothy Guan-tin Chien
2b5881e46b Bug 1503019 - Part I, Remove dom.webcomponents.shadowdom.enabled r=smaug
This patch removes the dom.webcomponents.shadowdom.enabled pref and all its
references, including the following functions:

* nsContentUtils::IsShadowDOMEnabled()
* nsIDocument::IsShadowDOMEnabled()
* nsDocument::IsShadowDOMEnabled(JSContext* aCx, JSObject* aGlobal)
* nsDocument::IsShadowDOMEnabled(const nsINode* aNode)
* nsTextNode::IsShadowDOMEnabled(JSContext* aCx, JSObject* aObject)

This function is renamed and updated to nsDocument::IsCallerChromeOrAddon():

* nsDocument::IsShadowDOMEnabledAndCallerIsChromeOrAddon(JSContext* aCx, JSObject* aObject)

I didn't change the tests that load Shadow DOM tests in an iframe, in the interest of keeping hg annotation history.

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

--HG--
extra : moz-landing-system : lando
2018-11-15 06:51:07 +00:00
Andreea Pavel
d51566f085 Backed out 2 changesets (bug 1503019) for failing crashtests at dom/base/crashtests/1505811.html on a CLOSED TREE
Backed out changeset 06b12fd41ff1 (bug 1503019)
Backed out changeset 7b845eac9dd7 (bug 1503019)
2018-11-15 01:52:30 +02:00
Timothy Guan-tin Chien
c69315234b Bug 1503019 - Part II, Remove dom.webcomponents.customelements.enabled pref r=smaug
This patch removes the following functions:

* nsContentUtils::IsCustomElementsEnabled()
* CustomElementRegistry::IsCustomElementEnabled(JSContext* aCx, JSObject* aObject)
* CustomElementRegistry::IsCustomElementEnabled(nsIDocument* aDoc)

and all references of the pref.

Depends on D11183

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

--HG--
extra : moz-landing-system : lando
2018-11-14 19:37:42 +00:00
Timothy Guan-tin Chien
c0cc4f74e7 Bug 1503019 - Part I, Remove dom.webcomponents.shadowdom.enabled r=smaug
This patch removes the dom.webcomponents.shadowdom.enabled pref and all its
references, including the following functions:

* nsContentUtils::IsShadowDOMEnabled()
* nsIDocument::IsShadowDOMEnabled()
* nsDocument::IsShadowDOMEnabled(JSContext* aCx, JSObject* aGlobal)
* nsDocument::IsShadowDOMEnabled(const nsINode* aNode)
* nsTextNode::IsShadowDOMEnabled(JSContext* aCx, JSObject* aObject)

This function is renamed and updated to nsDocument::IsCallerChromeOrAddon():

* nsDocument::IsShadowDOMEnabledAndCallerIsChromeOrAddon(JSContext* aCx, JSObject* aObject)

I didn't change the tests that load Shadow DOM tests in an iframe, in the interest of keeping hg annotation history.

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

--HG--
extra : moz-landing-system : lando
2018-11-14 19:34:52 +00:00
Emilio Cobos Álvarez
aa78b6d05a Bug 1505817 - Handle the case where a float is dynamically inserted inside a continuation. r=dbaron
The first assertion that fails here, and which causes all the havoc later, is:

  https://dev.searchfox.org/mozilla-central/rev/6e0e603f4852b8e571e5b8ae133e772b18b6016e/layout/generic/BlockReflowInput.cpp#578

That happens because the float has been dynamically inserted directly under one
of the continuations of the column set, not under the first. So that assertion
doesn't really hold.

Properly steal the float if that happens.

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

--HG--
extra : moz-landing-system : lando
2018-11-08 21:37:16 +00:00
Daniel Holbert
039305b565 Bug 1488762: Soften an assertion about sign of free space in flex layout, since absurdly large sizes can cause it to fail. r=bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D9876

--HG--
extra : moz-landing-system : lando
2018-10-26 00:58:40 +00:00
Daniel Holbert
ae143565fe Bug 1178783: Add crashtest for (now-fixed) flexbox hang bug. (no review, test-only)
--HG--
extra : rebase_source : f23ccca84f728e5bd8261911a430cda626270158
2018-10-05 14:15:53 -07:00
Timothy Guan-tin Chien
74e03a4f3d Bug 1493741 - Don't generate elements around UA Widget shadow root r=emilio
This patch make nsCSSFrameConstructor::CreateGeneratedContentItem() early
returns if the originating element contains an UA Widget shadow root.

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

--HG--
extra : moz-landing-system : lando
2018-09-28 00:23:15 +00:00
Xidorn Quan
570c41577d Bug 1494380 - Ignore emphasis marks on combined text with horizontal writing mode. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D7046

--HG--
extra : moz-landing-system : lando
2018-09-27 08:50:21 +00:00
Margareta Eliza Balazs
ffe6eaf2f0 Merge inbound to mozilla-central. a=merge 2018-09-25 12:42:09 +03:00
Mats Palmgren
d6409e3f5e Bug 1493805 - Initialize ReflowInput::mCBReflowInput also for placeholders, in case we need it for some reason. r=emilio
Bug 1493710 might make this redundant, but it seems like we
should always do this anyway just in case...
2018-09-25 05:03:26 +02:00
Emilio Cobos Álvarez
462df0be75 Bug 1493708 - Handle split frames properly in FrameParticipatesIn3DContext. r=mattwoodrow
We're traversing primary frames, which are first continuations, so we can't
start from a continuation and expect to get to it. Add an assertion that would
catch further fishyness.

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

--HG--
extra : moz-landing-system : lando
2018-09-24 20:07:39 +00:00
Brian Grinstead
a4630f7000 Bug 1487568 - Ignore whitespace only text nodes for XBL compatibility hack for unmatched children dropping content;r=smaug
For browser.xhtml, we have extra whitespace text nodes that appear inside of
mBoundElement, which was causing XBL content to be incorrectly dropped.

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

--HG--
extra : moz-landing-system : lando
2018-09-13 18:53:41 +00:00
Emilio Cobos Álvarez
3f3f172053 Bug 1490685 - Crashtest. 2018-09-12 22:08:01 +02:00
Bogdan Tara
a23c3959b6 Merge inbound to mozilla-central. a=merge 2018-09-12 06:22:14 +03:00
Emilio Cobos Álvarez
6f20e824b9 Bug 1489863 - Add a crashtest. r=dholbert
This crashtest is simpler than the one from bug 1489287, so I think we should
land it.

Differential Revision: https://phabricator.services.mozilla.com/D5523
2018-09-11 19:08:16 +02:00
Emilio Cobos Álvarez
3bd3cd63e5 Bug 1489287 - Always try to eagerly-place a floating first-letter frame. r=mats
To avoid its deferred reflow potentially killing continuations that are parented
to the parent of the letter frame.

This rolls back to the behavior previous to bug 488725 just for this case, until
we fix it properly in bug 1490281. This also fixes bug 1489863.

Differential Revision: https://phabricator.services.mozilla.com/D5521
2018-09-11 19:07:58 +02:00
Mats Palmgren
df48156d1e Bug 1489770 - Don't convert InlineBreak::Before reflow status to Incomplete unless we know the child frame is splittable. r=dholbert 2018-09-11 20:07:28 +02:00
Emilio Cobos Álvarez
30e5e31b05 Bug 1486457 - Clear the float list if we weren't able to place a line. r=dbaron
We'll re-do the line anyway, and we'll forget about all the already-positioned
floats in the line DoReflowInlineFrames anyway.

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

--HG--
extra : moz-landing-system : lando
2018-08-28 18:13:20 +00:00
Emilio Cobos Álvarez
a52d435c07 Bug 1485525 - Land an XBL-free version of the crashtest for bug 401042. r=mats
So this keeps covered if XBL goes away.

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

--HG--
extra : moz-landing-system : lando
2018-08-23 10:43:29 +00:00
Timothy Guan-tin Chien
166aa2d738 Bug 1483972 - Allow videocontrols to initialize without style r=jaws,dholbert!,jaws!
This crash happens because nsVideoFrame didn't know what to do with two
children in the UA Widget Shadow Root.

The two children are both videocontrols, with the first one being the lingering
DOM inserted by first constructor call that throws.

The subsequent appendChild of the same element caused the videocontrols
to be initialized again, since the previous run didn't return a widget
instance to UAWidgetsChild.

The fix here removes the throw statement added in
https://hg.mozilla.org/mozilla-central/rev/dca187f7c72c#l3.15 ,
allowing the constructor to complete.

Without this statement, we will rely on assertion in the test here
https://hg.mozilla.org/mozilla-central/rev/4ddca5eb06c2#l2.18
to fail on slower platforms to ensure the stylesheet is loaded synchronously.

An alternative fix would be to wrap up the contructor in a try catch block
from UAWidgetsChild and make sure the DOM is cleaned up when the constructor
throw. That however will hide the error thrown so I decided to remove the throw
statement instead.

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

--HG--
extra : moz-landing-system : lando
2018-08-17 20:43:46 +00:00
Xidorn Quan
0b27da2b4b Bug 1478178 - Sync the condition in ApplyFrameJustification as that in ComputeFrameJustification. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D2817

--HG--
extra : moz-landing-system : lando
2018-08-13 00:07:35 +00:00
Narcis Beleuzu
e2bdc2a3f4 Backed out changeset ddfa5cc2ea30 (bug 1478178) for mochitest failures on layout/base/tests/test_reftests_with_caret.html. CLOSED TREE 2018-08-08 06:48:29 +03:00
Xidorn Quan
6e0250809c Bug 1478178 - Sync the condition in ApplyFrameJustification as that in ComputeFrameJustification. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D2817

--HG--
extra : moz-landing-system : lando
2018-08-08 00:02:40 +00:00
Xidorn Quan
346661e6fd Bug 1481125 - Put overflow: -moz-scrollbar-* behind pref. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D2845

--HG--
extra : moz-landing-system : lando
2018-08-07 13:57:45 +00:00
Kartikaya Gupta
3bf383c2cd Bug 1474885 - Re-enable crashtests that are now passing. r=nical
MozReview-Commit-ID: 334GLtdSzF5

--HG--
extra : rebase_source : 015277f17a77b571ed50e10a5207957e4a0f2bb7
2018-08-02 10:28:15 -04:00
Emilio Cobos Álvarez
0c01140e18 Bug 1477553: Hide display: -moz-box|-moz-inline-box from content on Nightly and early beta. r=xidorn
Differential Revision: https://phabricator.services.mozilla.com/D2288

MozReview-Commit-ID: F9BeAneKY6e
2018-07-23 17:27:17 +02:00
Cosmin Sabou
39220f357c Backed out 2 changesets (bug 1477553) for reftest failures on xulscroll.html.
Backed out changeset a5bebad6bb23 (bug 1477553)
Backed out changeset 8d4b97056365 (bug 1477553)
2018-07-23 18:03:10 +03:00
Emilio Cobos Álvarez
e8373c682f Bug 1477553: Hide display: -moz-box|-moz-inline-box from content on Nightly and early beta. r=xidorn
Differential Revision: https://phabricator.services.mozilla.com/D2288

MozReview-Commit-ID: F9BeAneKY6e
2018-07-23 15:31:30 +02:00
Cosmin Sabou
51ed9f0129 Backed out changeset d0cb9041aa08 (bug 1477553) for browser chrome mochitest failures on /browser_parsable_css.js. 2018-07-23 13:17:09 +03:00
Emilio Cobos Álvarez
6eb98a1602 Bug 1477553: Hide display: -moz-box|-moz-inline-box from content on Nightly and early beta. r=xidorn
Differential Revision: https://phabricator.services.mozilla.com/D2288

MozReview-Commit-ID: F9BeAneKY6e
2018-07-23 10:33:32 +02:00
Emilio Cobos Álvarez
33cdb446f0 Bug 1474768: Fix nsInlineFrame::ReflowInlineFrame to properly detect whether we'll pull from a next-in-flow. r=dbaron
The key difference is checking the overflow lists from the next in flows, which
is something that PullOneFrame does but ReflowInlineFrame didn't.

MozReview-Commit-ID: I1JwOOeIBo9
2018-07-21 22:40:50 +02:00
Paolo Amadini
f473f4d560 Bug 1472555 - Part 1 - Remove listbox crashtests and reftests. r=bz
Most of the removed tests are specific to listbox code, some are related to fixes already covered elsewhere, and some have no associated fix and were originally checked in just for good measure.

MozReview-Commit-ID: 3AQXoKy6HhU

--HG--
extra : rebase_source : 88781275bfdb436c0bb4249972435ad74e95002e
2018-07-07 12:45:55 +01:00
Emilio Cobos Álvarez
0da3dae9c9 Bug 1472403: Simplify generated image content. r=bz,dholbert
This way we reuse the same machinery everywhere for the content property.

The only difference is that we need to look at the parent style for content
instead of just our style, and at a given index.

Again, this is fine because changing content reframes, so no chance to mess up.

This allows the generated content stuff to not implement nsImageLoadingContent
and all that stuff, nor deal with events, which makes it much simpler IMO.

Now it just tracks an index. We may not even need for it to be an HTML element,
but I've kept that for now.

I added a crashtest that used to crash because of the bogus
nsCSSFrameConstructor code which trusted the node name without checking it was
native anonymous.

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

MozReview-Commit-ID: 1pAzIvRRVnL
2018-07-16 18:06:38 +02:00
shindli
ba72001f71 Backed out 2 changesets (bug 1473813, bug 1472403) for bustages in /builds/worker/workspace/build/src/dom/base/MessageSender.cpp:24:19 on a CLOSED TREE
Backed out changeset 93e4dff7e346 (bug 1473813)
Backed out changeset 365a0841117a (bug 1472403)
2018-07-16 18:45:33 +03:00
Emilio Cobos Álvarez
966f1a9206 Bug 1472403: Simplify generated image content. r=bz,dholbert
This way we reuse the same machinery everywhere for the content property.

The only difference is that we need to look at the parent style for content
instead of just our style, and at a given index.

Again, this is fine because changing content reframes, so no chance to mess up.

This allows the generated content stuff to not implement nsImageLoadingContent
and all that stuff, nor deal with events, which makes it much simpler IMO.

Now it just tracks an index. We may not even need for it to be an HTML element,
but I've kept that for now.

I added a crashtest that used to crash because of the bogus
nsCSSFrameConstructor code which trusted the node name without checking it was
native anonymous.

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

MozReview-Commit-ID: 1pAzIvRRVnL
2018-07-16 17:30:14 +02:00
David Zbarsky
02175d436a Bug 388049 - Add crashtest. r=mats DONTBUILD 2018-07-01 18:06:50 +02:00
Mats Palmgren
f6a5825bd5 Bug 390052 - Add a crashtest. r=me 2018-07-01 18:06:50 +02:00
Daniel Holbert
afbce93557 Bug 390417 - Add crashtest. r=mats 2018-07-01 18:06:50 +02:00
Martijn Wargers
5ed72e2df3 Bug 404624 - Add crashtest. r=mats 2018-07-01 18:06:50 +02:00
Jesse Ruderman
cd25e4a210 Bug 415818 - Add crashtest. r=mats 2018-07-01 18:06:50 +02:00
Jesse Ruderman
5df03ec667 Bug 471360 - Add crashtest. r=mats 2018-07-01 18:06:50 +02:00
Jesse Ruderman
9781289c21 Bug 478504 - Add crashtest. r=mats 2018-07-01 18:06:50 +02:00
Jesse Ruderman
c641fbf157 Bug 507566 - Add crashtest. r=mats 2018-07-01 18:06:50 +02:00
Abhishek Arya
6035e634d8 Bug 790252 - Add crashtests. r=mats 2018-07-01 18:06:49 +02:00