Bug 21258 - console.profile() in the inspector without a title get's the title "undefined"
Summary: console.profile() in the inspector without a title get's the title "undefined"
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2008-09-30 16:15 PDT by Kevin McCullough
Modified: 2014-12-11 16:56 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin McCullough 2008-09-30 16:15:01 PDT
If you type "console.profile()" into the console of the WebInspector and then "console.profileEnd() the title of the profile will be "undefined".

This is because the arguments value in _evalInInspectedWindow in Console.js will pass the empty argument onto the inspected window.

In Console::profile in Console.cpp the title argument will be "undefined".  I could detect this at Console::profile() and change the title to "org.webkit.profiles.user-initiated" but then if a user ever set the title of their profile to "undefined" they would get this behavior.  Which may not be that bad
Comment 1 Kevin McCullough 2008-09-30 16:16:27 PDT
<rdar://problem/6259121>
Comment 2 Kevin McCullough 2008-10-01 10:23:58 PDT
This is actually correct behavior.  If a title isn't supplied it should be "undefined".

Firebug simply does not display a title.  Maybe we should consider that.