Bug 21258
Summary: | console.profile() in the inspector without a title get's the title "undefined" | ||
---|---|---|---|
Product: | WebKit | Reporter: | Kevin McCullough <kmccullough> |
Component: | Web Inspector (Deprecated) | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | burg |
Priority: | P2 | Keywords: | InRadar |
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All |
Kevin McCullough
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
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Kevin McCullough
<rdar://problem/6259121>
Kevin McCullough
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.