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
Last Resolved: 17 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
You need to log in before you can comment on or make changes to this bug.