Closed Bug 249042 Opened 20 years ago Closed 9 years ago

formatStringFromName isn't used correct in showError

Categories

(Core Graveyard :: Profile: Roaming, defect)

defect
Not set
minor

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) { } }
Assignee: ben.bucksch → nobody
Severity: normal → minor
OS: Windows XP → All
Hardware: PC → All
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
Closed: 9 years ago
Resolution: --- → INCOMPLETE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.