Bug 66213

Summary: Web Inspector: console evaluation is possible only in the main world context
Product: WebKit Reporter: Yury Semikhatsky <yurys>
Component: Web Inspector (Deprecated)Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, bweinstein, e308ad5e31abe3e9525d439c603f8a96, joepeck, keishi, loislo, mihaip, pfeldman, pmuellr, rik, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   

Yury Semikhatsky
Reported 2011-08-14 23:56:58 PDT
At the moment console evaluation is possible only in the main world context. The only way to perform evaluations in a script from an isolated world(e.g. content scritps in Chromium) is to set a breakpoint/insert debugger statement. These contexts should be provided in the context selector at the bottom of the console. Original user question: http://stackoverflow.com/questions/7055830/how-to-get-to-sandboxed-environment-of-content-script-in-chrome-js-console
Attachments
Jericho West
Comment 1 2011-08-29 20:00:28 PDT
cc: mihaip@chromium.org, e308ad5e...@yahoo.com, et al OS: All platforms Browser: Chrome v15 Canary (Trunk) Status >> Request Severity >> P4 Enhancement Issue: Allow more debugging capabilities for content scripts). REFERENCE "Issue 91339 - chromium - unable to debug my content script - An open-source browser project to help move the web forward. - Google Project Hosting" - http://code.google.com/p/chromium/issues/detail?id=91339
Yury Semikhatsky
Comment 2 2013-02-28 00:57:46 PST
We added context selector to the console some time ago. Closing the bug.
Note You need to log in before you can comment on or make changes to this bug.