Bug 1765391 Comment 68 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

I discovered (by hacking in my hook library) that delivering `NSWindowDidResignMainNotification` and `NSWindowDidBecomeMainNotification` notifications asynchronously makes the crashes go away. I'll try to find out if there's a high level way to do this, suitable for use in Mozilla code.
I discovered (by hacking in my hook library) that delivering `NSWindowDidResignMainNotification` and `NSWindowDidBecomeMainNotification` notifications asynchronously (to `WindowDelegate`) makes the crashes go away. I'll try to find out if there's a high level way to do this, suitable for use in Mozilla code.
I discovered (by hacking in my hook library) that delivering `NSWindowDidResignMainNotification` and `NSWindowDidBecomeMainNotification` notifications asynchronously (to `WindowDelegate`) makes the crashes go away. I'll try to find out if there's a high level way to do this, suitable for use in Mozilla code.

Edit: Interestingly, it also works to send these notifications asynchronously to `TopLevelWindowData` and synchronously to `WindowDelegate`.
I discovered (by hacking in my hook library) that delivering `NSWindowDidResignMainNotification` and `NSWindowDidBecomeMainNotification` notifications asynchronously (to `WindowDelegate`) makes the crashes go away. I'll try to find out if there's a high level way to do this, suitable for use in Mozilla code.

Back to Bug 1765391 Comment 68