Note that there's still a little plugin related code in
widget/ and gfx/ etc after this. That can be removed
once we remove plugin support from dom/ etc.
The removal from layout/ should be pretty complete though.
Differential Revision: https://phabricator.services.mozilla.com/D102140
Much like devtools manages the existing stylesheet changed events.
This is tested by devtools/client/inspector/markup/test/browser_markup_shadowdom.js
Differential Revision: https://phabricator.services.mozilla.com/D102875
According to the debug log and result on tryserver, the frequency of this
test failure becomes higher is caused by bug 1676966. When global reflow
is kicked during dragging the grabber, the implicit capture is released
forcibly. Fortunately, editor behavior shouldn't depend on font list
loading system, so, disabling the feature until fixing bug 1688430 is fine.
Differential Revision: https://phabricator.services.mozilla.com/D102889
We now changes the default referrer policy to strict-origin-when-cross-origin to follow the spec.
This patch reverts the changes made related to referrer policy in Bug 1678042 (bypassing referrer failures after syncing latest wpt tests).
Differential Revision: https://phabricator.services.mozilla.com/D98435
This matches other browsers, and the default themed textareas on Windows
too.
To be landed after the soft freeze, just in case, of course.
Differential Revision: https://phabricator.services.mozilla.com/D102843
Firefox 84.0.1 crashes under Gentoo Linux if it is started in
Wayland mode and if it was compiled WITH Wayland support and
WITHOUT dbus support.
I traced down the problem to line 172 of
toolkit/components/remote/nsRemoteService.cpp:
nsresult rv = mRemoteServer->Startup(mProgram.get(), mProfile.get());
mRemoteServer is NULL and Firefox crashes.
This patch adds a NULL pointer check before that line.
See:
- Mozilla's Bugzilla, bug 1684365
- https://bugs.gentoo.org/762035
- https://forums.gentoo.org/viewtopic-t-1126235.html
Differential Revision: https://phabricator.services.mozilla.com/D101536
In the unit-tests, flushing is not done. This was prevented implicitly
by nulling `mPresShell`. This change makes that explicit by stubbing
`MaybeFlushLayout`.
Note that `IsTerminated`, which is called in the same context is already
virtual, so I expect this to not have a noticeable performance-impact.
Depends on D102607
Differential Revision: https://phabricator.services.mozilla.com/D102608
This will allow the browser chrome to use `<dialog>` etc, see
bug 1685313.
Tweak the check to support scrolling="false" on reftests, so that we can
test this.
Differential Revision: https://phabricator.services.mozilla.com/D102623
DisplayPortMargins objects are only meant to be created when setting
display port margins, not when querying them, because the object's
constructor records the visual and layout scroll offsets at the time
of construction to use for adjusting the margins to be layout-relative.
Differential Revision: https://phabricator.services.mozilla.com/D102075
All sets of mVisibilityState go through this function now, and not
having a window implies that the visibility state must be hidden, so
this should be sound now.
I'll land this separately anyway since it's slightly more risky.
Differential Revision: https://phabricator.services.mozilla.com/D41439
SharedDataContainer took 48 bytes, even if there's single entry.
To reduce the space taken by SharedDataContainer in delazifcations vector,
move vector/map variant out of SharedDataContainer itself, and allocate them
on heap.
Also use low-bit tagging, so that SharedDataContainer takes 8 bytes.
Differential Revision: https://phabricator.services.mozilla.com/D102831
Touches that land on a descendant of a clickable element should
not get retargeted to other nearby elements because the descendant
itself can react to those touch events.
Differential Revision: https://phabricator.services.mozilla.com/D102827
During initial parse we know the number of member-initializers for each class
constructor so we can directly store the count on the lazy function stencil.
This lets us remove the UpdateEmittedInnerFunctions logic and makes more
things immutable.
Differential Revision: https://phabricator.services.mozilla.com/D102822