Changeset 127513 in webkit
- Timestamp:
- Sep 4, 2012 3:20:43 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 12 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r127511 r127513 1 2012-09-04 Jeffrey Pfau <jpfau@apple.com> 2 3 Make plugins respect third-party storage blocking setting 4 https://bugs.webkit.org/show_bug.cgi?id=94888 5 6 Reviewed by Brady Eidson. 7 8 Created tests for plugins in a third party and first party context when third-party blocking is on and off. 9 10 * http/tests/security/cross-origin-plugin-allowed-expected.txt: Added. 11 * http/tests/security/cross-origin-plugin-allowed.html: Added. 12 * http/tests/security/cross-origin-plugin-expected.txt: Added. 13 * http/tests/security/cross-origin-plugin-private-browsing-toggled-allowed-expected.txt: Added. 14 * http/tests/security/cross-origin-plugin-private-browsing-toggled-allowed.html: Added. 15 * http/tests/security/cross-origin-plugin-private-browsing-toggled-expected.txt: Added. 16 * http/tests/security/cross-origin-plugin-private-browsing-toggled.html: Added. 17 * http/tests/security/cross-origin-plugin.html: Added. 18 * http/tests/security/resources/cross-origin-iframe-for-plugin.html: Added. 19 * http/tests/security/resources/cross-origin-iframe-for-plugin-async.html: Added. 20 * platform/mac-wk2/http/tests/security/cross-origin-plugin-expected.txt: Added. 21 * platform/mac-wk2/http/tests/security/cross-origin-plugin-private-browsing-toggled-expected.txt: Added. 22 1 23 2012-09-04 Roger Fong <roger_fong@apple.com> 2 24 -
trunk/Source/WebCore/ChangeLog
r127509 r127513 1 2012-09-04 Jeffrey Pfau <jpfau@apple.com> 2 3 Make plugins respect third-party storage blocking setting 4 https://bugs.webkit.org/show_bug.cgi?id=94888 5 6 Reviewed by Brady Eidson. 7 8 Added functions for discerning if a plugin should be able to access its storage in its current origin. 9 10 Tests: http/tests/security/cross-origin-plugin-allowed.html 11 http/tests/security/cross-origin-plugin.html 12 13 * WebCore.exp.in: Export FrameTree::top and SecurityOrigin::canAccessStorage 14 * page/SecurityOrigin.h: Added canAccessPluginStorage 15 (WebCore::SecurityOrigin::canAccessPluginStorage): 16 1 17 2012-09-04 Robert Hogan <robert@webkit.org> 2 18 -
trunk/Source/WebCore/WebCore.exp.in
r127457 r127513 1178 1178 __ZNK7WebCore14SecurityOrigin5equalEPKS0_ 1179 1179 __ZNK7WebCore14SecurityOrigin8toStringEv 1180 __ZNK7WebCore14SecurityOrigin16canAccessStorageEPKS0_ 1180 1181 __ZNK7WebCore15AffineTransform10isIdentityEv 1181 1182 __ZNK7WebCore15AffineTransform12isInvertibleEv … … 1374 1375 __ZNK7WebCore9FloatRect10intersectsERKS0_ 1375 1376 __ZNK7WebCore9FloatSize6isZeroEv 1377 __ZNK7WebCore9FrameTree3topEv 1376 1378 __ZNK7WebCore9FrameTree10childCountEv 1377 1379 __ZNK7WebCore9FrameTree12traverseNextEPKNS_5FrameE -
trunk/Source/WebCore/page/SecurityOrigin.h
r126912 r127513 140 140 bool canAccessLocalStorage(const SecurityOrigin* topOrigin) const { return canAccessStorage(topOrigin); }; 141 141 bool canAccessSharedWorkers(const SecurityOrigin* topOrigin) const { return canAccessStorage(topOrigin); } 142 bool canAccessPluginStorage(const SecurityOrigin* topOrigin) const { return canAccessStorage(topOrigin); } 142 143 bool canAccessCookies() const { return !isUnique(); } 143 144 bool canAccessPasswordManager() const { return !isUnique(); } -
trunk/Source/WebKit2/ChangeLog
r127487 r127513 1 2012-09-04 Jeffrey Pfau <jpfau@apple.com> 2 3 Make plugins respect third-party storage blocking setting 4 https://bugs.webkit.org/show_bug.cgi?id=94888 5 6 Reviewed by Brady Eidson. 7 8 Plugins that are in a third-party context should be put into private browsing mode so their storage is temporary. 9 10 * WebProcess/Plugins/PluginView.cpp: 11 (WebKit::PluginView::isPrivateBrowsingEnabled): Put the plugin into private browsing mode if it is in a third-party context. 12 (WebKit::PluginView::privateBrowsingStateChanged): Make sure a plugin doesn't leave private browsing mode if it's in a third-party context. 13 1 14 2012-09-04 Pekka Vuorela <pvuorela@iki.fi> 2 15 -
trunk/Source/WebKit2/WebProcess/Plugins/PluginView.cpp
r127319 r127513 584 584 return; 585 585 586 if (!privateBrowsingEnabled && !frame()->document()->securityOrigin()->canAccessPluginStorage(frame()->tree()->top()->document()->securityOrigin())) 587 return; 588 586 589 m_plugin->privateBrowsingStateChanged(privateBrowsingEnabled); 587 590 } … … 1274 1277 return true; 1275 1278 1279 if (!frame()->document()->securityOrigin()->canAccessPluginStorage(frame()->tree()->top()->document()->securityOrigin())) 1280 return true; 1281 1276 1282 Settings* settings = frame()->settings(); 1277 1283 if (!settings)
Note: See TracChangeset
for help on using the changeset viewer.