Closed Bug 323380 Opened 19 years ago Closed 19 years ago

Warning: No inner window available! (nsGlobalWindow::SuspendTimeouts)

Categories

(Core :: DOM: Core & HTML, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: jruderman, Assigned: mrbkap)

References

Details

(Keywords: testcase)

Attachments

(1 file)

mrbkap noticed this on Linux while investigating bug 303901.  I see it on Mac too.

Steps to reproduce:
1. Open a new tab.
2. Paste data:text/html,<iframe src="?"></iframe> and press enter.
3. Click the Home button.

Result: 

WARNING: No inner window available!, file /Users/admin/trunk/mozilla/dom/src/base/nsGlobalWindow.cpp, line 6949

<mrbkap> So we'll create an outer window for the iframe, but we fail to load the URL ("?"), so we never get around to creating an inner window

<mrbkap> It's interesting that we try to call SuspendTimeouts on an outer window, though.
Keywords: testcase
I'm proposing to fix this by having the frame loader load about:blank if the original uri it's given is invalid.
Assignee: general → mrbkap
OS: MacOS X → All
Priority: -- → P2
Hardware: Macintosh → All
Target Milestone: --- → mozilla1.9alpha
Is this related to bug 322773 at all?
Blocks: 322773
It's almost certainly exactly the same bug (from what I can tell) if you want to dupe, then I'll take that bug.
Status: NEW → ASSIGNED
Attached patch Proposed fixSplinter Review
This fixes this bug by attempting to load about:blank if the URI we are originally tring to load is malformed. It doesn't fix bug 322773 because in that case, the URI is well formed, and we're firing the alert from within nsDocShell::LoadURI.
Attachment #208748 - Flags: review?(bzbarsky)
Comment on attachment 208748 [details] [diff] [review]
Proposed fix

Makes sense...
Attachment #208748 - Flags: superreview+
Attachment #208748 - Flags: review?(bzbarsky)
Attachment #208748 - Flags: review+
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: