Closed Bug 715077 Opened 14 years ago Closed 14 years ago

Firefox 9 Web Console API (ConsoleAPI) logging methods crash when encountering null in printf-like string substitution

Categories

(DevTools :: Console, defect)

9 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 692550

People

(Reporter: mikhail.alexeev, Unassigned)

Details

Attachments

(1 file)

Attached image console_error.png
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.120 Safari/535.2 Steps to reproduce: Windows 7 Professional SP1 64 bit. Firefox 9 clean new installation, new empty profile, no third party addons or plugins. Open Web Console (Firefox -> Web Developer -> Web Console, Ctrl+Shift+K) Tried to execute this code in the console: console.log('test %o', null) Actual results: The attempt to pass null argument to the console log caused error: TypeError: args.shift() is null It did not crash in Firefox 8 (or earlier). Expected results: Such calls should not crash. It should output something like "test null" Its a console logging and application may have all kind of data, including nulls. The crash happens in Mozilla Firefox/omni.jar/components/ConsoleAPI.js line 213.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: