Closed
Bug 549452
Opened 14 years ago
Closed 14 years ago
nsGlobalWindow::SetNewDocument is hard to read
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: sicking, Assigned: sicking)
References
Details
Attachments
(2 files)
15.80 KB,
patch
|
Details | Diff | Splinter Review | |
40.63 KB,
patch
|
mrbkap
:
review+
jst
:
superreview+
|
Details | Diff | Splinter 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.
Assignee | ||
Comment 1•14 years ago
|
||
Assignee: nobody → jonas
Attachment #429607 -
Flags: superreview?(jst)
Attachment #429607 -
Flags: review?(mrbkap)
Comment 2•14 years ago
|
||
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 3•14 years ago
|
||
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+
Assignee | ||
Comment 4•14 years ago
|
||
Oops, forgot to address Blakes review comment. Fixed as http://hg.mozilla.org/mozilla-central/rev/28be6df4ba12
Assignee | ||
Comment 5•14 years ago
|
||
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
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•