Bug 156866 - Web Inspector: "document" and "window" are evaluated on the page a lot
Summary: Web Inspector: "document" and "window" are evaluated on the page a lot
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Local Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-04-21 14:06 PDT by Timothy Hatcher
Modified: 2017-02-10 18:02 PST (History)
4 users (show)

See Also:


Attachments
Screenshot (272.58 KB, image/png)
2016-04-21 14:06 PDT, Timothy Hatcher
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Hatcher 2016-04-21 14:06:28 PDT
Created attachment 276957 [details]
Screenshot

Steps:
0) Make isWebKitInternalScript() and isWebKitInternalScript() always return false.
1) Inspect about:blank
2) Evaluate something in the console.
3) Click around i the Debugger sidebar.

I would see a new "document" and "window" eval happen by just viewing a script resource. DOMTree.js does evaluate "document" in _requestRootDOMNode, but I would not expect it to happen like this. I am not sure where the "window" eval comes from.
Comment 1 Radar WebKit Bug Importer 2016-04-21 14:06:59 PDT
<rdar://problem/25862114>
Comment 2 BJ Burg 2017-02-10 18:02:52 PST
I'm 90% sure this is the result of our workaround to obtain a remote object for the document because we can't do it via protocol directly.