Closed Bug 322774 Opened 20 years ago Closed 17 years ago

<iframe src="bogus:"> triggers "ASSERTION: failed to load URL"

Categories

(Core :: Layout: Images, Video, and HTML Frames, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jruderman, Unassigned)

References

(Blocks 1 open bug, )

Details

(Keywords: assertion, helpwanted, testcase)

Attachments

(1 file)

To reproduce, load data:text/html,<iframe src="bogus:">. ###!!! ASSERTION: failed to load URL: 'NS_SUCCEEDED(rv)', file /Users/admin/trunk/mozilla/content/base/src/nsFrameLoader.cpp, line 184 Break: at file /Users/admin/trunk/mozilla/content/base/src/nsFrameLoader.cpp, line 184 I think this assertion is also triggered if an iframe points to a non-existent local file (and the page is allowed to reference file: URLs). See also bug 155246, another way to trigger the same assertion message.
This assert should probably just be a warning... jst, what do you think?
Blocks: 155246
Keywords: helpwanted
Keywords: testcase
Attached patch patch1Splinter Review
This removes the assertion. But there are also patches in bug 155246, one of which may be more correct than this one.
Given that necko errors can happen, I don't think asserting here is called for at all. Failure to load a subframe is not fatal and not automatically indicative of incorrect code in Gecko.
mrbkap fixed this in bug 322773 by turning the assertion into a warning. That part of his patch was similar to Martijn's patch, but used #ifdef DEBUG. in-testsuite- due to bug 292510.
Flags: in-testsuite-
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
Component: Layout: HTML Frames → Layout: Images
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: