Don't make menupopups and panel leave unslotted children.
Categories
(Core :: XUL, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox96 | --- | fixed |
People
(Reporter: emilio, Assigned: emilio)
References
Details
Attachments
(2 files, 2 obsolete files)
Assignee | ||
Comment 1•3 years ago
|
||
There's only one caller of it and it's not sound: The runnable captures a
raw frame pointer etc. Instead, just do a dispatch to the main thread
and call OpenMenu there. This simplifies the following patch.
Assignee | ||
Comment 2•3 years ago
|
||
This is needed for the next patch to work.
Depends on D131082
Assignee | ||
Comment 3•3 years ago
|
||
This is a more generic fix for
https://phabricator.services.mozilla.com/D131080 that we might want to
take instead. I'm not aware of other tests triggering the same issue but
this causes behavior to be a bit more predictable.
Context: We have tests that query the style of menupopups/menuitems that
are not in the flat tree (that is, that are children of a shadow host,
but are not slotted). That makes no sense, because the flat tree is how
we determine where to inherit from (so the styles that we were returning
before this bug are wrong, they just happen to work for that particular
test).
Panels and menupopups have some lazy initialization code that before
this patch left a shadow root attached to the element but no slot.
Instead, don't even bother to create a shadow root (and do that lazily
as well). It's a bit more predictable behavior, and is also less work
during startup, so should be a win.
We couldn't do it before the previous patches because attaching the
shadow root will reframe the popup, and the menupopup code didn't
deal well with that.
Assignee | ||
Comment 4•3 years ago
|
||
This backs out D131080 as it shouldn't be needed after the previous
patches.
Depends on D131081
Updated•3 years ago
|
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5c921d8e51bd Make async OpenMenu simpler/sound. r=mstange
Comment 6•3 years ago
|
||
Backed out for causing mochitest failures on test_bug557987.xhtml
Backout link: https://hg.mozilla.org/integration/autoland/rev/9013267e971989bbd4af8d08108338b3e39e1440
Link to failure log : https://treeherder.mozilla.org/logviewer?job_id=358199652&repo=autoland&lineNumber=4511
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/28c5c5fc70a4 Make attachShadow() not reframe the shadow host unconditionally. r=smaug
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9afe46184c00 Don't make menupopups and panels leave unslotted children. r=mconley
Comment 9•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/28c5c5fc70a4
https://hg.mozilla.org/mozilla-central/rev/9afe46184c00
Updated•3 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 10•2 years ago
|
||
Comment on attachment 9250627 [details]
Bug 1741089 - Make async OpenMenu simpler/sound. r=NeilDeakin,mstange
Revision D131082 was moved to bug 1729805. Setting attachment 9250627 [details] to obsolete.
Description
•