Closed Bug 101429 Opened 23 years ago Closed 23 years ago

DOM Inspector bad argument to function in inLayoutUtils::GetSubDocumentFor()

Categories

(SeaMonkey :: General, defect, P4)

x86
Windows 2000
defect

Tracking

(Not tracked)

RESOLVED FIXED
mozilla0.9.5

People

(Reporter: hjtoi-bugzilla, Assigned: hjtoi-bugzilla)

Details

Attachments

(1 file)

nsIPresShell::GetSubShellFor() needs an argument of type nsISupports for the
second parameter. You are using nsIPresShell. This asserts, and can cause crash
conditions etc. I'll attach a fix.
[s]r=hewitt - Thanks heikki!
over to Heikki since he has the fix
Assignee: hewitt → heikki
Comment on attachment 50594 [details] [diff] [review]
Proposed fix

>+      if (!docShell) return nsnull;

Separate lines please

>+      if (!contentViewer) return nsnull;

Separate lines please.
Attachment #50594 - Flags: review+
Checked in with the change harishd requested.
Status: NEW → RESOLVED
Closed: 23 years ago
Priority: -- → P4
Resolution: --- → FIXED
Target Milestone: --- → mozilla0.9.5
Obsolete DOM Viewer bugs -> Browser-General; DOM Viewer component is going away.
Component: DOM Viewer → Browser-General
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: