Closed
Bug 507881
Opened 16 years ago
Closed 16 years ago
remove useless "|| null" fallback in browserGlue.sanitize(window) calls
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
RESOLVED
FIXED
Firefox 3.6a1
People
(Reporter: dao, Assigned: dao)
Details
Attachments
(1 file)
|
3.91 KB,
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
It doesn't make sense. The window objects must exist there.
Also, the Sanitizer.sanitize return value is entirely useless and never looked at.
Attachment #392133 -
Flags: review?(gavin.sharp)
Comment 1•16 years ago
|
||
_checkAndSanitize in sanitize.js checks if the return value is null, which is strange because that code wasn't even added until after sanitize had been changed to always return null...
| Assignee | ||
Comment 2•16 years ago
|
||
(In reply to comment #1)
> _checkAndSanitize in sanitize.js checks if the return value is null
That's Sanitizer.prototype.sanitize, not Sanitizer.sanitize.
Comment 3•16 years ago
|
||
Comment on attachment 392133 [details] [diff] [review]
patch
Can you remove the || at http://mxr.mozilla.org/mozilla-central/source/browser/base/content/sanitize.js#493 too?
Attachment #392133 -
Flags: review?(gavin.sharp) → review+
| Assignee | ||
Comment 4•16 years ago
|
||
(In reply to comment #3)
> Can you remove the || at
> http://mxr.mozilla.org/mozilla-central/source/browser/base/content/sanitize.js#493
> too?
Sanitizer.prototype.sanitize actually returns an object with errors or null otherwise.
| Assignee | ||
Updated•16 years ago
|
Keywords: checkin-needed
| Assignee | ||
Comment 5•16 years ago
|
||
Status: NEW → RESOLVED
Closed: 16 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3.6a1
You need to log in
before you can comment on or make changes to this bug.
Description
•