Changeset 105884 in webkit
- Timestamp:
- Jan 25, 2012 9:21:33 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r105882 r105884 1 2012-01-25 Nándor Huszka <huszka.nandor@stud.u-szeged.hu> 2 3 [WK2] WebKitTestRunner needs layoutTestController.setPopupBlockingEnabled 4 https://bugs.webkit.org/show_bug.cgi?id=63458 5 6 Reviewed by Adam Roben. 7 8 Unskip tests which do not fail now. 9 10 * platform/wk2/Skipped: 11 1 12 2012-01-25 Philippe Normand <pnormand@igalia.com> 2 13 -
trunk/LayoutTests/platform/wk2/Skipped
r105852 r105884 875 875 http/tests/security/contentSecurityPolicy/block-mixed-content-hides-warning.html 876 876 877 # WebKitTestRunner needs layoutTestController.setPopupBlockingEnabled878 # https://bugs.webkit.org/show_bug.cgi?id=63458879 fast/events/popup-blocked-from-untrusted-click-event-on-anchor.html880 fast/events/popup-blocked-from-iframe-src.html881 fast/events/popup-allowed-from-gesture-initiated-event.html882 fast/events/popup-allowed-from-gesture-initiated-form-submit.html883 fast/events/popup-blocked-from-fake-button-click.html884 fast/events/popup-blocked-from-fake-focus.html885 fast/events/popup-blocked-from-fake-user-gesture.html886 fast/events/popup-blocked-from-history-reload.html887 fast/events/popup-blocked-from-iframe-script.html888 fast/events/popup-blocked-from-mousemove.html889 fast/events/popup-blocked-from-untrusted-mouse-click.html890 fast/events/popup-blocked-from-window-open.html891 fast/events/popup-blocked-to-post-blank.html892 fast/events/popup-blocking-timers.html893 plugins/plugin-initiate-popup-window.html894 895 877 # WebKitTestRunner needs an implementation of allowRoundingHacks 896 878 # http://webkit.org/b/63477 … … 1242 1224 fast/dom/Window/window-appendages-cleared.html 1243 1225 fast/dom/tab-in-right-alignment.html 1226 fast/events/popup-blocked-from-fake-user-gesture.html 1244 1227 fast/frames/frame-element-name.html 1245 1228 fast/frames/iframe-onload-remove-self-no-crash.html … … 1281 1264 platform/mac/fast/loader/non-html-load-event.html 1282 1265 plugins/embed-attributes-style.html 1266 plugins/plugin-initiate-popup-window.html 1283 1267 storage/open-database-while-transaction-in-progress.html 1284 1268 svg/custom/clip-path-referencing-use2.svg -
trunk/Source/WebKit2/ChangeLog
r105881 r105884 1 2012-01-25 Nándor Huszka <huszka.nandor@stud.u-szeged.hu> 2 3 [WK2] WebKitTestRunner needs layoutTestController.setPopupBlockingEnabled 4 https://bugs.webkit.org/show_bug.cgi?id=63458 5 6 Reviewed by Adam Roben. 7 8 Implement the setPopupBlockingEnabled method. 9 10 * WebProcess/InjectedBundle/API/c/WKBundle.cpp: 11 (WKBundleSetPrivateBrowsingEnabled): 12 (WKBundleSetPopupBlockingEnabled): 13 * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h: 14 * WebProcess/InjectedBundle/InjectedBundle.cpp: 15 (WebKit::InjectedBundle::setPopupBlockingEnabled): 16 * WebProcess/InjectedBundle/InjectedBundle.h: 17 1 18 2012-01-25 Yael Aharon <yael.aharon@nokia.com> 2 19 -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundle.cpp
r102484 r105884 157 157 } 158 158 159 void WKBundleSetPopupBlockingEnabled(WKBundleRef bundleRef, WKBundlePageGroupRef pageGroupRef, bool enabled) 160 { 161 toImpl(bundleRef)->setPopupBlockingEnabled(toImpl(pageGroupRef), enabled); 162 } 163 159 164 void WKBundleSwitchNetworkLoaderToNewTestingSession(WKBundleRef bundleRef) 160 165 { -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePrivate.h
r96405 r105884 71 71 WK_EXPORT void WKBundleSetJavaScriptCanAccessClipboard(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled); 72 72 WK_EXPORT void WKBundleSetPrivateBrowsingEnabled(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled); 73 WK_EXPORT void WKBundleSetPopupBlockingEnabled(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled); 73 74 WK_EXPORT void WKBundleSetAuthorAndUserStylesEnabled(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled); 74 75 WK_EXPORT void WKBundleClearAllDatabases(WKBundleRef bundle); -
trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp
r102484 r105884 160 160 } 161 161 162 void InjectedBundle::setPopupBlockingEnabled(WebPageGroupProxy* pageGroup, bool enabled) 163 { 164 const HashSet<Page*>& pages = PageGroup::pageGroup(pageGroup->identifier())->pages(); 165 HashSet<Page*>::const_iterator end = pages.end(); 166 for (HashSet<Page*>::const_iterator iter = pages.begin(); iter != end; ++iter) 167 (*iter)->settings()->setJavaScriptCanOpenWindowsAutomatically(!enabled); 168 } 169 162 170 void InjectedBundle::switchNetworkLoaderToNewTestingSession() 163 171 { -
trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.h
r102484 r105884 104 104 void setJavaScriptCanAccessClipboard(WebPageGroupProxy*, bool); 105 105 void setPrivateBrowsingEnabled(WebPageGroupProxy*, bool); 106 void setPopupBlockingEnabled(WebPageGroupProxy*, bool); 106 107 void switchNetworkLoaderToNewTestingSession(); 107 108 void setAuthorAndUserStylesEnabled(WebPageGroupProxy*, bool); -
trunk/Tools/ChangeLog
r105876 r105884 1 2012-01-25 Nándor Huszka <huszka.nandor@stud.u-szeged.hu> 2 3 [WK2] WebKitTestRunner needs layoutTestController.setPopupBlockingEnabled 4 https://bugs.webkit.org/show_bug.cgi?id=63458 5 6 Reviewed by Adam Roben. 7 8 Implement the setPopupBlockingEnabled method. 9 10 * WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl: 11 * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp: 12 (WTR::LayoutTestController::setPopupBlockingEnabled): 13 * WebKitTestRunner/InjectedBundle/LayoutTestController.h: 14 1 15 2012-01-24 Balazs Kelemen <kbalazs@webkit.org> 2 16 -
trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl
r100488 r105884 55 55 void setJavaScriptCanAccessClipboard(in boolean value); 56 56 void setPrivateBrowsingEnabled(in boolean value); 57 void setPopupBlockingEnabled(in boolean value); 57 58 void setAuthorAndUserStylesEnabled(in boolean value); 58 59 void addOriginAccessWhitelistEntry(in DOMString sourceOrigin, in DOMString destinationProtocol, in DOMString destinationHost, in boolean allowDestinationSubdomains); -
trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.cpp
r97407 r105884 379 379 } 380 380 381 void LayoutTestController::setPopupBlockingEnabled(bool enabled) 382 { 383 WKBundleSetPopupBlockingEnabled(InjectedBundle::shared().bundle(), InjectedBundle::shared().pageGroup(), enabled); 384 } 385 381 386 void LayoutTestController::setAuthorAndUserStylesEnabled(bool enabled) 382 387 { -
trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.h
r100488 r105884 86 86 void setJavaScriptCanAccessClipboard(bool); 87 87 void setPrivateBrowsingEnabled(bool); 88 void setPopupBlockingEnabled(bool); 88 89 void setAuthorAndUserStylesEnabled(bool); 89 90 void setCustomPolicyDelegate(bool enabled, bool permissive = false);
Note: See TracChangeset
for help on using the changeset viewer.