|
|
From https://bugzilla.mozilla.org/show_bug.cgi?id=418319
Description [reply] Carsten Book [:Tomcat] 2008-02-18 16:49:30 PST
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9b4pre)
Gecko/2008021514 Firefox/3.0b4pre
Steps to reproduce:
* Install the Scribe Fire Extension
https://addons.mozilla.org/en-US/firefox/addon/1730
* Open this Extension (little icon in the status bar)
* Open/Close the Publishing Options
Assertion
-> ###!!! ASSERTION: FormatStringFromName() without format parameters: use
GetStringFromName() instead: 'aParams && aLength', file
/debug/mozilla/intl/strres/src/nsStringBundle.cpp, line 223
Comment #1 [reply] Gavin Sharp 2008-02-20 19:41:43 PST
The extension code defines:
performancingUI.getLocaleString(strName, formattingValues)
and passes (strName, formattingValues) directly to
<stringbundle>.getFormattedString() if formattingValues is defined, which calls
nsIStringBundleService::formatStringFromName.
The extension is full of calls to performancingUI.getLocaleString that pass in
an empty array as the "formattingValues" parameter. Since it isn't undefined,
it calls getFormattedString which calls formatStringFromName which produces the
assertion. The extension code should stop doing that.
|