Bug 39087

Summary: Show a console message when X-Frame-Options blocks a load
Product: WebKit Reporter: Adam Barth <abarth>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Severity: Normal CC: abarth, ap, commit-queue, dglazkov, eric, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Other   
OS: OS X 10.5   
Description Flags
Work in progress (no tests)
Patch none

Description Adam Barth 2010-05-13 13:48:49 PDT
Show a console message when X-Frame-Options blocks a load
Comment 1 Adam Barth 2010-05-13 13:50:20 PDT
Created attachment 56018 [details]
Work in progress (no tests)
Comment 2 Adam Barth 2010-05-13 23:56:23 PDT
Created attachment 56057 [details]
Comment 3 Darin Adler 2010-05-14 09:23:55 PDT
Comment on attachment 56057 [details]

> +            DEFINE_STATIC_LOCAL(String, consoleMessage, ("Refused to display document because display forbidden by X-Frame-Options.\n"));

Is it good for console messages passed to addMessage to have a trailing newline. That doesn't seem right to me.

The grammar here seems slightly strained. Does the word "display" need to be repeated twice?
Comment 4 Adam Barth 2010-05-14 10:30:14 PDT
Looks like we're inconsistent about the trailing newline.  I'll write a cleanup patch to normalize them all.  Suggestions on a better wording for the message?
Comment 5 WebKit Commit Bot 2010-05-15 02:10:53 PDT
Comment on attachment 56057 [details]

Clearing flags on attachment: 56057

Committed r59528: <http://trac.webkit.org/changeset/59528>
Comment 6 WebKit Commit Bot 2010-05-15 02:10:59 PDT
All reviewed patches have been landed.  Closing bug.
Comment 7 WebKit Review Bot 2011-04-15 18:22:41 PDT
http://trac.webkit.org/changeset/84060 might have broken Leopard Intel Release (Build) and WinCairo Debug (Build)