formatStringFromName isn't used correct in showError

RESOLVED INCOMPLETE

Status

Core Graveyard
Profile: Roaming
--
minor
RESOLVED INCOMPLETE
14 years ago
2 years ago

People

(Reporter: Henrik Gemal, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

14 years ago
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

14 years ago
Assignee: ben.bucksch → nobody
Severity: normal → minor
OS: Windows XP → All
Hardware: PC → All
Blocks: 1243899

Comment 1

2 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.
No longer blocks: 1243899
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → INCOMPLETE
(Assignee)

Updated

2 years ago
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.