Closed
Bug 359093
Opened 19 years ago
Closed 19 years ago
need to encode version string for the app.update.never.X pref name
Categories
(Toolkit :: Application Update, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: moco, Assigned: moco)
References
()
Details
Attachments
(2 files)
need to encode version string for the app.update.never.X pref name
from bug #359082
Since we use the version string as part of the "never" pref name, and the pref
API expect pref names to be ascii, there will be some expected results.
For example, for the jp snippet I attached (to bug #359082), we generate a never pref name of app.update.never.LzáY‹
To address this, I'd need to encode the potential non-ascii version string
(using encodeURIComponent()) in these two places:
http://lxr.mozilla.org/mozilla1.8/source/toolkit/mozapps/update/src/nsUpdateService.js.in#1392
http://lxr.mozilla.org/mozilla1.8/source/toolkit/mozapps/update/content/updates.js#233
| Assignee | ||
Comment 1•19 years ago
|
||
patch for the trunk coming, includes support for "app.update.log.all", per nick thomas (see https://bugzilla.mozilla.org/show_bug.cgi?id=349271#c3)
Status: NEW → ASSIGNED
| Assignee | ||
Comment 2•19 years ago
|
||
the never pref for this file should be:
app.update.never.%E3%81%8C%E7%99%BA%E4%BF%A1%E3%81%99%E3%82%8B%E6%9C%80%E6%96%B0%E6%83%85%E5%A0%B1%E3%81%AE%E7%BF%BB%E8%A8%B3%E7%89%88%E3%81%A7%E3%81%99%E3%80%82
| Assignee | ||
Comment 3•19 years ago
|
||
| Assignee | ||
Comment 4•19 years ago
|
||
Comment on attachment 244857 [details] [diff] [review]
the fix (including the "all" logging module)
seeking review from dietrich.
note, we don't currently have plans (yet) to send over non-ascii version numbers, but this has been discussed and may happen.
Attachment #244857 -
Flags: review?(dietrich)
Comment 5•19 years ago
|
||
Comment on attachment 244857 [details] [diff] [review]
the fix (including the "all" logging module)
Seth, this looks good to me, r+.
However, I'm not sure I have the credentials for toolkit reviewer-ship. You should probably request additional review from a toolkit peer.
Attachment #244857 -
Flags: review?(dietrich) → review+
| Assignee | ||
Comment 6•19 years ago
|
||
Comment on attachment 244857 [details] [diff] [review]
the fix (including the "all" logging module)
seeking toolkit peer review from robert.
Attachment #244857 -
Flags: review?(robert.bugzilla)
Comment 7•19 years ago
|
||
Comment on attachment 244857 [details] [diff] [review]
the fix (including the "all" logging module)
Looks good
Attachment #244857 -
Flags: review?(robert.bugzilla) → review+
| Assignee | ||
Comment 8•19 years ago
|
||
fixed.
Checking in content/updates.js;
/cvsroot/mozilla/toolkit/mozapps/update/content/updates.js,v <-- updates.js
new revision: 1.71; previous revision: 1.70
done
Checking in src/nsUpdateService.js.in;
/cvsroot/mozilla/toolkit/mozapps/update/src/nsUpdateService.js.in,v <-- nsUpdateService.js.in
new revision: 1.124; previous revision: 1.123
done
| Assignee | ||
Comment 9•19 years ago
|
||
I've added a litmus test case for this issue, see http://litmus.mozilla.org/show_test.cgi?id=2743
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Updated•17 years ago
|
Product: Firefox → Toolkit
You need to log in
before you can comment on or make changes to this bug.
Description
•