WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
21252
calling console.profile() with a title that is 2 chars or shorter does not linkify it
https://bugs.webkit.org/show_bug.cgi?id=21252
Summary
calling console.profile() with a title that is 2 chars or shorter does not li...
Kevin McCullough
Reported
2008-09-30 13:20:59 PDT
* SUMMARY In the Inspector's console you can type console.profile/End() with and without a title. Either way gives you the wrong title. * STEPS TO REPRODUCE 1. Open a page with some JS on it like (
http://www.asia.com/cheap-flights-1/deals/Hawaiian-Flights-Discount-Fares?gclid=CO_YvqHloZQCFSQbagodWAYMtw
) 2. Open the inspector and go to the Profiles panel. 3. In the console type "console.profile()" then click around on the site to engage some JS 4. In the console type "console.profileEnd()" to stop the profile. 5. Exercise some more JS on the page to get the profile to appear (see 6160740) * RESULTS If you did not provide a title the profile's title will be "undefined" instead of "Profile X" where X is the number of user initiated profiles currently present (should be 1). If you do all the steps but change 3 and 4 to include a title (e.g. "console.profile('hi') and console.profileEnd('hi')) you will see a message in the console that says "Profile "webkit-profile://hi/5" finished.". It should not show the "webkit-profile://" or the "/5" but instead make that a clickable link upon reflection this works fine with other titles, it is related to the string "hi". Dun Dun Dun! <
rdar://problem/6160767
Attachments
Proposed patch
(1.50 KB, patch)
2008-09-30 15:29 PDT
,
Kevin McCullough
kmccullough
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Kevin McCullough
Comment 1
2008-09-30 15:29:09 PDT
Created
attachment 23957
[details]
Proposed patch
Kevin McCullough
Comment 2
2008-09-30 15:32:21 PDT
r=Tim Hatcher Committed revision 37120.
Kevin McCullough
Comment 3
2008-09-30 15:32:34 PDT
Comment on
attachment 23957
[details]
Proposed patch r=Tim Hatcher
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug