Bug 77203

Summary: Web Inspector: console evaluation doesn't work on breakpoint in pages with CSP
Product: WebKit Reporter: Yury Semikhatsky <yurys>
Component: Web Inspector (Deprecated)Assignee: Yury Semikhatsky <yurys>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, apavlov, bweinstein, dglazkov, japhet, joepeck, keishi, loislo, pfeldman, pmuellr, rik, sroussey, timothy, webkit.review.bot, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch
none
Patch pfeldman: review+, webkit.review.bot: commit-queue-

Description Yury Semikhatsky 2012-01-27 04:54:53 PST
1. Open a page with content-security-policy prohibiting evals.
2. Set a breakpoint and make execution pause on it.
3. Try to evaluate something in the inspector console.

Result:
Exception, eval is prohibited.

Related bug: https://bugs.webkit.org/show_bug.cgi?id=60800
Comment 1 Yury Semikhatsky 2012-01-27 05:05:02 PST
Created attachment 124292 [details]
Patch
Comment 2 Yury Semikhatsky 2012-01-27 05:07:03 PST
Original bug report for Chromium: http://code.google.com/p/chromium/issues/detail?id=98623
Comment 3 WebKit Review Bot 2012-01-27 05:22:03 PST
Comment on attachment 124292 [details]
Patch

Attachment 124292 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/11349694
Comment 4 Yury Semikhatsky 2012-01-27 06:13:33 PST
Created attachment 124303 [details]
Patch
Comment 5 Yury Semikhatsky 2012-01-27 06:15:08 PST
Same patch with a test for the new functionality. It depends on a change in V8 API which is not rolled yet.
Comment 6 WebKit Review Bot 2012-01-27 06:43:00 PST
Comment on attachment 124303 [details]
Patch

Attachment 124303 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/11191747
Comment 7 Yury Semikhatsky 2012-02-03 06:48:00 PST
Committed r106657: <http://trac.webkit.org/changeset/106657>