Changeset 205094 in webkit
- Timestamp:
- Aug 27, 2016 6:27:41 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r205088 r205094 1 2016-08-27 Jonathan Bedard <jbedard@apple.com> 2 3 WTR needs an implementation of setAutomaticLinkDetectionEnabled 4 https://bugs.webkit.org/show_bug.cgi?id=87162 5 6 Reviewed by Darin Adler. 7 8 * platform/wk2/TestExpectations: Removed 2 now passing tests. 9 1 10 2016-08-27 Sam Weinig <sam@webkit.org> 2 11 -
trunk/LayoutTests/platform/wk2/TestExpectations
r204918 r205094 252 252 fast/block/lineboxcontain/font.html 253 253 254 # WTR needs an implementation of setAutomaticLinkDetectionEnabled. 255 # https://bugs.webkit.org/show_bug.cgi?id=87162 256 editing/inserting/smart-link-when-caret-is-moved-before-URL.html 254 # Strange error in “Internals” 257 255 editing/inserting/smart-quote-with-all-configurations.html 258 editing/inserting/typing-space-to-trigger-smart-link.html259 256 260 257 # https://bugs.webkit.org/show_bug.cgi?id=115203 -
trunk/Source/WebKit2/ChangeLog
r205075 r205094 1 2016-08-27 Jonathan Bedard <jbedard@apple.com> 2 3 WTR needs an implementation of setAutomaticLinkDetectionEnabled 4 https://bugs.webkit.org/show_bug.cgi?id=87162 5 6 Reviewed by Darin Adler 7 8 * WebProcess/InjectedBundle/API/c/WKBundle.cpp: 9 (WKBundleSetAutomaticLinkDetectionEnabled): Added WKBundleSetAutomaticLinkDetectionEnabled definition. 10 * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h: Added WKBundleSetAutomaticLinkDetectionEnabled declaration. 11 * WebProcess/InjectedBundle/InjectedBundle.cpp: 12 (WebKit::InjectedBundle::setAutomaticLinkDetectionEnabled): Added setAutomaticLinkDetectionEnabled definition. 13 * WebProcess/InjectedBundle/InjectedBundle.h: Added setAutomaticLinkDetectionEnabled declaration. 14 * WebProcess/WebProcess.h: Declared setTextCheckerState public. 15 1 16 2016-08-27 Carlos Garcia Campos <cgarcia@igalia.com> 2 17 -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundle.cpp
r202242 r205094 156 156 } 157 157 158 void WKBundleSetAutomaticLinkDetectionEnabled(WKBundleRef bundleRef, WKBundlePageGroupRef pageGroupRef, bool enabled) 159 { 160 toImpl(bundleRef)->setAutomaticLinkDetectionEnabled(toImpl(pageGroupRef), enabled); 161 } 162 158 163 void WKBundleSetPrivateBrowsingEnabled(WKBundleRef bundleRef, WKBundlePageGroupRef pageGroupRef, bool enabled) 159 164 { -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePrivate.h
r191047 r205094 50 50 WK_EXPORT void WKBundleSetPluginsEnabled(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled); 51 51 WK_EXPORT void WKBundleSetJavaScriptCanAccessClipboard(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled); 52 WK_EXPORT void WKBundleSetAutomaticLinkDetectionEnabled(WKBundleRef bundleRef, WKBundlePageGroupRef pageGroupRef, bool enabled); 52 53 WK_EXPORT void WKBundleSetPrivateBrowsingEnabled(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled); 53 54 WK_EXPORT void WKBundleSetPopupBlockingEnabled(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled); -
trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp
r204743 r205094 32 32 #include "NotificationPermissionRequestManager.h" 33 33 #include "SessionTracker.h" 34 #include "TextChecker.h" 34 35 #include "UserData.h" 35 36 #include "WKAPICast.h" … … 46 47 #include "WebProcess.h" 47 48 #include "WebProcessCreationParameters.h" 49 #include "WebProcessMessages.h" 48 50 #include "WebProcessPoolMessages.h" 49 51 #include "WebUserContentController.h" … … 303 305 } 304 306 307 void InjectedBundle::setAutomaticLinkDetectionEnabled(WebPageGroupProxy* pageGroup, bool enabled) 308 { 309 #if USE(APPKIT) 310 if (enabled == TextChecker::state().isAutomaticLinkDetectionEnabled) 311 return; 312 TextChecker::setAutomaticLinkDetectionEnabled(enabled); 313 WebProcess::singleton().setTextCheckerState(TextChecker::state()); 314 #endif 315 } 316 305 317 void InjectedBundle::setPrivateBrowsingEnabled(WebPageGroupProxy* pageGroup, bool enabled) 306 318 { -
trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.h
r204668 r205094 107 107 void setPluginsEnabled(WebPageGroupProxy*, bool); 108 108 void setJavaScriptCanAccessClipboard(WebPageGroupProxy*, bool); 109 void setAutomaticLinkDetectionEnabled(WebPageGroupProxy*, bool enabled); 109 110 void setPrivateBrowsingEnabled(WebPageGroupProxy*, bool); 110 111 void setPopupBlockingEnabled(WebPageGroupProxy*, bool); -
trunk/Source/WebKit2/WebProcess/WebProcess.h
r204985 r205094 150 150 151 151 const TextCheckerState& textCheckerState() const { return m_textCheckerState; } 152 void setTextCheckerState(const TextCheckerState&); 152 153 153 154 void clearResourceCaches(ResourceCachesToClear = AllResourceCaches); … … 267 268 void startMemorySampler(const SandboxExtension::Handle&, const String&, const double); 268 269 void stopMemorySampler(); 269 270 void setTextCheckerState(const TextCheckerState&);271 270 272 271 void getWebCoreStatistics(uint64_t callbackID); -
trunk/Tools/ChangeLog
r205089 r205094 1 2016-08-27 Jonathan Bedard <jbedard@apple.com> 2 3 WTR needs an implementation of setAutomaticLinkDetectionEnabled 4 https://bugs.webkit.org/show_bug.cgi?id=87162 5 6 Reviewed by Darin Adler. 7 8 * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl: Added setAutomaticLinkDetectionEnabled binding. 9 * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp: 10 (WTR::InjectedBundle::beginTesting): Set automatic link detection to false by default. 11 * WebKitTestRunner/InjectedBundle/TestRunner.cpp: 12 (WTR::TestRunner::setAutomaticLinkDetectionEnabled): Added setAutomaticLinkDetectionEnabled definition. 13 * WebKitTestRunner/InjectedBundle/TestRunner.h: Added setAutomaticLinkDetectionEnabled declaration. 14 1 15 2016-08-27 Joseph Pecoraro <pecoraro@apple.com> 2 16 -
trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl
r204853 r205094 63 63 void setPluginsEnabled(boolean value); 64 64 void setJavaScriptCanAccessClipboard(boolean value); 65 void setAutomaticLinkDetectionEnabled(boolean value); 65 66 void setPrivateBrowsingEnabled(boolean value); 66 67 void setPopupBlockingEnabled(boolean value); -
trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp
r203975 r205094 295 295 WKBundleSetAllowUniversalAccessFromFileURLs(m_bundle, m_pageGroup, true); 296 296 WKBundleSetJavaScriptCanAccessClipboard(m_bundle, m_pageGroup, true); 297 WKBundleSetAutomaticLinkDetectionEnabled(m_bundle, m_pageGroup, false); 297 298 WKBundleSetPrivateBrowsingEnabled(m_bundle, m_pageGroup, false); 298 299 WKBundleSetAuthorAndUserStylesEnabled(m_bundle, m_pageGroup, true); -
trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp
r204853 r205094 406 406 } 407 407 408 void TestRunner::setAutomaticLinkDetectionEnabled(bool enabled) 409 { 410 auto& injectedBundle = InjectedBundle::singleton(); 411 WKBundleSetAutomaticLinkDetectionEnabled(injectedBundle.bundle(), injectedBundle.pageGroup(), enabled); 412 } 413 408 414 void TestRunner::setPrivateBrowsingEnabled(bool enabled) 409 415 { -
trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.h
r204853 r205094 110 110 void setPluginsEnabled(bool); 111 111 void setJavaScriptCanAccessClipboard(bool); 112 void setAutomaticLinkDetectionEnabled(bool); 112 113 void setPrivateBrowsingEnabled(bool); 113 114 void setPopupBlockingEnabled(bool);
Note: See TracChangeset
for help on using the changeset viewer.