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

71193 Коммитов

Автор SHA1 Сообщение Дата
Mats Palmgren baaafd0dfa Bug 1604772 - Remove the eSVGGeometry IsFrameOfType bit. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D57622

--HG--
extra : moz-landing-system : lando
2019-12-18 16:06:29 +00:00
Mats Palmgren 5bd596d87f Bug 1604771 - Remove the eSVGForeignObject IsFrameOfType bit. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D57621

--HG--
extra : moz-landing-system : lando
2019-12-18 16:00:47 +00:00
Alex Henrie 5254fbc4df Bug 1604393 - Remove dead assignment from nsImageFrame::DisplayAltFeedbackWithoutLayer. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D57417

--HG--
extra : moz-landing-system : lando
2019-12-18 19:51:13 +00:00
Kirk Steuber 634d236f08 Bug 1603826 - Replace XULElement.dir with getAttribute/setAttribute r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D57577

--HG--
extra : moz-landing-system : lando
2019-12-18 18:17:15 +00:00
Edwin Takahashi 38542fdf52 Bug 1604338 - annotate unexpected outcomes for layout/reftests/async-scrolling/reftest.list when run on ubuntu1804 with webrender r=jmaher
Changes:

Most tests have smaller value for the `minDiff` side of things, and a slightly larger value for the `maxPixelCount` side of things when ubunt1804 runs the test. Adjust the expectation so that ubuntu1604 and ubuntu1804 both pass for the time being, then tighten the values once ubuntu1604 is decommissioned.

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

--HG--
extra : moz-landing-system : lando
2019-12-18 09:29:05 +00:00
Edwin Takahashi 87a945470a Bug 1604583 - add fuzzier annotation for layout/reftests/position-sticky/reftest.list on ubuntu1804 r=jmaher
Changes:

As with other ubuntu1804 reftests, the difference counts need to be updated when run with `webrender`. Once migration is complete, tighten the values.

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

--HG--
extra : moz-landing-system : lando
2019-12-18 09:28:28 +00:00
Emilio Cobos Álvarez b1dc419fff Bug 1602003 - Correct writing-mode handling of nsDocumentViewer::GetContentSize. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D57640

--HG--
extra : moz-landing-system : lando
2019-12-18 17:16:49 +00:00
Mats Palmgren c54ab2ee1a Bug 1604668 - Remove the eExcludesIgnorableWhitespace IsFrameOfType bit. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D57569

--HG--
extra : moz-landing-system : lando
2019-12-18 01:41:20 +00:00
Mats Palmgren ffee4dbd18 Bug 1602430 - Apply min/max-height correctly for fragmented boxes with no height specified. r=TYLin
Depends on D56738

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

--HG--
extra : moz-landing-system : lando
2019-12-17 23:13:13 +00:00
Mats Palmgren a92e745526 Bug 1574046 - Wallpaper the effect of this bug in nsBlockFrame::ComputeFinalSize. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D56738

--HG--
extra : moz-landing-system : lando
2019-12-17 23:03:21 +00:00
Edwin Takahashi 53c3158cff Bug 1604347 - annotate unexpected passes in layout/reftests/svg/text/reftest.list when run on ubuntu1804 r=jmaher
Changes:

Some tests in `layout/reftests/svg/text/reftests.list` now pass unconditionally when run on ubuntu1804. Permit pixel differential value of 0 for these tests while ubuntu1604 and ubutnu1804 coexist, leave the bug open then once the migration is complete look to remove the redundant annotation.

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

--HG--
extra : moz-landing-system : lando
2019-12-17 21:22:31 +00:00
Edwin Takahashi 52c6b8935a Bug 1600208 - mark test_bug756984 as permafail on ubuntu1804 r=jmaher
Changes:

This test is a permafail on ubuntu1804, and should be marked as such as the migration to ubunt1804 is actively underway with target date of end of December 2019.

With a fail-if annotation, the hope is that if this test suddenly begins passing we will be notified of it (as opposed to skipping it outright).

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

--HG--
extra : moz-landing-system : lando
2019-12-17 09:46:27 +00:00
Jonathan Kew 283ad921b7 Bug 1600470 - Reduce the emboldening strength used for synthetic-bold faces with FreeType. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D57246

--HG--
extra : moz-landing-system : lando
2019-12-17 15:51:57 +00:00
Sean Voisen 0e463d054a Bug 1453472 - Add support for logical versions of overscroll-behavior. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D57363

--HG--
extra : moz-landing-system : lando
2019-12-17 11:27:41 +00:00
Emilio Cobos Álvarez 5da9cf54f6 Bug 1604076 - Fix some issues with StyleBox. r=boris
Not having a copy-assignment operator is a massive footgun (as it won't call the
right constructors / destructors). :(

Filed https://bugzilla.mozilla.org/show_bug.cgi?id=1604075 for an analysis that
would've caught this.

One of my WIP patches adding a heap allocation to LengthPercentage caught this.

While at it, add non-const versions of the arrow and deref operators and fix
operator!= too (which doesn't compile, but we don't use it so C++'s template
madness says it's just fine).

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

--HG--
extra : moz-landing-system : lando
2019-12-17 05:10:15 +00:00
Ting-Yu Lin e3160b985d Bug 1601298 - Initialize FlexboxAxisTracker's members in the declaration. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D55823

--HG--
extra : moz-landing-system : lando
2019-12-16 13:38:25 +00:00
Ting-Yu Lin c46a8af074 Bug 1601298 - Initialize nsFlexContainerFrame's members in the declaration. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D55825

--HG--
extra : moz-landing-system : lando
2019-12-16 00:39:55 +00:00
Ting-Yu Lin 938e81c3b9 Bug 1601298 - Initialize PositionTracker and its derived classes' members in the declaration. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D55824

--HG--
extra : moz-landing-system : lando
2019-12-16 13:40:47 +00:00
Ting-Yu Lin b8f164af41 Bug 1601298 - Initialize FlexLine's members in the declaration. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D55822

--HG--
extra : moz-landing-system : lando
2019-12-16 00:41:02 +00:00
Ting-Yu Lin f5f24e4655 Bug 1601298 - Initialize FlexItem's members in the declaration. r=mats
In this way, we can avoid duplicates in FlexItem's normal constructor
and 'strut' constructor.

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

--HG--
extra : moz-landing-system : lando
2019-12-16 13:37:20 +00:00
Alex Henrie a675a1cda4 Bug 1604394 - Remove dead assignment from nsIFrame::PeekOffset. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D57418

--HG--
extra : moz-landing-system : lando
2019-12-17 05:09:00 +00:00
Emma Malysz ebaa98b111 Bug 1601113, replace URIs ending in vnd.mozilla.xul+xml with xhtml+xml r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D57148

--HG--
extra : moz-landing-system : lando
2019-12-17 00:33:16 +00:00
Emilio Cobos Álvarez 224c3f6348 Bug 1603049 - Inherit outline-offset from the table. r=dbaron
outline-offset isn't included in the outline shorthand.

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

--HG--
extra : moz-landing-system : lando
2019-12-16 22:10:11 +00:00
Oana Pop Rus 661db3a39f Backed out 7 changesets (bug 1432856) for build bustages failures in nsWindow.h on a CLOSED TREE
Backed out changeset 3d08c3cce533 (bug 1432856)
Backed out changeset 49d03dd89b17 (bug 1432856)
Backed out changeset 62fc84c8ce99 (bug 1432856)
Backed out changeset a8a4fa63f5b2 (bug 1432856)
Backed out changeset c81f3d5b9bf3 (bug 1432856)
Backed out changeset 8351a8b1d96a (bug 1432856)
Backed out changeset a303b775a51b (bug 1432856)
2019-12-16 23:53:35 +02:00
pbz e03ecc2171 Bug 1432856 - Extended focus methods in Window.webidl, Client.webidl and Element.webidl to pass CallerType. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D55811

--HG--
extra : moz-landing-system : lando
2019-12-16 21:06:11 +00:00
Oana Pop Rus c875c00ad0 Backed out changeset bf28a7e8a8a4 (bug 1600470) for wrench bustages on a CLOSED TREE 2019-12-16 22:52:07 +02:00
Edwin Takahashi 3ca4edb5cd Bug 1599638 - add permissive fuzzy-if annotation for multiscripts-1.html for ubuntu1804 r=jmaher
Changes:

With permission from the feature owner, this test is marked with a permissive fuzzy-if on ubuntu1804.

Once ubuntu1804 migration is complete, the annotation should be tightened to restrictive.

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

--HG--
extra : moz-landing-system : lando
2019-12-16 20:25:27 +00:00
Jonathan Kew 863bbe2172 Bug 1600470 - Reduce the emboldening strength used for synthetic-bold faces with FreeType. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D57246

--HG--
extra : moz-landing-system : lando
2019-12-16 14:40:21 +00:00
Botond Ballo e1f64c8a8e Bug 1601568 - Only send a SetTargetAPZC notification right away if the target has a displayport and it has been painted. r=tnikkel
Merely checking for having a displayport isn't enough, because the paint to
tell APZ about the new scroll frame could still be pending.

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

--HG--
extra : moz-landing-system : lando
2019-12-16 19:45:02 +00:00
Edwin Takahashi c94355dbe6 Bug 1599640 - add permissive fuzzy-if for subscript-italic-correction.html r=jmaher
Changes:

With acknowledgement from the test owner, add a permissive `fuzzy-if` annotation for the test such that ubuntu1804 no longer reports a failure, but the test continues running as intended on ubuntu1604.

Once the migration to ubuntu1804 is complete, the annotation is to be changed to a permanent `fails-if` due to the large pixel variation.

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

--HG--
extra : moz-landing-system : lando
2019-12-16 11:27:00 +00:00
Edwin Takahashi 1b43c9f6ab Bug 1599622 - add permissive annotation for gtkWidget to radio-clamp-02.html test for ubuntu1804 r=jmaher
Changes:

Annotate the reftest failure on ubuntu1804 with a permissive `fuzzy-if` annotation designed to work with both ubuntu1604 and ubuntu1804.

Once the switchover to ubuntu1804 takes place, tighten the pixel range such that future failures can be caught.

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

--HG--
extra : moz-landing-system : lando
2019-12-16 17:22:12 +00:00
Edwin Takahashi ad3af40942 Bug 1600804 - add permissive fuzzy-if annotation to checkbox-clamp-02.html r=jmaher
Changes:

Insert permissive `fuzzy-if` annotation to the test to accommodate ubuntu1804 where the test fails due to large pixel difference.

Once the migration completes the pixel difference value will be tightened.

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

--HG--
extra : moz-landing-system : lando
2019-12-16 11:25:34 +00:00
Edwin Takahashi f85824b97c Bug 1600749 - suppress unexpected failure of css-simple-styling.html on ubuntu1804 r=jmaher
Changes:

Insert a permissive `fuzzy-if` to accommodate ubuntu1804 where the test fails due to large pixel difference.

Once ubuntu1804 migration completes, tighten the annotation to a restrictive one.

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

--HG--
extra : moz-landing-system : lando
2019-12-16 17:20:33 +00:00
Edwin Takahashi 0326bf965f Bug 1591611 - add permissive fuzzy-if for number-selected.html for ubuntu1804 r=jmaher
Changes:

Insert a permissive `fuzzy-if` for the `number-selected.html` test to accommodate ubuntu1804 where the test fails due to large pixel difference.

Once the migration to ubuntu1804 is complete, the permissive range will be tightened such that future deviations can be caught.

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

--HG--
extra : moz-landing-system : lando
2019-12-16 11:27:30 +00:00
Emilio Cobos Álvarez 83fdd60571 Bug 1603807 - Don't divide by zero in ClampAndAlignWithPixels. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D57188

--HG--
extra : moz-landing-system : lando
2019-12-16 15:55:22 +00:00
Alex Henrie 361541b5d9 Bug 1604099 - Remove redundant call to GetColCount from nsCellMap::ShrinkWithoutCell. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D57274

--HG--
extra : moz-landing-system : lando
2019-12-16 08:21:52 +00:00
Ting-Yu Lin dc8592b28f Bug 1598749 - Remove w3c-css/received/css-namespaces reftests. r=dbaron
These reftests can be safely removed because all css-namespace tests are
pass in both received/reftest.list and wpt reftests (no
testing/web-platform/meta/css/css-namespaces folder).

The only manual modification in this patch are removing
`os.path.join("css-namespaces"),` in import-tests.py.

Others parts are generated by running import-tests.py on a wpt
repository with commit 15f199c91a72b0d51bf0a12b3b77827ecb5051ff.

Depends on D56376

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

--HG--
extra : moz-landing-system : lando
2019-12-12 23:58:06 +00:00
Ting-Yu Lin aa1e127bcb Bug 1598749 - Make ./import-tests.py work for python installed at different paths. r=dbaron
When executing `./import-tests.py` in a python virtualenv, the path of
the python interpreter won't be at /usr/bin/python. By using
`/usr/bin/env python`, it works as the system can find a python
interpreter in $PATH.

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

--HG--
extra : moz-landing-system : lando
2019-12-12 23:56:15 +00:00
Ting-Yu Lin dee8773f2c Bug 1602407 - Update documents with wiki.m.o continuation model link added. r=dbaron
DONTBUILD because this is a comment-only change.

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

--HG--
extra : moz-landing-system : lando
2019-12-12 23:57:11 +00:00
Emilio Cobos Álvarez ac506d6f4b Bug 1603889 - Simplify the scrollbar preference setup. r=smaug
So much plumbing to pass an enum down.

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

--HG--
extra : moz-landing-system : lando
2019-12-15 22:56:23 +00:00
Alex Henrie 1b8752a702 Bug 1604009 - Remove dead assignments from nsGridRowGroupLayout functions. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D57234

--HG--
extra : moz-landing-system : lando
2019-12-15 18:57:44 +00:00
Alex Henrie b0f4abbc68 Bug 1604011 - Remove dead assignment from StreamLoader::OnStopRequest. r=emilio,xidorn
Differential Revision: https://phabricator.services.mozilla.com/D57235

--HG--
extra : moz-landing-system : lando
2019-12-15 10:22:50 +00:00
Alex Henrie 6bceafe72c Bug 1603995 - Remove dead assignments from nsFrame::BoxReflow. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D57233

--HG--
extra : moz-landing-system : lando
2019-12-15 06:23:01 +00:00
Masayuki Nakano 271d1b6d1d Bug 1543315 - part 20: Mark `PresShell::ContentStateChanged()` as `MOZ_CAN_RUN_SCRIPT_BOUNDARY` r=smaug
While it calls `RestyleManager::ContentStateChanged()`, it blocks script
with `nsAutoCauseReflowNotifier`.  Therefore, it should be marked as
`MOZ_CAN_RUN_SCRIPT_BOUNDARY` at least (looks like the other override,
`DocAccessible::ContentStateChanged()` does not run script).

There is a concern about the lifetime of `RestyleManager`.  It's destroyed
when `nsPresContext::DetachPresShell()` is called.  It's called by
`PresShell::Destroy()` and destructor of `nsPresContext`.  The latter is
safe since `PresShell` owns `mPresContext` and it's never cleared.  However,
I'm not sure about the former.  It might be better to create blocker of
synchronous handling of `PresShell::Destroy()`.

And also this does not make `Document::ContentStateChanged()` use
`RefPtr<PresShell>` at calling it because it might cause performance
regression, but it does not do anything after destroying
`nsAutoCauseReflowNotifier`.

Finally, for guaranteeing that the lifetime of `PresShell::mPresContext` is
longer than `PresShell`, this makes it to `RefPtr<nsPresContext> const`.
However, initializing it in constructor breaks other objects' initialization
process since they assume that `PresShell::GetPresContext()` won't return
valid pointer until the `nsPresContext` is attached.  For solving this issue
safe, this patch keeps setting `mPresContext` in `Init()` with `const_cast`
hack.

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

--HG--
extra : moz-landing-system : lando
2019-12-11 12:18:33 +00:00
Ciure Andrei 4a058d35be Backed out changeset fd383a15ed4e (bug 1552966) for causing browser_printpreview.js to permafail CLOSED TREE 2019-12-14 17:45:23 +02:00
Jonathan Watt 5096a4a025 Bug 1552966. Convert the printing code to stop using DocShellTree* classes. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D56830

--HG--
extra : moz-landing-system : lando
2019-12-13 14:16:15 +00:00
Emilio Cobos Álvarez 3ccc6c30ab Bug 1603313 - Subdocument enum callbacks should take a reference. r=bzbarsky
As they can never take null.

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

--HG--
extra : moz-landing-system : lando
2019-12-14 05:08:39 +00:00
Emilio Cobos Álvarez b2fe832c7b Bug 1603313 - Remove some silly patterns. r=bzbarsky
foo ? true : false

or:

  foo ? false : true

Have always a nicer way to be written.

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

--HG--
extra : moz-landing-system : lando
2019-12-14 05:05:01 +00:00
Emilio Cobos Álvarez 98d7b088ee Bug 1603871 - Simplify some bits in nsDocumentViewer. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D57175

--HG--
extra : moz-landing-system : lando
2019-12-14 00:25:22 +00:00
Csoregi Natalia 4dea2fe49f Backed out changeset 080ffc0db292 (bug 1603871) for bustages on nsDocumentViewer.cpp. CLOSED TREE 2019-12-14 01:29:09 +02:00
Emilio Cobos Álvarez 2197fb1bf9 Bug 1603871 - Simplify some bits in nsDocumentViewer. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D57175

--HG--
extra : moz-landing-system : lando
2019-12-13 23:05:38 +00:00
Emilio Cobos Álvarez 4d2b2ec8ce Bug 1601983 - Fix print preview ICB size. r=jwatt
When print previewing, use the content-viewer bounds as the visible area of the
document.

We used to get this fixed up via BrowserChild::RecvUpdateDimensions, but no
longer do.

Setting the page size without pixel scaling as the visible size makes no sense.
This code is generally pretty messy, it'd be good to try to unify it somehow
with the non-printing code.

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

--HG--
extra : moz-landing-system : lando
2019-12-13 21:03:30 +00:00
Kris Maglione 3cb2072737 Bug 1596918: Part 4e - Fix callers which rely on frame message manager globals. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53746

--HG--
extra : moz-landing-system : lando
2019-12-13 20:36:40 +00:00
Kris Maglione 295e55e227 Bug 1596918: Part 4d - Fix callers which try to return non-clonable values. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53745

--HG--
extra : moz-landing-system : lando
2019-12-13 20:36:37 +00:00
Kris Maglione 9853440599 Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741

--HG--
extra : moz-landing-system : lando
2019-12-13 20:36:24 +00:00
Kris Maglione 94e3b0bd8d Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

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

--HG--
extra : moz-landing-system : lando
2019-12-13 20:36:16 +00:00
Cameron McCormack 35cf00a2b6 Bug 1603665 - Convert font family name to UTF-16 only once under nsFontFaceUtils::MarkDirtyForFontChange. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D57055

--HG--
extra : moz-landing-system : lando
2019-12-13 11:01:14 +00:00
jeffin143 8f714c8f81 Bug 1601856 : convert NS_STYLE_VISIBILITY_* to an enum class in nsStyleConsts.h r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D56140

--HG--
extra : moz-landing-system : lando
2019-12-13 05:34:38 +00:00
Cameron McCormack 9115e99eb4 Bug 1598480 - Make SVG images respond to theme changes. r=tnikkel,emilio
Differential Revision: https://phabricator.services.mozilla.com/D56156

--HG--
extra : moz-landing-system : lando
2019-12-13 02:04:07 +00:00
Emilio Cobos Álvarez fe173632c7 Bug 1602843 - Preserve CSS input exactly during sanitization. r=hsivonen
This avoids the mutation due to the different serialization in some cases.

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

--HG--
extra : moz-landing-system : lando
2019-12-12 13:57:54 +00:00
Masayuki Nakano d586d5dc73 Bug 1543315 - part 19: Mark `PresShell::ReconstructFrames()` as `MOZ_CAN_RUN_SCRIPT` r=smaug
It calls `Document::FlushPendingNotification()` so that we should mark it
as `MOZ_CAN_RUN_SCRIPT`.

And the method calls it of `mDocument` and `mDocument` is never modified
after it's initialized.  Therefore, we can move the initializer to the
constructor and make `RefPtr<Document>` to `RefPtr<Document> const`.  Thus,
we can avoid unnecessary auto `RefPtr`.

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

--HG--
extra : moz-landing-system : lando
2019-12-11 12:18:00 +00:00
Cameron McCormack 23dcc18ebf Bug 1603016 - Add a --headless option for `mach reftest`. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D56663

--HG--
extra : moz-landing-system : lando
2019-12-13 00:01:06 +00:00
Edwin Takahashi cc1af3d0e5 Bug 1602980 - revert to having distinct skiaContent and gtkWidget annotations for transformations-1.html r=gbrown
Changes:

Partially revert the changes made in D56572 because it appears reftests running on macosx1014 also rely on the `skiaContent` manifest.

The unified manifest condition caused the `macosx1014-shippable-qr` tasks to report a failure with `1-1,1-1`. A separate bug should be used to update the expected failure values for macosx1014 if appropriate.

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

--HG--
extra : moz-landing-system : lando
2019-12-12 15:54:13 +00:00
jeffin143 4298d3f098 Bug 1601990 : convert NS_STYLE_POINTER_EVENTS_* to an enum class in nsStyleConsts.h r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D56203

--HG--
extra : moz-landing-system : lando
2019-12-12 10:24:16 +00:00
Emilio Cobos Álvarez dc5de50e38 Bug 1603160 - Allow MediaQueryList::AddListener to receive untrusted events. r=bzbarsky
I was looking into MediaQueryList tests in the context of:

  https://github.com/w3c/csswg-drafts/issues/4531

And this seemed reasonably easy to fix.

I don't see anything in:

  https://drafts.csswg.org/cssom-view/#dom-mediaquerylist-addlistener

Which doesn't mention anything about untrusted listeners.

I haven't investigated the remaining failure, it seems we call the capture
listener after the regular one...

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

--HG--
extra : moz-landing-system : lando
2019-12-11 18:37:14 +00:00
Masayuki Nakano 33564215e6 Bug 1543315 - part 18: Mark `PresShell::FireResizeEvent()` as `MOZ_CAN_RUN_SCRIPT` r=smaug
It dispatches a DOM event so that it should be marked as `MOZ_CAN_RUN_SCRIPT`.

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

--HG--
extra : moz-landing-system : lando
2019-12-11 12:17:17 +00:00
Emilio Cobos Álvarez 51c8170136 Bug 1598841 - nsCanvasFrame anonymous content needs to be document-level. r=bdahl,heycam
Otherwise code like StyleChildrenIterator won't find it, plus it is the right
thing to do anyway.

You don't really want this to inherit from the root element, even though given
this content is under our control (only in chrome documents) it is less of an
issue.

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

--HG--
extra : moz-landing-system : lando
2019-12-11 22:27:07 +00:00
Cameron McCormack a0c9040f10 Bug 1601824 - Measure partial ligature advance contributions correctly on text paths. r=longsonr
Differential Revision: https://phabricator.services.mozilla.com/D56665

--HG--
extra : moz-landing-system : lando
2019-12-11 04:57:41 +00:00
Morgan Reschenberg 81f63c9d2a Bug 1594099: Use the visual overflow area of text-frame descendants (rather than entire lines) to determine the HCM backplate. r=dholbert
The line-box's visual overflow area includes margin/border/padding area on
its descendants, as well as extra empty space for text-indent and text-align.
None of that area contains text & merits a backplate.  So, we can't rely on
the line-box's visual overflow area to determine the backplate -- we have to
actually dig down to find the text frames.

Also, this patch simplifies our suite of backplate reftests in several ways.
Most notably, this patch:
- removes unnecessary backplatable whitespace in the testcase (since that's
  awkward to mock up in the reference case).
- uses a linear-gradient for the background instead of a longer data URI.
- uses the predictably-sized Ahem font inside of tests' form controls.

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

--HG--
extra : moz-landing-system : lando
2019-12-11 19:19:20 +00:00
Dorel Luca 55496cd03f Backed out changeset c25dd569f2cf (bug 1594099) for Reftest failures on reftests/high-contrast/backplate-bg-image-012.html. CLOSED TREE 2019-12-11 20:45:03 +02:00
Morgan Reschenberg 1126453626 Bug 1594099: Use the visual overflow area of text-frame descendants (rather than entire lines) to determine the HCM backplate. r=dholbert
The line-box's visual overflow area includes margin/border/padding area on
its descendants, as well as extra empty space for text-indent and text-align.
None of that area contains text & merits a backplate.  So, we can't rely on
the line-box's visual overflow area to determine the backplate -- we have to
actually dig down to find the text frames.

Also, this patch simplifies our suite of backplate reftests in several ways.
Most notably, this patch:
- removes unnecessary backplatable whitespace in the testcase (since that's
  awkward to mock up in the reference case).
- uses a linear-gradient for the background instead of a longer data URI.
- uses the predictably-sized Ahem font inside of tests' form controls.

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

--HG--
extra : moz-landing-system : lando
2019-12-11 17:02:12 +00:00
Ting-Yu Lin a50454abf1 Bug 1602767 - Make layout debugger's paged mode use the same setup as reftest-paged. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D56543

--HG--
extra : moz-landing-system : lando
2019-12-11 03:46:58 +00:00
Mats Palmgren 0beec6773c Bug 1572573 - Pushed floats should make block-formatting contexts incomplete, not overflow-incomplete. r=TYLin
So the reason we get the current bogus result is that overflow:hidden
are block-formatting contexts (BFC) and in paginated mode they are
implemented as block frames with NS_BLOCK_CLIP_PAGINATED_OVERFLOW
to do the clipping.  When we have a child float that doesn't fit,
we split it and currently we report that as Overflow-Incomplete
(which is correct for a normal block, but not a BFC) which leads
to creating an overflow-container continuation which has zero
size which we then clip.  We should report it as Incomplete
instead, except if we already are an overflow-container.

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

--HG--
extra : moz-landing-system : lando
2019-12-11 14:17:51 +00:00
Tom Tung 83eb41d14a Bug 1474608 - P1 - Clear origin attributes directly for deleteDataFromOriginAttributesPattern if it's possible; r=asuth,baku
The idea of this patch is to try to not use oberver mechanism as possible. To
achieve that, it introduces deleteByOriginAttributes() to cleaners. Different
from other methods, it would only be executed if it's implemented from a
cleaner.

It doesn't remove oberver mechanism entirely since some cleaners are still using
that for other deleteByXXX() functions. So, it only applies removing stuff to
PushService, QuotaManagerService, ServiceWorkerManager, nsPermissionManager,
nsApplicationCacheService, and nsCookieService.

Since the original issue is related to QuotaManagerService, it adds xpcshell
test under the dom/quota/test/unit/ to ensure the behavior won't be changed
accidentally in the future.

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

--HG--
extra : moz-landing-system : lando
2019-12-02 19:47:13 +00:00
Jeff Walden 62a130ba0a Bug 1602882 - Move array operations to a new js/Array.h header. r=sfink,bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D56595

--HG--
extra : moz-landing-system : lando
2019-12-11 06:17:44 +00:00
Masayuki Nakano a2a7b27d8d Bug 1599971 - part 5: Mark `TextControlState::UnbindFromFrame()` as `MOZ_CAN_RUN_SCRIPT` r=m_kato,emilio
Note that `TextControlState::BindToFrame()` may also run script if it's
called without script blocker.  However, it shouldn't occur.  Therefore,
we don't need to mark it `MOZ_CAN_RUN_SCRIPT`, but we should check
script blocker existence with `MOZ_ASSERT`.

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

--HG--
extra : moz-landing-system : lando
2019-12-11 03:04:20 +00:00
Masayuki Nakano 0b75352ba4 Bug 1599971 - part 3: Mark `nsITextControlFrame::SetSelectionRange()` as `MOZ_CAN_RUN_SCRIPT` r=m_kato
Similar to the previous patch, it may notify selection listeners of native
anonymous tree in `<input>` and `<textarea>` element.

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

--HG--
extra : moz-landing-system : lando
2019-12-11 03:02:53 +00:00
shindli 91924fedc7 Backed out 9 changesets (bug 1596918) for causing mochitest permafailures in toolkit/content/tests/chrome/test_findbar_events.xhtml CLOSED TREE
Backed out changeset 45a1c42118f2 (bug 1596918)
Backed out changeset db09910ffa56 (bug 1596918)
Backed out changeset 5c9d9f141c10 (bug 1596918)
Backed out changeset 6a135670d603 (bug 1596918)
Backed out changeset 3a0184e0df72 (bug 1596918)
Backed out changeset 2f0036486823 (bug 1596918)
Backed out changeset a770c6d08d52 (bug 1596918)
Backed out changeset ef062eb7a6ee (bug 1596918)
Backed out changeset a6ea596e98db (bug 1596918)
2019-12-11 03:09:26 +02:00
Kris Maglione d7164b11c3 Bug 1596918: Part 4e - Fix callers which rely on frame message manager globals. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53746

--HG--
extra : moz-landing-system : lando
2019-12-10 23:07:28 +00:00
Kris Maglione 37c15883a5 Bug 1596918: Part 4d - Fix callers which try to return non-clonable values. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53745

--HG--
extra : moz-landing-system : lando
2019-12-10 23:07:34 +00:00
Kris Maglione 3ca78ce8e3 Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741

--HG--
extra : moz-landing-system : lando
2019-12-10 23:07:21 +00:00
Kris Maglione 16a9b29848 Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

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

--HG--
extra : moz-landing-system : lando
2019-12-10 23:07:13 +00:00
Yaron Tausky 9f6995fc6e Bug 1593246 - Part 2: Give SessionStorageManager a reference to BrowsingContext r=sg
This reference is necessary when sending session storage data for
all browsing context to the parent process. Note that it entails
making SessionStorageManager a cycle collection participant, since
adding this reference creates a cycle.

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

--HG--
extra : moz-landing-system : lando
2019-12-10 12:12:32 +00:00
Edwin Takahashi 6cc49428ab Bug 1600790 - update fuzzy-if(gtkWidget) annotation for transformations-1.html to pass on ubuntu1804 r=jmaher
Changes:

With approval from test owner, expand the pixel difference value of `transformations-1.html` reftest such that test also passes under ubuntu1804.

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

--HG--
extra : moz-landing-system : lando
2019-12-10 19:09:54 +00:00
Kirk Steuber b8ab278230 Bug 1585482 - Remove C++ special-casing of top-level <dialog> elements r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D53721

--HG--
extra : moz-landing-system : lando
2019-12-10 18:10:45 +00:00
Emilio Cobos Álvarez 234528f5c5 Bug 1602047 - For <img src=""> (no current request), do not use mapped aspect ratio. r=tnikkel
This works in chrome because they don't event create an image box for this case,
which is totally against the spec.

The spec doesn't consider an image with a null image request, but our behavior
changes in some other places as well because of it...

Depends on D56367

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

--HG--
extra : moz-landing-system : lando
2019-12-10 05:28:15 +00:00
Emilio Cobos Álvarez 205021fe72 Bug 1602047 - Cleanup nsImageFrame::UpdateIntrinsic{Size,Ratio}. r=tnikkel
We always pass mImage.

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

--HG--
extra : moz-landing-system : lando
2019-12-10 05:26:06 +00:00
Emilio Cobos Álvarez 50c94e07ae Bug 1601083 - Add an InspectorUtils API to get the containing block of an Element. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D56387

--HG--
extra : moz-landing-system : lando
2019-12-09 22:07:00 +00:00
Boris Chiou 2555b4f008 Bug 1601486 - Use bbox for calculating the alignment for motion path transformation on eSVGContainer elements (e.g. <g>). r=longsonr
When we apply the transformation on the <g> element, its transformation also
performs on its child elements. So Motion-path should also work well in this
case.

For offset-path:path(), we have to make sure the element is on the svg path, no
matter what is its x and y values. That's why we have to calculate the
the frame position of the transformed SVG element if transform-box is fill-box.
However, for <g> element, its nsIFrame::GetPosition() is (0, 0), so we have to
calculate the geometry bbox instead, to make sure it works well on <g> or other
svg transformed elements.

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

--HG--
extra : moz-landing-system : lando
2019-12-09 21:28:21 +00:00
Matt Woodrow d214fe061e Bug 1602322 - Enable browser.tabs.remote.dataUriInDefaultWebProcess for fission reftests. r=kmag
We enable the pref in the harness so that local testing with --enable-fission will get the same results as treeherder.

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

--HG--
extra : moz-landing-system : lando
2019-12-09 20:31:47 +00:00
Emilio Cobos Álvarez afe05cb6a5 Bug 1602421 - Move logical side definitions to WritingModes.h. r=jfkthame
Depends on D56350

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

--HG--
extra : moz-landing-system : lando
2019-12-09 20:41:03 +00:00
Emilio Cobos Álvarez 707ed5c818 Bug 1602421 - Remove some useless includes. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D56350

--HG--
extra : moz-landing-system : lando
2019-12-09 14:53:50 +00:00
Razvan Maries ae7f240305 Backed out 3 changesets (bug 1593246) for build bustages on BrowsingContext.h. CLOSED TREE
Backed out changeset fd389138a684 (bug 1593246)
Backed out changeset 2663311a1b62 (bug 1593246)
Backed out changeset d9f0d827e28d (bug 1593246)
2019-12-09 20:32:18 +02:00
Emilio Cobos Álvarez edc814040b Bug 1600536 - user-select: auto on input / textarea should behave as text. r=mats
This is covered by existing tests, via the removal of the rule in forms.css

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

--HG--
extra : moz-landing-system : lando
2019-12-09 18:16:57 +00:00
Yaron Tausky fce9c5df38 Bug 1593246 - Part 2: Give SessionStorageManager a reference to BrowsingContext r=sg
This reference is necessary when sending session storage data for
all browsing context to the parent process. Note that it entails
making SessionStorageManager a cycle collection participant, since
adding this reference creates a cycle.

Depends on D55276

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

--HG--
extra : moz-landing-system : lando
2019-12-05 17:51:59 +00:00
Jonathan Kew ad9a50096d Bug 1599841 - Invert the direction of details->mOffset.x when doing "mirrored" measurement of RTL glyph runs. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D55709

--HG--
extra : moz-landing-system : lando
2019-12-09 17:34:41 +00:00
Emilio Cobos Álvarez e86d35a49a Bug 1596050 - When ignoring document colors, ignore ::selection styles altogether. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D53171

--HG--
extra : moz-landing-system : lando
2019-12-09 17:24:06 +00:00
Jonathan Kew 864b33577a Bug 1599841 - Reftest based on the testcase here. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D55735

--HG--
extra : moz-landing-system : lando
2019-12-09 15:35:22 +00:00
Jonathan Watt 212f106dcf Bug 1486968. Remove nsPrintJob::mOldPrtPreview. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D56205

--HG--
extra : moz-landing-system : lando
2019-12-09 13:36:55 +00:00
Daniel Varga 85b60ab28d Backed out 2 changesets (bug 1599841) for causing reftest failures at tests/reftest/tests/layout/reftests/bugs/1599841-1.html
CLOSED TREE

Backed out changeset a7a57d54b008 (bug 1599841)
Backed out changeset 6f03a144b7b0 (bug 1599841)
2019-12-09 17:14:56 +02:00
Emilio Cobos Álvarez 7de32b37ce Bug 1598330 - Convert dom.w3c_touch_events.enabled to a static pref. r=njn
Differential Revision: https://phabricator.services.mozilla.com/D56312

--HG--
extra : moz-landing-system : lando
2019-12-09 00:54:23 +00:00
Jonathan Kew 6d5cb26d20 Bug 1599841 - Reftest based on the testcase here. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D55735

--HG--
extra : moz-landing-system : lando
2019-12-09 14:14:27 +00:00
Emilio Cobos Álvarez 353b658d5a Bug 1600773 - Invalidate shadow part pseudo-class styles correctly. r=heycam
I was going to send a test for `:focus` via wpt, but then realized it was
probably not spec-compliant with the new rules people want to follow for
:focus, so I filed https://github.com/w3c/csswg-drafts/issues/4555 instead.

Testing `:hover` / `:active` via wpt looked quite a bit of a hassle.

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

--HG--
extra : moz-landing-system : lando
2019-12-09 13:40:16 +00:00
Emilio Cobos Álvarez 85599f3f1b Bug 1602317 - Update cbindgen to 0.11.1. r=jrmuizel
This includes more bitflag operators, which means we can remove some slightly
ugly code.

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

--HG--
extra : moz-landing-system : lando
2019-12-09 03:20:53 +00:00
Emilio Cobos Álvarez e94a6fe8af Bug 1602317 - Switch WR bindings to use associated-constants-in-body. r=jrmuizel
Now that we have C++17, and thus inline const, we can do this.

Depends on D56306

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

--HG--
extra : moz-landing-system : lando
2019-12-08 21:09:37 +00:00
Emilio Cobos Álvarez 4a3be9604a Bug 1602317 - Switch style system to associated constants-in-body. r=heycam
This is closer to the equivalent Rust code.

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

--HG--
extra : moz-landing-system : lando
2019-12-09 03:32:28 +00:00
Emilio Cobos Álvarez 25987bb3e9 Bug 1602317 - Remove some useless includes. r=heycam
This intended to fix some windows builds, but that didn't end up working.

This removes some unused members and such, and fixes some missing includes
that they uncover (whoops).

This was needed because some windows headers used in the sandbox redefine STRICT
(which is used by `StyleContain`) and `TRANSPARENT`, which is used by some WR
stuff.

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

--HG--
extra : moz-landing-system : lando
2019-12-09 12:52:53 +00:00
Ting-Yu Lin 014241cca2 Bug 1582363 - Consume the synthesized mouse move events when dragging the caret. r=mats
That is, we consume the synthesized mouse move events without doing
anything in PressCaretState and DragCaretState.

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

--HG--
extra : moz-landing-system : lando
2019-12-09 10:36:40 +00:00
Mats Palmgren 782a58f0b1 Bug 1600207 - Make GetInner()/GetLegend() robust also in presence of additional continuations on the principal child list. r=TYLin
Also, don't drain OverflowList unless we need to.
And make EnsureChildContinuation deal with continuations going from being
normal continuations to overflow-continuations (and vice versa) better.

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

--HG--
extra : moz-landing-system : lando
2019-12-09 11:24:50 +00:00
Mats Palmgren 31ae0a85ac Bug 1427141 - Request a break before the row-group if its first row doesn't fit. r=TYLin
FTR, the origin of the Reset() call in the else-branch I'm removing
is bug 397428.  I think this is before we had a break-before status,
or at least before our table code knew how to deal with it, so it
might have been correct to change an INCOMPLETE status into COMPLETE
in those days.  It seems the intent was to push the row-group:
https://bugzilla.mozilla.org/show_bug.cgi?id=397428#c14
"... and they all set aStatus to NS_FRAME_COMPLETE, which is logical
because we want to push this entire rowgroup to a new page and try
to reflow the row again..."

Nowadays though, returning a break-before status is the correct
way to do that.

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

--HG--
extra : moz-landing-system : lando
2019-12-09 10:21:16 +00:00
Jonathan Watt 2f4b27a303 Bug 1602125. Remove nsIPrintingPromptService.showPrintDialog's nsIWebBrowserPrint parameter and MockWebBrowserPrint. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D56249

--HG--
extra : moz-landing-system : lando
2019-12-09 09:04:29 +00:00
Makoto Kato 4edab66c1e Bug 1592057 - Change order of emoji font in reftest since recent Linux has Noto Color Emoji. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D54891

--HG--
extra : moz-landing-system : lando
2019-12-04 10:06:04 +00:00
Timothy Nikkel 86ad3fbc4b Bug 1601185. Add a function that returns if a user can scroll on a given scroll frame in either direction and use it in EventStateManager::ComputeScrollTargetAndMayAdjustWheelEvent. r=botond
Previously we were just checking overflow hidden here, which is not enough because we can scroll overflow hidden if we are zoomed in.

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

--HG--
extra : moz-landing-system : lando
2019-12-07 22:56:00 +00:00
Noemi Erli 82d41a33b2 Backed out 9 changesets (bug 1596918) for causing multiple browser-chrome failures
Backed out changeset 415007efd8c9 (bug 1596918)
Backed out changeset 011eb5ce927b (bug 1596918)
Backed out changeset e5fd3ee22ea1 (bug 1596918)
Backed out changeset 0bca4de31d40 (bug 1596918)
Backed out changeset 11ec4393f23d (bug 1596918)
Backed out changeset c5404a7c286d (bug 1596918)
Backed out changeset 7e9304405a46 (bug 1596918)
Backed out changeset fa0f0aeabf99 (bug 1596918)
Backed out changeset de196b077000 (bug 1596918)
2019-12-07 22:26:43 +02:00
Kris Maglione 63b8ddb1c0 Bug 1596918: Part 4e - Fix callers which rely on frame message manager globals. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53746

--HG--
extra : moz-landing-system : lando
2019-12-07 18:44:35 +00:00
Kris Maglione 8c28f5ff8d Bug 1596918: Part 4d - Fix callers which try to return non-clonable values. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53745

--HG--
extra : moz-landing-system : lando
2019-12-07 18:44:35 +00:00
Kris Maglione fa3556c3fc Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741

--HG--
extra : moz-landing-system : lando
2019-12-07 18:44:34 +00:00
Kris Maglione 910eab35d2 Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

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

--HG--
extra : moz-landing-system : lando
2019-12-07 19:11:58 +00:00
Daniel Varga 84a601a6d4 Backed out 17 changesets (bug 1596918) for multiple browser-chrome and dev-tools failures. On a CLOSED TREE
Backed out changeset ab87d2c1afae (bug 1596918)
Backed out changeset 775f3b06a687 (bug 1596918)
Backed out changeset 67cc63ef5d7f (bug 1596918)
Backed out changeset 7d290bcd2067 (bug 1596918)
Backed out changeset 048db9f4db7c (bug 1596918)
Backed out changeset 96a79d2ba614 (bug 1596918)
Backed out changeset be770d112dd8 (bug 1596918)
Backed out changeset 302c8ab8391c (bug 1596918)
Backed out changeset 44ef8f20732e (bug 1596918)
Backed out changeset 38c11ebfb8ff (bug 1596918)
Backed out changeset b586fc081374 (bug 1596918)
Backed out changeset 12283166716f (bug 1596918)
Backed out changeset 99b0421015d8 (bug 1596918)
Backed out changeset 97ec49dbbbf3 (bug 1596918)
Backed out changeset ec79478f58f1 (bug 1596918)
Backed out changeset c6d356833bb8 (bug 1596918)
Backed out changeset 5ef6026806c8 (bug 1596918)
2019-12-07 03:12:07 +02:00
Kris Maglione 41c61c2bb9 Bug 1596918: Part 4e - Fix callers which rely on frame message manager globals. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53746

--HG--
extra : moz-landing-system : lando
2019-12-06 22:15:29 +00:00
Kris Maglione 6d5729ccb5 Bug 1596918: Part 4d - Fix callers which try to return non-clonable values. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53745

--HG--
extra : moz-landing-system : lando
2019-12-06 22:15:27 +00:00
Kris Maglione b5238224ba Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741

--HG--
extra : moz-landing-system : lando
2019-12-06 22:14:22 +00:00
Kris Maglione 20da940e14 Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

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

--HG--
extra : moz-landing-system : lando
2019-12-06 22:14:14 +00:00
Gabriele Svelto 69790bc62e Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.

find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
    interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
    if [ -n "$interfaces" ]; then
        if [[ "$interfaces" == *$'\n'* ]]; then
          regexp="\("
          for i in $interfaces; do regexp="$regexp$i\|"; done
          regexp="${regexp%%\\\|}\)"
        else
          regexp="$interfaces"
        fi
        interface=$(basename "$path")
        rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
            hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
            if [ $hits -eq 0 ]; then
                echo "Removing ${interface} from ${path2}"
                grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
                mv -f "$path2".tmp "$path2"
            fi
        done
    fi
done

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

--HG--
extra : moz-landing-system : lando
2019-12-06 09:16:44 +00:00
Jonathan Watt fc659ffc6a Bug 1601800. Remove nsIPrintingPromptService.showPrintProgressDialog's nsIWebBrowserPrint parameter. r=bobowen
Now dead code.

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

--HG--
extra : moz-landing-system : lando
2019-12-06 09:46:03 +00:00
Hiroyuki Ikezoe c93ea7f424 Bug 1593362 - Bail out from nsFrame::HandleDrag if the corresponding nsFrameSelection has been already destroyed. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D56109

--HG--
extra : moz-landing-system : lando
2019-12-06 05:43:03 +00:00
jeffin143 0393375a39 Bug 1600481 : convert NS_STYLE_ISOLATION_* to an enum class in nsStyleConsts.h r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D55378

--HG--
extra : moz-landing-system : lando
2019-12-06 04:42:18 +00:00
Emilio Cobos Álvarez dfba5de9ef Bug 1601624 - Don't suppress shrink-to-fit resize reflows on unchanged size. r=tnikkel
As the width and height arguments to ResizeReflow are treated as constraints,
not the final size, in that case.

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

--HG--
extra : moz-landing-system : lando
2019-12-06 01:03:45 +00:00
Olli Pettay ead4eb0615 Bug 1596958 - Synchronize layouthistorystate to parent process, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D53288

--HG--
extra : moz-landing-system : lando
2019-12-05 20:30:45 +00:00
Brindusan Cristian 98218b165b Backed out changeset 69ac0bf82505 (bug 1596958) for assertion failures at nsSHEntry.cpp. CLOSED TREE 2019-12-05 21:01:02 +02:00
Kris Taeleman 6423d3a0b9 Bug 1581868 - Black page sometimes when restoring geckoview_example/fenix with webrender enabled. r=jnicol
Differential Revision: https://phabricator.services.mozilla.com/D55338

--HG--
extra : moz-landing-system : lando
2019-12-02 08:01:37 +00:00
Olli Pettay 61bcb1d19a Bug 1596958 - Synchronize layouthistorystate to parent process, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D53288

--HG--
extra : moz-landing-system : lando
2019-12-05 17:33:48 +00:00
Andrew Osmond 6ec41d71d2 Bug 1580534 - Add new test case to confirm WebRender snaps in the ideal fashion. r=jrmuizel
Historically there were kludges in how we chose to snap layers and
transforms, nominally for performance reasons (see bug 602200 comment
36). WebRender appears to render what was considered at the time the
ideal outcome, which also makes the most sense as a content author.
Given we are otherwise lacking a reason to continue with the old
behaviour, this patch adds a new test case to confirm WebRender snaps in
the ideal fashion, and non-WebRender does not.

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

--HG--
extra : moz-landing-system : lando
2019-12-05 14:22:38 +00:00
Jamie Nicol 3b6922b0b9 Bug 1594446 - Clamp scale at 32k to avoid excessively large visible regions r=mattwoodrow
The size of the visible region, for either a painted layer or a webrender blob
image, is calculated from the building rects of the contained display items, in
local-space. This should be restricted to the display port, to prevent the
visible regions growing too large leading to excessive memory usage.

For items within large scale transforms, the local-space visible region should
be very small. However, as we do not allow fractional sizes, the size of the
visible region will be rounded up to at least 1. This means that when we convert
the region back to screen-space, we are multiplying the extremely large scale by
at least one, rather than by a much smaller fraction. This can result in
incredibly large visible regions, and was causing OOM crashes.

To avoid this, we clamp the maximum chosen scale for these layers/blob images to
32k. Layers affected by this problem should have a visible region with
dimensions of 1 or 2, so this limits the resulting screen-space size for
those to an acceptable value. Layers with visible regions sized greater than
that should not have scales anywhere near this large, so will not be affected.

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

--HG--
extra : moz-landing-system : lando
2019-12-05 11:39:01 +00:00
Masatoshi Kimura 08c2cf0d50 Bug 1455716 - Followup to fix review comments. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D55881

--HG--
extra : moz-landing-system : lando
2019-12-05 10:36:12 +00:00
Emilio Cobos Álvarez 7a80801b12 Bug 1600998 - Remove layout.css.xul-box-display-values.survive-blockification.enabled. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D55898

--HG--
extra : moz-landing-system : lando
2019-12-05 06:12:47 +00:00
Boris Zbarsky 75124bdd98 Bug 1517588. Use nsIPrincipal::IsSystemPrincipal instead of nsContentUtils::IsSystemPrincipal r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D53067

--HG--
extra : moz-landing-system : lando
2019-12-05 04:44:32 +00:00
Dorel Luca 8196f5f392 Bug 1562840 - Fuzzy table-anonymous-boxes/490174-1.html on Android debug. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D55796

--HG--
extra : moz-landing-system : lando
2019-12-04 22:48:08 +00:00
Markus Stange 1147e1657f Bug 1601306 - When partial update fails, make sure that mIsOpaque and mForceTransparentSurface on the root display list are false. r=tnikkel
These values start out false in the other two ways display lists can be build:
 - Without retained display lists, a new nsDisplayList object is created which starts out with these values being false.
 - When partial update succeeds (or at least gets far enough to run PreProcessDisplayList), RestoreState() is called on the root display list which sets these values to false.

But when partial update fails, we have an old nsDisplayList object and we were not clearing those values.

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

--HG--
extra : moz-landing-system : lando
2019-12-04 21:51:57 +00:00
Jonathan Kew 48d038ba75 Bug 1601025 - Optimize changehint for modifications to underline-offset or skip-ink rendering; a full reflow should not be needed. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D55705

--HG--
extra : moz-landing-system : lando
2019-12-03 20:29:55 +00:00
Jonathan Kew 46dd64cc2a Bug 770780 - Implement rendering support for text-underline-position in nsTextFrame. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D54723

--HG--
extra : moz-landing-system : lando
2019-12-04 19:48:22 +00:00
Jonathan Kew 3b87f01682 Bug 770780 - Add support for parsing of the CSS text-underline-position property. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D54722

--HG--
extra : moz-landing-system : lando
2019-12-04 11:39:15 +00:00
Matt Woodrow 5e1f228a7d Bug 1599662 - Add process switching to the reftest harness so that we can get better coverage for fission. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D55568

--HG--
extra : moz-landing-system : lando
2019-12-04 08:57:11 +00:00
Geoff Brown 9e59579c39 Bug 1601076 - Fix some broken BUG_COMPONENTS in moz.build files; r=jmaher
Some of these were obvious typos. Others probably reflect once-correct components
that have been combined, split, or otherwise obsoleted; for these I've tried to
use the component associated with the bugs for recent changes to the affected files.

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

--HG--
extra : moz-landing-system : lando
2019-12-04 13:55:45 +00:00
Masatoshi Kimura 47bb8fc648 Bug 1455716 - Simplify/rename nsIWebBrowserChrome;setStatus and setStatusWithContext. r=bzbarsky
* Removed the STATUS_LINK constant.
* Removed the statusType parameter from nsIWebBrowserChrome::setStatus.
* Removed the setStatusWithContext method. No one uses the information from
  statusContext.
* Removed the nsIWebBrowserChrome2 interface as setStatusWithContext was the
  only method.

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

--HG--
extra : moz-landing-system : lando
2019-12-04 13:50:01 +00:00
Timothy Nikkel a6ddb77d87 Bug 1490571. Pointer events changes need to schedule a paint because they can change the event regions override on layers. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D55603

--HG--
extra : moz-landing-system : lando
2019-12-04 08:00:25 +00:00
Hiroyuki Ikezoe 63e3dd4144 Bug 1523541 - window.innerHeight returns the size for vh units when the dynamic toolbar is completely hidden. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D55071

--HG--
extra : moz-landing-system : lando
2019-12-04 04:41:08 +00:00
Hiroyuki Ikezoe 831ca102d1 Bug 1523541 - Fire a window resize event at the same time we change position:fixed %-units style values. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D55070

--HG--
extra : moz-landing-system : lando
2019-12-04 04:34:08 +00:00
Daniel Holbert 693c08b645 Bug 1593060: When measuring size of XUL in CSS grid, use the GetXULPrefSize API instead of an explicit reflow. r=mats
Note that the GetXULPrefSize API might still do a "::BoxReflow" under the hood,
inside its call to RefreshSizeCache.

Also: we can't use GetLogicalUsedMargin() in this special case, because the
child may not have been reflowed (which is what populates the "used margin"
frame property).  So instead, we pull the margin off of the reflow state.
As noted in the code-comment alongside that call, this won't work with
percent margins, but hopefully we can just avoid those in our frontend code
that uses XUL-in-grid-items.

Also, this patch makes the grid call ReflowChild() on its grid items using
a loose guess at their position, rather than at position 0,0. This helps
popup frames figure out their size during reflow and size their children
properly.

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

--HG--
extra : moz-landing-system : lando
2019-12-04 03:37:09 +00:00
Jeff Muizelaar e0a1db5447 Bug 1595388. Use mDrawTarget->Rect() instead of Size(). r=mstange
Using Rect() will work properly when mDrawTarget does not have 0,0
origin. It also makes the code's intention more clear.

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

--HG--
extra : moz-landing-system : lando
2019-12-04 01:45:52 +00:00