View-source iframes are dangerous (and not very useful).
authortsepez@chromium.org <tsepez@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 30 Mar 2013 18:22:52 +0000 (18:22 +0000)
committertsepez@chromium.org <tsepez@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 30 Mar 2013 18:22:52 +0000 (18:22 +0000)
commite175f1506c411a5936958c0e9e471c453f73d22b
tree9e4946d8eef2aca36f791b35af74a0bf49f2a68d
parent8c8a2321b2aff21f22b7cf5783dfc8249b06c23c
View-source iframes are dangerous (and not very useful).
https://bugs.webkit.org/show_bug.cgi?id=113345

Reviewed by Adam Barth.

Source/WebCore:

* html/HTMLFrameElementBase.cpp:
(WebCore::HTMLFrameElementBase::parseAttribute):
Conditionalize viewsource attribute on ENABLE(VIEWSOURCE_ATTRIBUTE).

Source/WebKit/chromium:

* features.gypi:
Disable VIEWSOURCE_ATTRIBUTE for chromium.

Source/WTF:

* wtf/FeatureDefines.h:
Default definition of ENABLE_VIEWSOURCE_ATTRIBUTE is enabled.

LayoutTests:

* platform/chromium/TestExpectations:
Update expectations now that chromium excludes iframe's viewsource attribute.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@147280 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/platform/chromium/TestExpectations
Source/WTF/ChangeLog
Source/WTF/wtf/FeatureDefines.h
Source/WebCore/ChangeLog
Source/WebCore/html/HTMLFrameElementBase.cpp
Source/WebKit/chromium/ChangeLog
Source/WebKit/chromium/features.gypi