Bug 146049 - Web Inspector: Do not show JavaScriptCore builtins in inspector
Summary: Web Inspector: Do not show JavaScriptCore builtins in inspector
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Joseph Pecoraro
URL:
Keywords: InRadar
: 145654 150710 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-06-16 23:05 PDT by Joseph Pecoraro
Modified: 2015-10-29 23:01 PDT (History)
12 users (show)

See Also:


Attachments
[PATCH] Proposed Fix (1.13 KB, patch)
2015-06-16 23:06 PDT, Joseph Pecoraro
no flags Details | Formatted Diff | Diff
[PATCH] Proposed Fix (1.50 KB, patch)
2015-10-29 22:13 PDT, Joseph Pecoraro
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2015-06-16 23:05:32 PDT
* SUMMARY
Do not show JavaScriptCore builtins in inspector.

* STEPS TO REPRODUCE
1. Inspect about:blank
2. Do a global search for "@call"
  => get to see the source for things like Function.prototype.call and Array.prototype.map

* NOTES
- The format is a pseudo JavaScript that doesn't parse as proper JavaScript so syntax-highlighting is off
- Breakpoints don't really work in built-ins, though we somehow can pause in the scripts, so the experience is poor if we did allow it for now
Comment 1 Joseph Pecoraro 2015-06-16 23:06:20 PDT
Created attachment 255002 [details]
[PATCH] Proposed Fix
Comment 2 Joseph Pecoraro 2015-06-16 23:07:50 PDT
*** Bug 145654 has been marked as a duplicate of this bug. ***
Comment 3 Joseph Pecoraro 2015-06-16 23:08:30 PDT
<rdar://problem/21247912>
Comment 4 WebKit Commit Bot 2015-06-17 14:35:03 PDT
Comment on attachment 255002 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 255002

Committed r185670: <http://trac.webkit.org/changeset/185670>
Comment 5 WebKit Commit Bot 2015-06-17 14:35:06 PDT
All reviewed patches have been landed.  Closing bug.
Comment 6 Csaba Osztrogonác 2015-06-18 07:24:45 PDT
(In reply to comment #4)
> Comment on attachment 255002 [details]
> [PATCH] Proposed Fix
> 
> Clearing flags on attachment: 255002
> 
> Committed r185670: <http://trac.webkit.org/changeset/185670>

It made 2 tests fail everywhere. Could you check it?
Maybe updating the expected file is the proper fix.
Comment 7 Joseph Pecoraro 2015-06-18 11:31:37 PDT
(In reply to comment #6)
> (In reply to comment #4)
> > Comment on attachment 255002 [details]
> > [PATCH] Proposed Fix
> > 
> > Clearing flags on attachment: 255002
> > 
> > Committed r185670: <http://trac.webkit.org/changeset/185670>
> 
> It made 2 tests fail everywhere. Could you check it?
> Maybe updating the expected file is the proper fix.

Interesting. I have yet to reproduce this myself running the fast/profiler directory to these tests individually. I'm updating to see if I can reproduce.

I agree, updating the expected results would be good, but it also seems as if the bots get different results from time to time.
Comment 8 Joseph Pecoraro 2015-06-18 12:18:36 PDT
I am still unable to reproduce locally, but the bots can reproduce a lot. Rather than keep them red, I rolled this out while I investigate.

https://trac.webkit.org/changeset/185715
Comment 9 Joseph Pecoraro 2015-10-29 22:09:02 PDT
*** Bug 150710 has been marked as a duplicate of this bug. ***
Comment 10 Joseph Pecoraro 2015-10-29 22:12:51 PDT
Last time we tried this it broke profiler tests, and I think that was because we were doing this in the Recompiler visiting. This time I'm doing the same thing but gathering the list of sources to inform the inspector about is separate from recompiling. Take 2!
Comment 11 Joseph Pecoraro 2015-10-29 22:13:08 PDT
Created attachment 264381 [details]
[PATCH] Proposed Fix
Comment 12 Geoffrey Garen 2015-10-29 22:14:34 PDT
Comment on attachment 264381 [details]
[PATCH] Proposed Fix

r=me

Can we test this?
Comment 13 Joseph Pecoraro 2015-10-29 22:19:10 PDT
(In reply to comment #12)
> Comment on attachment 264381 [details]
> [PATCH] Proposed Fix
> 
> r=me
> 
> Can we test this?

We can write some form of test. I'll look into that tomorrow.

In this case we could do a search for "@call" and ensure that we don't see such results, but that test is weak in the sense that if built-ins ever change syntax and that "@call" or some equivalent goes away and we end up testing nothing. Still worth looking into though!
Comment 14 WebKit Commit Bot 2015-10-29 23:01:07 PDT
Comment on attachment 264381 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 264381

Committed r191779: <http://trac.webkit.org/changeset/191779>
Comment 15 WebKit Commit Bot 2015-10-29 23:01:11 PDT
All reviewed patches have been landed.  Closing bug.