Closed
Bug 515446
Opened 16 years ago
Closed 16 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)
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)
|
7.13 KB,
text/plain
|
Details | |
|
60.42 KB,
patch
|
jaas
:
review+
|
Details | Diff | Splinter Review |
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
| Reporter | ||
Updated•16 years ago
|
tracking-fennec: --- → ?
Updated•16 years ago
|
Component: General → Widget: Cocoa
Product: Fennec → Core
QA Contact: general → cocoa
Comment 1•16 years ago
|
||
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 | ||
Comment 3•16 years ago
|
||
This is a regression from bug 420491, part 2. That patch changed how we handle the combination of aNativeWindow && UseNativePopupWindows().
Blocks: 420491
Keywords: regression
| Assignee | ||
Comment 4•16 years ago
|
||
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)
| Assignee | ||
Comment 5•16 years ago
|
||
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
| Assignee | ||
Comment 7•16 years ago
|
||
That means it blocks Beta and I need to get it in yesterday or something?
| Assignee | ||
Updated•16 years ago
|
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
| Assignee | ||
Comment 9•16 years ago
|
||
Attachment #401160 -
Attachment is obsolete: true
Attachment #402261 -
Flags: review?(joshmoz)
| Assignee | ||
Updated•16 years ago
|
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+
| Assignee | ||
Comment 11•16 years ago
|
||
also aParent -> aNativeParent in the Qt and Windows nsWindow.h, and aNativeWindow -> aNativeParent in nsCocoaWindow
| Assignee | ||
Comment 12•16 years ago
|
||
Attachment #402261 -
Attachment is obsolete: true
Attachment #402280 -
Flags: review?(joshmoz)
Attachment #402261 -
Flags: review?(joshmoz)
Comment 13•16 years ago
|
||
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.)
| Assignee | ||
Comment 14•16 years ago
|
||
Sure, I'll do that.
Comment 15•16 years ago
|
||
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+
| Assignee | ||
Comment 16•16 years ago
|
||
Indeed.
| Assignee | ||
Comment 17•16 years ago
|
||
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: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a1
Comment 18•16 years ago
|
||
This needs to land on 1.9.2 before we can ship beta.
| Assignee | ||
Comment 19•16 years ago
|
||
Oops, sorry, forgot to update the bug... this already landed:
http://hg.mozilla.org/releases/mozilla-1.9.2/rev/4a36e4cba6d6
status1.9.2:
--- → beta1-fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•