Bug 77203 - Web Inspector: console evaluation doesn't work on breakpoint in pages with CSP
Summary: Web Inspector: console evaluation doesn't work on breakpoint in pages with CSP
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Yury Semikhatsky
Depends on:
Reported: 2012-01-27 04:54 PST by Yury Semikhatsky
Modified: 2012-02-03 06:48 PST (History)
15 users (show)

See Also:

Patch (12.38 KB, patch)
2012-01-27 05:05 PST, Yury Semikhatsky
no flags Details | Formatted Diff | Diff
Patch (15.24 KB, patch)
2012-01-27 06:13 PST, Yury Semikhatsky
pfeldman: review+
webkit.review.bot: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.

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]
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]

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]
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]

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>