Changeset 86201 in webkit
- Timestamp:
- May 10, 2011 6:24:16 PM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r86191 r86201 1 2011-05-10 Chris Evans <cevans@chromium.org> 2 3 Reviewed by Adam Barth. 4 5 Add WebCore::Setting to block displaying and/or running insecure content on secure pages 6 https://bugs.webkit.org/show_bug.cgi?id=58378 7 8 * DumpRenderTree/chromium/LayoutTestController.cpp: 9 (LayoutTestController::LayoutTestController): 10 (LayoutTestController::setAllowDisplayOfInsecureContent): 11 (LayoutTestController::setAllowRunningOfInsecureContent): 12 * DumpRenderTree/chromium/LayoutTestController.h: 13 * DumpRenderTree/chromium/WebPreferences.cpp: 14 (WebPreferences::reset): 15 (WebPreferences::applyTo): 16 * DumpRenderTree/chromium/WebPreferences.h: 17 Add plumbing for new settings to Chromium DRT. 18 1 19 2011-05-10 Enrica Casucci <enrica@apple.com> 2 20 -
trunk/Tools/DumpRenderTree/chromium/LayoutTestController.cpp
r86047 r86201 139 139 bindMethod("sampleSVGAnimationForElementAtTime", &LayoutTestController::sampleSVGAnimationForElementAtTime); 140 140 bindMethod("setAcceptsEditing", &LayoutTestController::setAcceptsEditing); 141 bindMethod("setAllowDisplayOfInsecureContent", &LayoutTestController::setAllowDisplayOfInsecureContent); 141 142 bindMethod("setAllowFileAccessFromFileURLs", &LayoutTestController::setAllowFileAccessFromFileURLs); 143 bindMethod("setAllowRunningOfInsecureContent", &LayoutTestController::setAllowRunningOfInsecureContent); 142 144 bindMethod("setAllowUniversalAccessFromFileURLs", &LayoutTestController::setAllowUniversalAccessFromFileURLs); 143 145 bindMethod("setAlwaysAcceptCookies", &LayoutTestController::setAlwaysAcceptCookies); … … 1283 1285 } 1284 1286 1287 void LayoutTestController::setAllowDisplayOfInsecureContent(const CppArgumentList& arguments, CppVariant* result) 1288 { 1289 if (arguments.size() > 0 && arguments[0].isBool()) { 1290 m_shell->preferences()->allowDisplayOfInsecureContent = arguments[0].value.boolValue; 1291 m_shell->applyPreferences(); 1292 } 1293 result->setNull(); 1294 } 1295 1285 1296 void LayoutTestController::setAllowFileAccessFromFileURLs(const CppArgumentList& arguments, CppVariant* result) 1286 1297 { 1287 1298 if (arguments.size() > 0 && arguments[0].isBool()) { 1288 1299 m_shell->preferences()->allowFileAccessFromFileURLs = arguments[0].value.boolValue; 1300 m_shell->applyPreferences(); 1301 } 1302 result->setNull(); 1303 } 1304 1305 void LayoutTestController::setAllowRunningOfInsecureContent(const CppArgumentList& arguments, CppVariant* result) 1306 { 1307 if (arguments.size() > 0 && arguments[0].isBool()) { 1308 m_shell->preferences()->allowRunningOfInsecureContent = arguments[0].value.boolValue; 1289 1309 m_shell->applyPreferences(); 1290 1310 } -
trunk/Tools/DumpRenderTree/chromium/LayoutTestController.h
r86047 r86201 270 270 void overridePreference(const CppArgumentList&, CppVariant*); 271 271 void setAllowUniversalAccessFromFileURLs(const CppArgumentList&, CppVariant*); 272 void setAllowDisplayOfInsecureContent(const CppArgumentList&, CppVariant*); 272 273 void setAllowFileAccessFromFileURLs(const CppArgumentList&, CppVariant*); 274 void setAllowRunningOfInsecureContent(const CppArgumentList&, CppVariant*); 273 275 274 276 void shadowRoot(const CppArgumentList&, CppVariant*); -
trunk/Tools/DumpRenderTree/chromium/WebPreferences.cpp
r85777 r86201 71 71 DOMPasteAllowed = true; 72 72 XSSAuditorEnabled = false; 73 allowDisplayOfInsecureContent = true; 73 74 allowFileAccessFromFileURLs = true; 75 allowRunningOfInsecureContent = true; 74 76 authorAndUserStylesEnabled = true; 75 77 defaultTextEncodingName = WebString::fromUTF8("ISO-8859-1"); … … 128 130 settings->setDOMPasteAllowed(DOMPasteAllowed); 129 131 settings->setXSSAuditorEnabled(XSSAuditorEnabled); 132 settings->setAllowDisplayOfInsecureContent(allowDisplayOfInsecureContent); 130 133 settings->setAllowFileAccessFromFileURLs(allowFileAccessFromFileURLs); 134 settings->setAllowRunningOfInsecureContent(allowRunningOfInsecureContent); 131 135 settings->setAuthorAndUserStylesEnabled(authorAndUserStylesEnabled); 132 136 settings->setDefaultTextEncodingName(defaultTextEncodingName); -
trunk/Tools/DumpRenderTree/chromium/WebPreferences.h
r85777 r86201 55 55 bool DOMPasteAllowed; 56 56 bool XSSAuditorEnabled; 57 bool allowDisplayOfInsecureContent; 57 58 bool allowFileAccessFromFileURLs; 59 bool allowRunningOfInsecureContent; 58 60 bool authorAndUserStylesEnabled; 59 61 WebKit::WebString defaultTextEncodingName;
Note: See TracChangeset
for help on using the changeset viewer.