Closed
Bug 346586
Opened 18 years ago
Closed 18 years ago
Non-PRBool values passed as PRBool in bug 241972
Categories
(Core :: DOM: Navigation, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: bzbarsky, Assigned: marria)
References
Details
(Keywords: fixed1.8.1)
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
dbaron
:
approval1.8.1+
|
Details | Diff | Splinter Review |
The patch for bug 241972 passes |aFlags & INTERNAL_LOAD_FLAGS_NEW_WINDOW| as a PRBool. It's not a boolean value; it shouldn't be being passed to a PRBool arg; doing such things has led to hard-to-track-down bugs in the past. Please fix accordingly.
Assignee | ||
Comment 1•18 years ago
|
||
Sorry about that, thanks for catching it
Attachment #231552 -
Flags: review?(bzbarsky)
Reporter | ||
Comment 2•18 years ago
|
||
Comment on attachment 231552 [details] [diff] [review]
make sure to pass a PRBool into DoURILoad
Why not just pass in (aFlags & INTERNAL_LOAD_FLAGS_NEW_WINDOW) != 0 ?
If you do want to have the explicit boolean variable, I'm not sure I buy this name. Something like isFirstLoad would make more sense; see bug 346851.
Assignee | ||
Comment 3•18 years ago
|
||
Attachment #231552 -
Attachment is obsolete: true
Attachment #231649 -
Flags: review?(bzbarsky)
Attachment #231552 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 4•18 years ago
|
||
(In reply to comment #2)
> (From update of attachment 231552 [details] [diff] [review] [edit])
> Why not just pass in (aFlags & INTERNAL_LOAD_FLAGS_NEW_WINDOW) != 0 ?
>
> If you do want to have the explicit boolean variable, I'm not sure I buy this
> name. Something like isFirstLoad would make more sense; see bug 346851.
>
I don't care about having an explicit variable, so I just took it out.
Thanks,
Marria
Reporter | ||
Comment 5•18 years ago
|
||
Comment on attachment 231649 [details] [diff] [review]
pass PRBool into DoURILoad
Looks good. I assume you need someone to check this in, right?
Attachment #231649 -
Flags: superreview+
Attachment #231649 -
Flags: review?(bzbarsky)
Attachment #231649 -
Flags: review+
Assignee | ||
Comment 6•18 years ago
|
||
(In reply to comment #5)
> (From update of attachment 231649 [details] [diff] [review] [edit])
> Looks good. I assume you need someone to check this in, right?
>
I actually have a cvs account, thanks though.
Assignee | ||
Updated•18 years ago
|
Attachment #231649 -
Flags: approval1.8.1?
Reporter | ||
Comment 7•18 years ago
|
||
Ah, cool. Thanks for fixing this!
Comment 8•18 years ago
|
||
Comment on attachment 231649 [details] [diff] [review]
pass PRBool into DoURILoad
a=dbaron on behalf of drivers. Please check in to MOZILLA_1_8_BRANCH and mark fixed1.8.1 once you have done so.
Attachment #231649 -
Flags: approval1.8.1? → approval1.8.1+
Assignee | ||
Updated•18 years ago
|
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•18 years ago
|
Keywords: fixed1.8.1
Assignee | ||
Comment 9•18 years ago
|
||
checked in on trunk and branch
You need to log in
before you can comment on or make changes to this bug.
Description
•