mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-24 17:37:30 +09:00
No Issue - Make nsCocoaWindow hold a death grip on its native window until its destructor. https://bugzilla.mozilla.org/show_bug.cgi?id=1880582
This commit is contained in:
parent
e825209039
commit
1554c778f4
2 changed files with 15 additions and 1 deletions
|
|
@ -384,8 +384,13 @@ protected:
|
|||
nsIWidget* mParent; // if we're a popup, this is our parent [WEAK]
|
||||
nsIWidget* mAncestorLink; // link to traverse ancestors [WEAK]
|
||||
BaseWindow* mWindow; // our cocoa window [STRONG]
|
||||
BaseWindow* mClosedRetainedWindow; // a second strong reference to our
|
||||
// window upon closing it, held through our destructor. This is useful
|
||||
// to ensure that macOS run loops which reference the window will still
|
||||
// have something to point to even if they don't use proper retain and
|
||||
// release patterns.
|
||||
WindowDelegate* mDelegate; // our delegate for processing window msgs [STRONG]
|
||||
RefPtr<nsMenuBarX> mMenuBar;
|
||||
RefPtr<nsMenuBarX> mMenuBar;
|
||||
NSWindow* mSheetWindowParent; // if this is a sheet, this is the NSWindow it's attached to
|
||||
nsChildView* mPopupContentView; // if this is a popup, this is its content widget
|
||||
// if this is a toplevel window, and there is any ongoing fullscreen
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue