Closed
Bug 851527
Opened 12 years ago
Closed 12 years ago
Strip null bytes in document titles when setting the chrome window's title.
Categories
(SeaMonkey :: Tabbed Browser, defect)
SeaMonkey
Tabbed Browser
Tracking
(Not tracked)
RESOLVED
FIXED
seamonkey2.19
People
(Reporter: philip.chee, Assigned: philip.chee)
Details
Attachments
(1 file)
2.35 KB,
patch
|
neil
:
review+
|
Details | Diff | Splinter Review |
See Firefox Bug 818014 and https://hg.mozilla.org/mozilla-central/rev/23d42f6e56b4
Assignee | ||
Comment 1•12 years ago
|
||
Tested with Attachment 688971 [details] from Bug 818014
https://bug818014.bugzilla.mozilla.org/attachment.cgi?id=688971
Attachment #725422 -
Flags: review?(neil)
Comment 2•12 years ago
|
||
Comment on attachment 725422 [details] [diff] [review]
Patch v1.0 Proposed fix.
>+ docTitle = this.contentTitle.replace("\0", "", "g");
Nit: Please use the RegExp form /\0+/g instead.
>- if (docElement.getAttribute("chromehidden").indexOf("location") != -1) {
>+ if (docElement.getAttribute("chromehidden").contains("location")) {
[Unless this is a stray leftover then these sorts of changes should be done in a dedicated bug.]
Attachment #725422 -
Flags: review?(neil) → review+
Assignee | ||
Comment 3•12 years ago
|
||
Pushed to comm-central:
http://hg.mozilla.org/comm-central/rev/bf49737b12dc
> Nit: Please use the RegExp form /\0+/g instead.
Fixed.
> [Unless this is a stray leftover then these sorts of changes should be done in a dedicated bug.]
Removed.
Assignee | ||
Updated•12 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.19
You need to log in
before you can comment on or make changes to this bug.
Description
•