Closed Bug 549452 Opened 14 years ago Closed 14 years ago

nsGlobalWindow::SetNewDocument is hard to read

Categories

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

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: sicking, Assigned: sicking)

References

Details

Attachments

(2 files)

Attached patch Patch -wSplinter Review
The recursion and the fact that most code is in one way or another if-ed out of the inner resp. outer window is making this code very hard to read.

Attaching a ignore-whitespace patch first for reviewing ease.
Attached patch Patch to fixSplinter Review
Assignee: nobody → jonas
Attachment #429607 - Flags: superreview?(jst)
Attachment #429607 - Flags: review?(mrbkap)
Comment on attachment 429607 [details] [diff] [review]
Patch to fix

This is awesome!

Only comment I have is that nsGlobalWindow::InnerWindowSetNewDocument is a little awkward. I think something like ::InnerSetNewDocument sounds a little better.
Attachment #429607 - Flags: review?(mrbkap) → review+
Comment on attachment 429607 [details] [diff] [review]
Patch to fix

Looks good, but you'll need to bump the IID for nsPIDOMWindow.
Attachment #429607 - Flags: superreview?(jst) → superreview+
Err.. of course the main fix is

http://hg.mozilla.org/mozilla-central/rev/ac81e4eeb289

Thanks for the reviews!
Status: NEW → RESOLVED
Closed: 14 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: