WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 85233
CSP shouldn't block about:blank for iframes
https://bugs.webkit.org/show_bug.cgi?id=85233
Summary
CSP shouldn't block about:blank for iframes
WebKit Review Bot
Reported
2012-04-30 14:21:52 PDT
CSP shouldn't block about:blank for iframes Requested by abarth on #webkit.
Attachments
Patch
(4.21 KB, patch)
2012-05-03 15:48 PDT
,
Adam Barth
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Adam Barth
Comment 1
2012-05-03 15:48:57 PDT
Created
attachment 140115
[details]
Patch
Mike West
Comment 2
2012-05-03 16:00:16 PDT
It might be preferable to check that the URL is, in fact, `about:blank`, rather than allowing anything under `about:`. I know Chromium redirects to `chrome://`, and Safari doesn't do anything dangerous, but perhaps some other port exposes something interesting under `about:*`?
Adam Barth
Comment 3
2012-05-03 16:04:21 PDT
WebKit treats all "about" URLs as about:blank. The redirect you see in Chrome takes place before the URL gets to WebKit. :)
Eric Seidel (no email)
Comment 4
2012-05-03 16:14:21 PDT
Comment on
attachment 140115
[details]
Patch about:banana!
WebKit Review Bot
Comment 5
2012-05-03 16:38:33 PDT
Comment on
attachment 140115
[details]
Patch Rejecting
attachment 140115
[details]
from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2 Last 500 characters of output: git/webkit-commit-queue/Source/WebKit/chromium/ui --revision 134581 --non-interactive --force --accept theirs-conflict --ignore-externals' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium' 46>At revision 134581. ________ running '/usr/bin/python tools/clang/scripts/update.py --mac-only' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium' ________ running '/usr/bin/python gyp_webkit' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium' Updating webkit projects from gyp files... Full output:
http://queues.webkit.org/results/12620267
WebKit Review Bot
Comment 6
2012-05-03 17:52:34 PDT
Comment on
attachment 140115
[details]
Patch Clearing flags on attachment: 140115 Committed
r116052
: <
http://trac.webkit.org/changeset/116052
>
WebKit Review Bot
Comment 7
2012-05-03 17:52:46 PDT
All reviewed patches have been landed. Closing bug.
Darin Adler
Comment 8
2012-05-04 10:26:22 PDT
It’d be nicer if the “blank URL protocol” was something we got from KURL.h along with blankURL() instead of being a hard-coded string "about".
Adam Barth
Comment 9
2012-05-04 10:41:39 PDT
I've filed
https://bugs.webkit.org/show_bug.cgi?id=85641
about changing the idiom.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug