Closed Bug 1922956 Opened 1 year ago Closed 1 year ago

Clean up widget creation code-paths.

Categories

(Core :: Widget, task, P3)

task

Tracking

()

RESOLVED FIXED
133 Branch
Tracking Status
firefox133 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(1 file, 1 obsolete file)

No description provided.

I added an assertion that it doesn't happen, because this is not really
well handled (the popup won't show up). This is the only thing
triggering it. I don't think the crashtest is relevant anyways since
<menupopup> doesn't use XUL layout anymore (so setting
MozBoxOrdinalGroup has no effect), so I don't think it's worth porting
to a chrome/browser mochitest.

This is all super-hacky (see a lot of the XXXcjones comments).

Simplify it... We never create widgets with a bare native parent but no
nsIWidget parent. Pass nsIWidgets and deal with things correctly.

There were also things that were dealing with stuff that can't happen,
like top level popups, children of PuppetWidgets, or such.

Instead of overriding Create(), let's just teach nsBaseWidget about
non-native (headless/puppet) widgets.

Remove lots of old APIs for the native window stuff that are unused
and/or unimplemented.

It's early in the cycle so I'd appreciate landing this sooner rather
than later, since (specially in cocoa) this is a rather scary change,
and I might have the cycles to look into bug 1919165 or so.

Attachment #9429164 - Attachment description: Bug 1922956 - Remove a crashtest trying to create a child popup in a puppet widget. r=Gijs,#layout → Bug 1922956 - Remove crashtests trying to create a child popup in a puppet widget. r=Gijs,#layout
Blocks: 1923135
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6a0c81136658 Further clean-up widget creation code-paths. r=win-reviewers,mac-reviewers,geckoview-reviewers,mstange,rkraesig,m_kato
Pushed by emilio@crisal.io: https://hg.mozilla.org/integration/autoland/rev/e4efd354e5f9 Make some reftests less flaky on Android.
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
Attachment #9429164 - Attachment is obsolete: true
Regressions: 1923546
Regressions: 1925318
Regressions: 1936164
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: