Closed
Bug 249042
Opened 20 years ago
Closed 9 years ago
formatStringFromName isn't used correct in showError
Categories
(Core Graveyard :: Profile: Roaming, defect)
Core Graveyard
Profile: Roaming
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: bugzilla, Unassigned)
Details
I get the following strict javascript warning:
Warning: reference to undefined property bundle.formatStringFromName
Source File: chrome://sroaming/content/prefs/all.js
Line: 400
perhaps we need to do something like the autoconfig does:
function displayError(funcname, message) {
try {
var promptService =
Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService);
var bundle =
Components.classes["@mozilla.org/intl/stringbundle;1"].getService(Components.interfaces.nsIStringBundleService).createBundle("chrome://autoconfig/locale/autoconfig.properties");
var title = bundle.GetStringFromName("autoConfigTitle");
var msg = bundle.formatStringFromName("autoConfigMsg", [funcname], 1);
promptService.alert(null, title, msg + " " + message);
}
catch(e) { }
}
Updated•20 years ago
|
Assignee: ben.bucksch → nobody
Severity: normal → minor
OS: Windows XP → All
Hardware: PC → All
Blocks: 1243899
Comment 1•9 years ago
|
||
This bug is filed in a bugzilla component related to pre-Firefox code which no longer exists. I believe it is no longer relevant and I am therefore closing it INCOMPLETE.
If you believe that this bug is still valid and needs to be fixed, please reopen it and move it to the Toolkit:Startup and Profile System product/component.
Assignee | ||
Updated•8 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•