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

663 Коммитов

Автор SHA1 Сообщение Дата
Brendan Dahl 237d762715 Bug 1510785 - Skip all XBL related tests when XBL is disabled. r=bzbarsky
XBL will be disabled on android, so these tests must be skipped. Where possible
tests are copied to create shadow DOM tests.

Depends on D45615

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

--HG--
rename : layout/inspector/tests/test_bug522601.xhtml => layout/inspector/tests/test_bug522601-shadow.xhtml
rename : layout/inspector/tests/test_bug609549.xhtml => layout/inspector/tests/test_bug609549-shadow.xhtml
rename : layout/reftests/bugs/334829-1a.xhtml => layout/reftests/bugs/334829-1a-shadow.xhtml
rename : layout/reftests/bugs/334829-1b.xhtml => layout/reftests/bugs/334829-1b-shadow.xhtml
rename : layout/reftests/bugs/386310-1b.html => layout/reftests/bugs/386310-1b-shadow.html
rename : layout/reftests/bugs/386310-1c.html => layout/reftests/bugs/386310-1c-shadow.html
rename : layout/reftests/bugs/386310-1d.html => layout/reftests/bugs/386310-1d-shadow.html
rename : layout/reftests/bugs/482592-1a.xhtml => layout/reftests/bugs/482592-1a-shadow.xhtml
rename : layout/reftests/bugs/482592-1b.xhtml => layout/reftests/bugs/482592-1b-shadow.xhtml
rename : layout/reftests/css-selectors/sibling-combinators-on-anon-content-1.xhtml => layout/reftests/css-selectors/sibling-combinators-on-anon-content-1-shadow.xhtml
rename : layout/reftests/css-selectors/sibling-combinators-on-anon-content-2.xhtml => layout/reftests/css-selectors/sibling-combinators-on-anon-content-2-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-appendmultiple.xhtml => layout/reftests/dom/multipleinsertionpoints-appendmultiple-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-appendsingle-1.xhtml => layout/reftests/dom/multipleinsertionpoints-appendsingle-1-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-appendsingle-2.xhtml => layout/reftests/dom/multipleinsertionpoints-appendsingle-2-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-insertmultiple.xhtml => layout/reftests/dom/multipleinsertionpoints-insertmultiple-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-insertsingle-1.xhtml => layout/reftests/dom/multipleinsertionpoints-insertsingle-1-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-insertsingle-2.xhtml => layout/reftests/dom/multipleinsertionpoints-insertsingle-2-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-ref2.xhtml => layout/reftests/dom/multipleinsertionpoints-ref2-shadow.xhtml
rename : layout/reftests/ib-split/insert-into-split-inline-5.html => layout/reftests/ib-split/insert-into-split-inline-5-shadow.html
extra : moz-landing-system : lando
2019-10-08 23:52:46 +00:00
Jeff Muizelaar c572d06005 Bug 1516286. WR Fallback: Do the empty check later. r=aosmond
What we actually care about here is whether itemRect is empty bceause that's
the what we'll use for the actual surface size.

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

--HG--
extra : moz-landing-system : lando
2019-10-08 14:20:40 +00:00
Geoff Brown 23a9f21ad1 Bug 1457050 - Allow range of assertions in crashtest 453894-1.xhtml on Android; r=m_kato
Avoid intermittent test failures on android.
The existing android assertion count was introduced by bug 1405550, to avoid
assertion count failures with stylo.

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

--HG--
extra : moz-landing-system : lando
2019-10-02 00:00:14 +00:00
Hiroyuki Ikezoe 3be0a1e6ab Bug 1511442 - A crash test by fuzzing. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D47565

--HG--
extra : moz-landing-system : lando
2019-09-30 19:46:53 +00:00
Geoff Brown b0e5901c93 Bug 1582884 - Enable some crashtests on Android; r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D46784

--HG--
extra : moz-landing-system : lando
2019-09-24 01:12:09 +00:00
Ting-Yu Lin c5276e94a3 Bug 1580576 - Remove an assertion to check <details> element's frame type when reframing. r=emilio
If a <details> is a multi-column container, and has a column-span child
inside, aFrame can be ColumnSetWrapper or column-span-wrapper frame (due
to GetInsertionPrevSibling()'s modification). The latter case is handled
by "Situation #5 in WipeContainingBlock(), and can be reproduced by
changing `<article>` tag to `<details>` in
testing/web-platform/tests/css/css-multicol/multicol-span-all-dynamic-add-005.html

In any case, aFrame might end up in a frame generated by the <details>
element. I feel the assertion to check frame types might not be very
useful. Let's remove it.

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

--HG--
extra : moz-landing-system : lando
2019-09-11 21:52:40 +00:00
Ting-Yu Lin b50d29b125 Bug 1579953 - Check details element to determine whether to reframe. r=emilio
If the <details> has ::first-letter, insertion.mParentFrame may be
modified by GetInsertionPrevSibling(), and points to nsFirstLetterFrame.

Fortunately, nsFirstLetterFrame's content is the details element. We can
check the content to determine if reframing the <details> is needed.

Also, add a reftest to test that an appended text should apply styles in
details::first-line.

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

--HG--
extra : moz-landing-system : lando
2019-09-11 00:04:26 +00:00
L. David Baron a08b5323cb Bug 1576972 - Keep lastRealFrame up-to-date even when we skip empty text frames. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D43885

--HG--
extra : moz-landing-system : lando
2019-08-29 10:14:08 +00:00
Ting-Yu Lin 40da910325 Bug 1575106 Part 4 - Add reftests, crashtests, and adjust test expectations. r=dbaron
1346454-1.html and 1346454-2.html are moved to keep the list sorted.

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

--HG--
extra : moz-landing-system : lando
2019-08-26 06:10:34 +00:00
Jonathan Kew 39041986c7 Bug 1575908 - Remove spurious code trying to reinitialize a propertyProvider. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D43261

--HG--
extra : moz-landing-system : lando
2019-08-23 15:49:28 +00:00
Emilio Cobos Álvarez d8298290d7 Bug 1574101 - Use the right parent frame for `block ruby` if it's out of flow. r=mats
I should've caught this when reviewing, in fairness.

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

--HG--
extra : moz-landing-system : lando
2019-08-15 22:21:35 +00:00
Noemi Erli 7244716bb5 Backed out changeset 4d8eb840fc2e (bug 1574101) so it can reland without unrelated reformatting changes r=dholbert CLOSED TREE 2019-08-16 01:00:14 +03:00
Emilio Cobos Álvarez ad39790be6 Bug 1574101 - Use the right parent frame for `block ruby` if it's out of flow. r=mats
I should've caught this when reviewing, in fairness.

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

--HG--
extra : moz-landing-system : lando
2019-08-15 21:14:34 +00:00
Ting-Yu Lin 206960605d Bug 1569701 Part 2 - Use ColumnSetWrapper's effective computed content block-size to impose constraint for ColumnSet. r=dbaron
Run broken-column-rule-1.html with column-span enabled because it was
regressed by Bug 1548100 Part 2, but fixed by this patch.

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

--HG--
extra : moz-landing-system : lando
2019-08-15 16:59:13 +00:00
Ting-Yu Lin af311f8f6e Bug 1566672 - Handle the {ib}-split reframing in multicol subtree properly. r=dholbert
Delete `return false` at the end of the if-statement block that handling
the multicol subtree reframing, and let it fall though the bottom of
WipeContainingBlock() where there is a complete logic for ib-split
reframing.

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

--HG--
extra : moz-landing-system : lando
2019-07-19 19:38:05 +00:00
Ting-Yu Lin 15be167a5b Bug 1547391 - Add a crashtest for multicol <details> containing a column-span. r=dbaron
Bug 1562701 fixed this crash.

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

--HG--
extra : moz-landing-system : lando
2019-07-11 05:33:09 +00:00
Brendan Dahl 28dcf95b41 Bug 1557371 - Part 2 - Load all XUL crashtests with chrome privilege. r=dbaron
386947-1.xul, now has one assertion since we take a different code
path with chrome URL's and XBL files. The assertion is triggered since the
binding is invalid.

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

--HG--
extra : moz-landing-system : lando
2019-07-09 19:40:42 +00:00
Sean Feng 7b15bc44ad Bug 1560328 - Add a crashtest for Bug 1560328 r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D36621

--HG--
extra : moz-landing-system : lando
2019-07-02 18:37:45 +00:00
Ting-Yu Lin dbbf8bb804 Bug 1524411 - Null-check kid in nsLayoutUtils::GetFirstLinePosition(). r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D34247

--HG--
extra : moz-landing-system : lando
2019-06-13 04:20:55 +00:00
Jean-Yves Avenard b0082c7c5b Bug 1558770 - Remove non-functional test. r=kats
The test is supposed to test that changing the preference layers.acceleration.disabled doesn't cause a crash, but this pref is only read on startup well before the test has a chance to run and switch the pref.

It's not doing anything.

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

--HG--
extra : moz-landing-system : lando
2019-06-13 00:35:30 +00:00
Ting-Yu Lin 0702152462 Bug 1549867 - Add a crashtest. r=jfkthame
This test no longer crashes after fixing bug 1524431.

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

--HG--
extra : moz-landing-system : lando
2019-06-11 16:23:29 +00:00
Jonathan Kew a2f7229746 Bug 1553874 - Add crashtest. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D34246

--HG--
extra : moz-landing-system : lando
2019-06-08 18:42:30 +00:00
Ting-Yu Lin 55c5622538 Bug 1555823 - Remove bug 1323652 annotations from crashtest.lists. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D33213

--HG--
extra : moz-landing-system : lando
2019-05-30 22:18:01 +00:00
Emilio Cobos Álvarez aaaed5755e Bug 1548057 - Crashtest. r=boris
This crashes both debug and opt builds pretty badly without the fix for this
bug.

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

--HG--
extra : moz-landing-system : lando
2019-05-02 07:32:26 +00:00
Matt Woodrow 3fc4716479 Bug 1535945 - Don't skip invalidating frames when creating displayports for async scrollable ancestors. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D23816

--HG--
extra : moz-landing-system : lando
2019-05-01 04:23:07 +00:00
Emilio Cobos Álvarez 30fc959628 Bug 1547261 - Add a crashtest. r=me 2019-04-27 13:22:37 +02:00
Ting-Yu Lin 1291170e57 Bug 1541679 - Skip pseudo frames when finding multicol containing block for reframing. r=bzbarsky
This patch does something similar to GetIBContainingBlockFor() because
pseudo frames are not good reframe target.

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

--HG--
extra : moz-landing-system : lando
2019-04-16 05:35:51 +00:00
Ting-Yu Lin e97f2269a5 Bug 1543308 - Add crashtests that were fixed by bug 322678. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D26857

--HG--
extra : moz-landing-system : lando
2019-04-15 16:52:17 +00:00
Mats Palmgren 7ddc125f22 Bug 1539303 - Add a crashtest. r=me
--HG--
extra : rebase_source : ce4df96f9c010fc12d947912ee7516846ed1e008
2019-04-01 23:41:01 +02:00
Mats Palmgren 43cfdd6d13 Bug 1539017 - Update the parent for the outside ::marker frame in case we moved it to a ColumnSetWrapperFrame ancestor. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D25313

--HG--
extra : rebase_source : aee0f8d900b149288536fca9ea88a7cd25148779
2019-03-28 23:38:03 +01:00
Ting-Yu Lin 0e0ec3037e Bug 1534146 - Do not call NS_RemoveSubsumedHints if the frame is a column-span. r=emilio
We avoid removing subsumed hints for out-of-flow and column-span frames
in RestyleManager::ProcessPostTraversal(). We should do something
similar here.

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

--HG--
extra : moz-landing-system : lando
2019-03-22 23:36:59 +00:00
Emilio Cobos Álvarez cc4fab743c Bug 1470499 - Crashtest. r=test-only 2019-03-22 15:10:10 +01:00
Emilio Cobos Álvarez 3ef54dcb35 Bug 1428892 - Crashtest. r=test-only 2019-03-22 15:09:55 +01:00
Ting-Yu Lin 0ac3561306 Bug 1533885 - Bail out from MaybeRecreateForColumnSpan if aFrameList is empty. r=dbaron
The test case triggers MOZ_ASSERT(!IsFramePartOfIBSplit(aParentFrame))
in MaybeRecreateForColumnSpan() because WipeContainingBlock() returns
early when the FrameConstructionItemList is empty. Thus, it doesn't wipe
the aParentFrame even if it's part of an IB split.

An empty FrameConstructionItemList constructs no frames. Therefore,
MaybeRecreateForColumnSpan() doesn't need to do anything if aFrameList is empty
since an empty frame list cannot contain any column-span.

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

--HG--
extra : moz-landing-system : lando
2019-03-20 21:17:38 +00:00
Ting-Yu Lin 93d595b35d Bug 1524382 - Flush all out-of-flow frames before destroying the frame list when reframing multicol container. r=dbaron
aFrameList can contain placeholder frames. If we decide to nuke
aFrameList, we need to destroy the out-of-flow frames gracefully.

In this case, out-of-flow frames are still in nsFrameConstructorState's
absolute item lists. To rely on nsPlaceholderFrame::DestroyFrom() to
remove its out-of-flow frame properly, we manually flush all the frame
insertions for all the lists in aState before destroying aFrameList.

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

--HG--
extra : moz-landing-system : lando
2019-02-19 22:37:24 +00:00
Emilio Cobos Álvarez 729263c3df Bug 1511563 - Don't make NAC editable by default. r=masayuki
I think this is a more consistent fix for the issue.

Differential Revision: https://phabricator.services.mozilla.com/D16521
2019-01-15 11:52:35 +01:00
Ting-Yu Lin 3bd2052ec3 Bug 1486521 - Make Selection::Stringify() stop flushing frames if AccessibleCaretManager doesn't allow so. r=emilio
The added crashtest still crashes on Android verify runs (TV) for
unknown reasons, so skip it.

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

--HG--
extra : moz-landing-system : lando
2019-01-14 04:58:59 +00:00
Ryan VanderMeulen 43004ee1dc No bug - Clean up dom/base/crashtests/crashtests.list a bit. r=me
Also re-enables some tests which no longer timeout intermittently.

--HG--
extra : rebase_source : c99178e1028e7d9ab2e7fd8da30220b37d311a95
2019-01-12 11:54:11 -05:00
Henri Sivonen 40eb2c1d4e Bug 256180 Dalvik part - Disable some deep-tree tests on Android, because running the tests on Dalvik is not feasible. r=snorp. 2019-01-11 09:44:09 +02:00
Andreea Pavel f5a1a0f098 Backed out 5 changesets (bug 256180) for failing win xpcshell at xpcshell.ini:toolkit/mozapps/extensions/test/xpcshell/test_temporary.js on a CLOSED TREE
Backed out changeset e85e41f84971 (bug 256180)
Backed out changeset 125ebcfac58d (bug 256180)
Backed out changeset bc2e0a89d88e (bug 256180)
Backed out changeset b696df615c8b (bug 256180)
Backed out changeset 2d69841d2eb7 (bug 256180)
2019-01-08 20:35:31 +02:00
Henri Sivonen 3e767f4f71 Bug 256180 Dalvik part - Disable some deep-tree tests on Android, because running the tests on Dalvik is not feasible. r=snorp. 2019-01-08 18:08:37 +02:00
Ting-Yu Lin 473998be7d Bug 1506314 - Fix reframing ColumnSetWrapperFrame when it already has column-span children. r=dbaron
If a ColumnSetWrapperFrame already has column-span children,
ColumnSetWrapperFrame::GetContentInsertionFrame() will return itself to
let WipeContainingBlock() aware this is the case to reframe.

To make this work, we need to move the reframe condition prior to check
NS_FRAME_HAS_MULTI_COLUMN_ANCESTOR bit because the top level
ColumnSetWrapperFrame never has NS_FRAME_HAS_MULTI_COLUMN_ANCESTOR bit
set.

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

--HG--
extra : moz-landing-system : lando
2018-12-20 00:11:26 +00:00
Ting-Yu Lin 45814e9ae8 Bug 1511535 - Add a crashtest that sets "column-span:all" to an element under "position:fixed" subtree. r=dbaron
The <iframe> in the test case is getting the "column-span:all" style,
but it's under a position:fixed frame subtree. After the patch in bug
1507244 landed, NS_FRAME_HAS_MULTI_COLUMN_ANCESTOR won't be added
incorrectly to the out-of-flow subtree.

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

--HG--
extra : moz-landing-system : lando
2018-12-15 00:33:52 +00:00
Ting-Yu Lin 1e0598caea Bug 1507244 Part 2 - Suppress column-span descendants under a new block formatting context. r=dbaron
Bug 1506163 fixed only part of the issue. There are more types of frames
such as table, grid, flex, etc. that create their own block formatting
context.

Instead of propagating NS_FRAME_HAS_MULTI_COLUMN_ANCESTOR to the
children, we explicit carry the bit over to block and inline frames by
checking that their parent doesn't suppress column-span descendants.

Also, remove the unused "onload" from <body> in the tests.

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

--HG--
extra : moz-landing-system : lando
2018-12-18 00:40:58 +00:00
Emilio Cobos Álvarez 1288b871bf Bug 1510485 - Properly handle errors in nsFind when returning a range. r=bzbarsky
Bug 1505887 changed the behavior here from content calling into nsFind via
window.find(), by making the SetStart and SetEnd calls here fail instead of
succeed for NAC (like the text in textareas).

This patch makes us handle that error gracefully moving on to the next match,
instead of trying to preserve the previous behavior.

This means that we'll fail to highlight textarea content and such from
window.find, which Chromium does, looks like. Though Chromium doesn't expose
the ranges as selection either. In any case I don't think that this is a very
common thing given bugs like bug 1442466, which this bug fixes.

I haven't found anything close to a spec for what window.find() should do... If
we decide to go with this patch then I'll add a crashtest for this and a test
for bug 1442466 as well. Otherwise I'll add a way to skip the security check in
nsFind somehow for NAC, or relax the security restrictions in SetStart /
SetEnd, I guess.

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

--HG--
extra : moz-landing-system : lando
2018-12-11 01:06:32 +00:00
Emilio Cobos Álvarez b39cd46f55 Bug 1510080 - Fix appending into a fragmented fieldset. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D13079

--HG--
extra : moz-landing-system : lando
2018-11-29 21:54:57 +00:00
Ting-Yu Lin e96e20c21d Bug 1506163 - Do not span column-span:all element across all columns if it's under different block formatting context. r=bz
multicol-span-all-004-ref.html is the same as multicol-span-all-004.html except
for the "column-span" value in h3.

Differential Revision: https://phabricator.services.mozilla.com/D12192
2018-11-19 11:27:45 -08:00
Ting-Yu Lin 9ca1f4544a Bug 1506204 - Check the in flow frame to determine when to reframe the multicol container. r=dbaron
When removing an out of flow frame under a multicol subtree, it shouldn't affect
the multicol tree structure. We should instead check the in flow frame's
relationship with the multicol subtree.

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

--HG--
extra : moz-landing-system : lando
2018-11-18 00:11:55 +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