Closed Bug 515446 Opened 15 years ago Closed 15 years ago

Creating popup windows incorrectly interprets aNativeParent as an NSWindow when ui.use_native_popup_windows is turned on

Categories

(Core :: Widget: Cocoa, defect, P1)

x86
macOS
defect

Tracking

()

RESOLVED FIXED
mozilla1.9.3a1
Tracking Status
status1.9.2 --- beta1-fixed

People

(Reporter: stechz, Assigned: mstange)

References

()

Details

(Keywords: regression)

Attachments

(2 files, 2 obsolete files)

Attached file Output of running
Go to www.tv5.org.  Soon, Fennec will seem to hang.  Loading animation still spins, but I can't pan or click the awesome bar.

Reproducible: always
Platform: Mac xulrunner debug
tracking-fennec: --- → ?
Component: General → Widget: Cocoa
Product: Fennec → Core
QA Contact: general → cocoa
this looks to be a widget bug, related to the:
2009-09-09 12:05:23.315 fennec[30935:903] -[ChildView orderOut:]: unrecognized selector sent to instance 0x1d18ad50
exception
tracking-fennec: ? → ---
Flags: blocking1.9.2?
Summary: tv5.org causes Fennec to stop responding to input → tv5.org causes Fennec to stop responding to input (macos only)
orderOut: is a selector on a top-level window (NSWindow), it does not exist in child views (NSView). We should never be calling orderOut: on a child view, blocking1.9.2+.
Flags: blocking1.9.2? → blocking1.9.2+
Assignee: nobody → mstange
This is a regression from bug 420491, part 2. That patch changed how we handle the combination of aNativeWindow && UseNativePopupWindows().
Blocks: 420491
Keywords: regression
Attached patch v1 (obsolete) — Splinter Review
When <select> popup widgets are created, the parent child view's native widget is passed to aNativeWidget. We were misinterpreting it as an NSWindow even though it was an NSView.
Fennec sets ui.use_native_popup_windows to true so that we don't create a widget.
Attachment #401160 - Flags: review?(joshmoz)
Comment on attachment 401160 [details] [diff] [review]
v1

Canceling review here - Josh and I agreed that window creation is some convoluted mess that definitely needs cleanup, so I'll do that instead.
Attachment #401160 - Flags: review?(joshmoz)
Marking this as a P1 beta blocker. The code in question has higher than normal potential for regressions.
Priority: -- → P1
That means it blocks Beta and I need to get it in yesterday or something?
I think beta bugs need to be in by next week.
Summary: tv5.org causes Fennec to stop responding to input (macos only) → Creating popup windows incorrectly interprets aNativeParent as an NSWindow when ui.use_native_popup_windows is turned on
Attached patch v2 (obsolete) — Splinter Review
Attachment #401160 - Attachment is obsolete: true
Attachment #402261 - Flags: review?(joshmoz)
Attachment #402261 - Flags: superreview?(roc)
Comment on attachment 402261 [details] [diff] [review]
v2

Need to rename StandardWindowCreate on Windows
Attachment #402261 - Flags: superreview?(roc) → superreview+
also aParent -> aNativeParent in the Qt and Windows nsWindow.h, and aNativeWindow -> aNativeParent in nsCocoaWindow
Attached patch v3Splinter Review
Attachment #402261 - Attachment is obsolete: true
Attachment #402280 - Flags: review?(joshmoz)
Attachment #402261 - Flags: review?(joshmoz)
Markus, may I ask you to change the formatting in the OS/2 files to remove the extra spaces after opening brackets, i.e. "( " -> "(" and treat ifs properly, like "if( " -> "if ("?
I know you are just keeping to the old style but we are trying to gradually remove that from OS/2's nsWindow. (It's good enough if this is done on checkin.)
Sure, I'll do that.
Comment on attachment 402280 [details] [diff] [review]
v3

+  // Applications that use native popups don't us to create popup windows.

I think you forgot the word "want".
Attachment #402280 - Flags: review?(joshmoz) → review+
Indeed.
http://hg.mozilla.org/mozilla-central/rev/920142c5558f

(In reply to comment #13)
I also changed the 3-space indent to 2-space indent.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a1
This needs to land on 1.9.2 before we can ship beta.
Oops, sorry, forgot to update the bug... this already landed:
http://hg.mozilla.org/releases/mozilla-1.9.2/rev/4a36e4cba6d6
Depends on: 520894
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: