Changeset 263575 in webkit
- Timestamp:
- Jun 26, 2020 12:28:18 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 48 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r263546 r263575 1 2020-06-26 Geoffrey Garen <ggaren@apple.com> 2 3 Initializing the main thread should initialize the main run loop 4 https://bugs.webkit.org/show_bug.cgi?id=213637 5 6 Reviewed by Anders Carlsson. 7 8 * JavaScriptCore.order: Removed some defunct stuff. 9 * shell/playstation/TestShell.cpp: 10 (setupTestRun): Merged initializeThreading call with 11 initializeMainThread call because initializeMainThread is a superset. 12 1 13 2020-06-25 Yusuke Suzuki <ysuzuki@apple.com> 2 14 -
trunk/Source/JavaScriptCore/JavaScriptCore.order
r253234 r263575 50 50 __ZN3JSC7JSStack19initializeThreadingEv 51 51 __ZN3JSC5LLInt10initializeEv 52 __ZN3WTF39initializeMainThreadToProcessMainThreadEv53 __ZN3WTFL43initializeMainThreadToProcessMainThreadOnceEv54 __ZN3WTF47initializeMainThreadToProcessMainThreadPlatformEv55 52 __ZN3WTF19initializeGCThreadsEv 56 53 __ZN3WTF18FunctionDispatcherC2Ev -
trunk/Source/JavaScriptCore/shell/playstation/TestShell.cpp
r252243 r263575 31 31 // threading yet, since that would do somethings that we'd like to defer until after we 32 32 // have a chance to parse options. 33 WTF::initialize Threading();33 WTF::initializeMainThread(); 34 34 35 35 // Need to override and enable restricted options before we start parsing options below. 36 36 Config::enableRestrictedOptions(); 37 37 38 // Initialize JSC before getting VM.39 WTF::initializeMainThread();40 38 JSC::initializeThreading(); 41 39 -
trunk/Source/WTF/ChangeLog
r263529 r263575 1 2020-06-26 Geoffrey Garen <ggaren@apple.com> 2 3 Initializing the main thread should initialize the main run loop 4 https://bugs.webkit.org/show_bug.cgi?id=213637 5 6 Reviewed by Anders Carlsson. 7 8 Previously, some code initialized one, some the other, and some both; 9 and some code tried to initialize more than once; and some code tried 10 to initialize in ways that would crash but luckily got pre-empted by 11 other code that had already initialized. 12 13 In addition to general confusion, this setup made it subtly high stakes 14 to call certain functions, like callOnMainThread or 15 RunLoop::main().dispatch(), because they might crash if the right 16 initialization had not been performed. 17 18 Let's fix that. 19 20 * wtf/MainThread.cpp: 21 (WTF::initializeMainThread): Removed defunct comment about 22 initializeMainThreadToProcessMainThread. Shrank scope of initializeKey. 23 * wtf/RunLoop.cpp: 24 (WTF::RunLoop::initializeMain): Don't call initializeMainThread anymore 25 because it calls us now. No need for a store fence since we run on the 26 main thread and we don't store anything. 27 (WTF::RunLoop::initializeWeb): Upgrade to RELEASE_ASSERT. 28 * wtf/RunLoop.h: Removed incorrect comment. (Fascinating to wonder when 29 it became incorrect.) 30 1 31 2020-06-25 Sam Weinig <weinig@apple.com> 2 32 -
trunk/Source/WTF/wtf/MainThread.cpp
r263461 r263575 50 50 } 51 51 52 // Share this initializeKey with initializeMainThread and initializeMainThreadToProcessMainThread.53 static std::once_flag initializeKey;54 52 void initializeMainThread() 55 53 { 54 static std::once_flag initializeKey; 56 55 std::call_once(initializeKey, [] { 57 56 initializeThreading(); 58 57 initializeMainThreadPlatform(); 58 RunLoop::initializeMain(); 59 59 }); 60 60 } -
trunk/Source/WTF/wtf/RunLoop.cpp
r263524 r263575 55 55 void RunLoop::initializeMain() 56 56 { 57 if (s_mainRunLoop) 58 return; 59 initializeMainThread(); 60 WTF::storeStoreFence(); 57 RELEASE_ASSERT(!s_mainRunLoop); 61 58 s_mainRunLoop = &RunLoop::current(); 62 59 } … … 82 79 void RunLoop::initializeWeb() 83 80 { 81 RELEASE_ASSERT(!s_webRunLoop); 84 82 s_webRunLoop = &RunLoop::current(); 85 83 } -
trunk/Source/WTF/wtf/RunLoop.h
r263524 r263575 59 59 WTF_MAKE_NONCOPYABLE(RunLoop); 60 60 public: 61 // Must be called from the main thread (except for the Mac platform, where it 62 // can be called from any thread). 61 // Must be called from the main thread. 63 62 WTF_EXPORT_PRIVATE static void initializeMain(); 64 63 #if USE(WEB_THREAD) -
trunk/Source/WebCore/ChangeLog
r263573 r263575 1 2020-06-26 Geoffrey Garen <ggaren@apple.com> 2 3 Initializing the main thread should initialize the main run loop 4 https://bugs.webkit.org/show_bug.cgi?id=213637 5 6 Reviewed by Anders Carlsson. 7 8 * platform/ios/wak/WebCoreThread.mm: 9 (RunWebThread): Removed call to initializeMainThread() because the main 10 thread calls it before starting the web thread, so it's a no-op. (And if 11 it were an op, it would be broken.) 12 (StartWebThread): Merged RunLoop::initializeMain and initializeThreading 13 into initializeMainThread. 14 1 15 2020-06-26 Andres Gonzalez <andresg_22@apple.com> 2 16 -
trunk/Source/WebCore/platform/ios/wak/WebCoreThread.mm
r262878 r263575 585 585 FloatingPointEnvironment::singleton().propagateMainThreadEnvironment(); 586 586 587 // WTF::initialize MainThread() needs to be called before JSC::initializeThreading() since the587 // WTF::initializeWebThread() needs to be called before JSC::initializeThreading() since the 588 588 // code invoked by the latter needs to know if it's running on the WebThread. See 589 589 // <rdar://problem/8502487>. 590 WTF::initializeMainThread();591 590 WTF::initializeWebThread(); 592 591 JSC::initializeThreading(); … … 634 633 635 634 // ThreadGlobalData touches AtomString, which requires Threading initialization. 636 WTF::initialize Threading();635 WTF::initializeMainThread(); 637 636 638 637 // Initialize AtomString on the main thread. … … 643 642 WebCore::ThreadGlobalData& unused = WebCore::threadGlobalData(); 644 643 UNUSED_PARAM(unused); 645 646 RunLoop::initializeMain();647 644 648 645 // register class for WebThread deallocation -
trunk/Source/WebDriver/ChangeLog
r263422 r263575 1 2020-06-26 Geoffrey Garen <ggaren@apple.com> 2 3 Initializing the main thread should initialize the main run loop 4 https://bugs.webkit.org/show_bug.cgi?id=213637 5 6 Reviewed by Anders Carlsson. 7 8 * WebDriverService.cpp: 9 (WebDriver::WebDriverService::run): 10 1 11 2020-06-23 Chris Dumez <cdumez@apple.com> 2 12 -
trunk/Source/WebDriver/WebDriverService.cpp
r262878 r263575 97 97 } 98 98 99 RunLoop::initializeMain();99 WTF::initializeMainThread(); 100 100 101 101 if (!m_server.listen(host, port)) -
trunk/Source/WebKit/ChangeLog
r263570 r263575 1 2020-06-26 Geoffrey Garen <ggaren@apple.com> 2 3 Initializing the main thread should initialize the main run loop 4 https://bugs.webkit.org/show_bug.cgi?id=213637 5 6 Reviewed by Anders Carlsson. 7 8 * Shared/Cocoa/WebKit2InitializeCocoa.mm: 9 (WebKit::runInitializationCode): 10 (WebKit::InitializeWebKit2): 11 * Shared/WebKit2Initialize.cpp: 12 (WebKit::InitializeWebKit2): 13 1 14 2020-06-26 Chris Dumez <cdumez@apple.com> 2 15 -
trunk/Source/WebKit/Shared/Cocoa/WebKit2InitializeCocoa.mm
r263479 r263575 54 54 55 55 JSC::initializeThreading(); 56 RunLoop::initializeMain();56 WTF::initializeMainThread(); 57 57 58 58 WTF::RefCountedBase::enableThreadingChecksGlobally(); … … 66 66 void InitializeWebKit2() 67 67 { 68 // Make sure the initialization code is run only once and on the main thread since things like RunLoop::initializeMain()68 // Make sure the initialization code is run only once and on the main thread since things like initializeMainThread() 69 69 // are only safe to call on the main thread. 70 70 std::call_once(flag, [] { -
trunk/Source/WebKit/Shared/WebKit2Initialize.cpp
r262878 r263575 41 41 { 42 42 JSC::initializeThreading(); 43 RunLoop::initializeMain();43 WTF::initializeMainThread(); 44 44 AtomString::init(); 45 45 -
trunk/Source/WebKitLegacy/mac/ChangeLog
r263567 r263575 1 2020-06-26 Geoffrey Garen <ggaren@apple.com> 2 3 Initializing the main thread should initialize the main run loop 4 https://bugs.webkit.org/show_bug.cgi?id=213637 5 6 Reviewed by Anders Carlsson. 7 8 * History/WebBackForwardList.mm: 9 (+[WebBackForwardList initialize]): 10 * History/WebHistoryItem.mm: 11 (+[WebHistoryItem initialize]): 12 * Misc/WebCache.mm: 13 (+[WebCache initialize]): 14 * Misc/WebElementDictionary.mm: 15 (+[WebElementDictionary initialize]): 16 * Misc/WebIconDatabase.mm: 17 * Plugins/Hosted/WebHostedNetscapePluginView.mm: 18 (+[WebHostedNetscapePluginView initialize]): 19 * Plugins/WebBaseNetscapePluginView.mm: 20 * Plugins/WebBasePluginPackage.mm: 21 (+[WebBasePluginPackage initialize]): 22 * Plugins/WebNetscapePluginView.mm: 23 (+[WebNetscapePluginView initialize]): 24 * WebCoreSupport/WebEditorClient.mm: 25 (+[WebUndoStep initialize]): 26 * WebCoreSupport/WebFrameLoaderClient.mm: 27 (+[WebFramePolicyListener initialize]): 28 * WebView/WebArchive.mm: 29 (+[WebArchivePrivate initialize]): 30 * WebView/WebDataSource.mm: 31 (+[WebDataSource initialize]): 32 * WebView/WebHTMLView.mm: 33 (+[WebHTMLViewPrivate initialize]): 34 (+[WebHTMLView initialize]): 35 * WebView/WebPreferences.mm: 36 (+[WebPreferences initialize]): 37 * WebView/WebResource.mm: 38 (+[WebResourcePrivate initialize]): 39 * WebView/WebTextIterator.mm: 40 (+[WebTextIteratorPrivate initialize]): 41 * WebView/WebView.mm: 42 (+[WebView initialize]): 43 * WebView/WebViewData.mm: 44 (+[WebViewPrivate initialize]): 45 1 46 2020-06-26 Wenson Hsieh <wenson_hsieh@apple.com> 2 47 -
trunk/Source/WebKitLegacy/mac/History/WebBackForwardList.mm
r262878 r263575 100 100 #if !PLATFORM(IOS_FAMILY) 101 101 JSC::initializeThreading(); 102 RunLoop::initializeMain();102 WTF::initializeMainThread(); 103 103 #endif 104 104 } -
trunk/Source/WebKitLegacy/mac/History/WebHistoryItem.mm
r262878 r263575 127 127 #if !PLATFORM(IOS_FAMILY) 128 128 JSC::initializeThreading(); 129 RunLoop::initializeMain();129 WTF::initializeMainThread(); 130 130 #endif 131 131 } -
trunk/Source/WebKitLegacy/mac/Misc/WebCache.mm
r262878 r263575 65 65 #if !PLATFORM(IOS_FAMILY) 66 66 JSC::initializeThreading(); 67 RunLoop::initializeMain();67 WTF::initializeMainThread(); 68 68 #endif 69 69 } -
trunk/Source/WebKitLegacy/mac/Misc/WebElementDictionary.mm
r262878 r263575 69 69 #if !PLATFORM(IOS_FAMILY) 70 70 JSC::initializeThreading(); 71 RunLoop::initializeMain();71 WTF::initializeMainThread(); 72 72 #endif 73 73 } -
trunk/Source/WebKitLegacy/mac/Misc/WebIconDatabase.mm
r262878 r263575 99 99 { 100 100 JSC::initializeThreading(); 101 RunLoop::initializeMain();101 WTF::initializeMainThread(); 102 102 } 103 103 -
trunk/Source/WebKitLegacy/mac/Plugins/Hosted/WebHostedNetscapePluginView.mm
r262878 r263575 107 107 #if !PLATFORM(IOS_FAMILY) 108 108 JSC::initializeThreading(); 109 RunLoop::initializeMain();109 WTF::initializeMainThread(); 110 110 #endif 111 111 sendUserChangeNotifications(); -
trunk/Source/WebKitLegacy/mac/Plugins/WebBaseNetscapePluginView.mm
r262878 r263575 72 72 { 73 73 JSC::initializeThreading(); 74 RunLoop::initializeMain();74 WTF::initializeMainThread(); 75 75 WebKit::sendUserChangeNotifications(); 76 76 } -
trunk/Source/WebKitLegacy/mac/Plugins/WebBasePluginPackage.mm
r262878 r263575 61 61 #if !PLATFORM(IOS_FAMILY) 62 62 JSC::initializeThreading(); 63 RunLoop::initializeMain();63 WTF::initializeMainThread(); 64 64 #endif 65 65 } -
trunk/Source/WebKitLegacy/mac/Plugins/WebNetscapePluginView.mm
r262878 r263575 164 164 { 165 165 JSC::initializeThreading(); 166 RunLoop::initializeMain();166 WTF::initializeMainThread(); 167 167 sendUserChangeNotifications(); 168 168 } -
trunk/Source/WebKitLegacy/mac/WebCoreSupport/WebEditorClient.mm
r262878 r263575 140 140 #if !PLATFORM(IOS_FAMILY) 141 141 JSC::initializeThreading(); 142 RunLoop::initializeMain();142 WTF::initializeMainThread(); 143 143 #endif 144 144 } -
trunk/Source/WebKitLegacy/mac/WebCoreSupport/WebFrameLoaderClient.mm
r262878 r263575 2344 2344 #if !PLATFORM(IOS_FAMILY) 2345 2345 JSC::initializeThreading(); 2346 RunLoop::initializeMain();2346 WTF::initializeMainThread(); 2347 2347 #endif 2348 2348 } -
trunk/Source/WebKitLegacy/mac/WebView/WebArchive.mm
r262878 r263575 71 71 #if !PLATFORM(IOS_FAMILY) 72 72 JSC::initializeThreading(); 73 RunLoop::initializeMain();73 WTF::initializeMainThread(); 74 74 #endif 75 75 } -
trunk/Source/WebKitLegacy/mac/WebView/WebDataSource.mm
r262878 r263575 155 155 #if !PLATFORM(IOS_FAMILY) 156 156 JSC::initializeThreading(); 157 RunLoop::initializeMain();157 WTF::initializeMainThread(); 158 158 #endif 159 159 } -
trunk/Source/WebKitLegacy/mac/WebView/WebHTMLView.mm
r262878 r263575 1033 1033 1034 1034 JSC::initializeThreading(); 1035 RunLoop::initializeMain();1035 WTF::initializeMainThread(); 1036 1036 1037 1037 if (!oldSetCursorForMouseLocationIMP) { … … 2567 2567 2568 2568 JSC::initializeThreading(); 2569 RunLoop::initializeMain();2569 WTF::initializeMainThread(); 2570 2570 } 2571 2571 -
trunk/Source/WebKitLegacy/mac/WebView/WebPreferences.mm
r263198 r263575 389 389 #if !PLATFORM(IOS_FAMILY) 390 390 JSC::initializeThreading(); 391 RunLoop::initializeMain();391 WTF::initializeMainThread(); 392 392 bool attachmentElementEnabled = MacApplication::isAppleMail(); 393 393 bool webSQLEnabled = false; -
trunk/Source/WebKitLegacy/mac/WebView/WebResource.mm
r262878 r263575 69 69 #if !PLATFORM(IOS_FAMILY) 70 70 JSC::initializeThreading(); 71 RunLoop::initializeMain();71 WTF::initializeMainThread(); 72 72 #endif 73 73 } -
trunk/Source/WebKitLegacy/mac/WebView/WebTextIterator.mm
r262878 r263575 49 49 #if !PLATFORM(IOS_FAMILY) 50 50 JSC::initializeThreading(); 51 RunLoop::initializeMain();51 WTF::initializeMainThread(); 52 52 #endif 53 53 } -
trunk/Source/WebKitLegacy/mac/WebView/WebView.mm
r263567 r263575 5559 5559 #if !PLATFORM(IOS_FAMILY) 5560 5560 JSC::initializeThreading(); 5561 RunLoop::initializeMain();5561 WTF::initializeMainThread(); 5562 5562 #endif 5563 5563 -
trunk/Source/WebKitLegacy/mac/WebView/WebViewData.mm
r262878 r263575 169 169 #if !PLATFORM(IOS_FAMILY) 170 170 JSC::initializeThreading(); 171 RunLoop::initializeMain();171 WTF::initializeMainThread(); 172 172 #endif 173 173 } -
trunk/Source/WebKitLegacy/win/ChangeLog
r263270 r263575 1 2020-06-26 Geoffrey Garen <ggaren@apple.com> 2 3 Initializing the main thread should initialize the main run loop 4 https://bugs.webkit.org/show_bug.cgi?id=213637 5 6 Reviewed by Anders Carlsson. 7 8 * WebView.cpp: 9 (WebView::WebView): 10 1 11 2020-06-19 Chris Dumez <cdumez@apple.com> 2 12 -
trunk/Source/WebKitLegacy/win/WebView.cpp
r263270 r263575 422 422 { 423 423 JSC::initializeThreading(); 424 RunLoop::initializeMain();424 WTF::initializeMainThread(); 425 425 WTF::setProcessPrivileges(allPrivileges()); 426 426 WebCore::NetworkStorageSession::permitProcessToUseCookieAPI(true); -
trunk/Tools/ChangeLog
r263569 r263575 1 2020-06-26 Geoffrey Garen <ggaren@apple.com> 2 3 Initializing the main thread should initialize the main run loop 4 https://bugs.webkit.org/show_bug.cgi?id=213637 5 6 Reviewed by Anders Carlsson. 7 8 Updated TestWebKitAPI to stop using RunLoop::initializeMain directly. 9 10 * TestWebKitAPI/Tests/WTF/RefPtr.cpp: 11 (TestWebKitAPI::TEST): 12 * TestWebKitAPI/Tests/WTF/RunLoop.cpp: 13 (TestWebKitAPI::TEST): 14 * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: 15 (TestWebKitAPI::TEST): 16 * TestWebKitAPI/Tests/WebCore/ApplicationManifestParser.cpp: 17 (ApplicationManifestParserTest::SetUp): 18 * TestWebKitAPI/Tests/WebCore/ComplexTextController.cpp: 19 (TestWebKitAPI::ComplexTextControllerTest::SetUp): 20 * TestWebKitAPI/Tests/WebCore/ContentExtensions.cpp: 21 (TestWebKitAPI::ContentExtensionTest::SetUp): 22 * TestWebKitAPI/Tests/WebCore/DNS.cpp: 23 (TestWebKitAPI::TEST): 24 * TestWebKitAPI/Tests/WebCore/FileMonitor.cpp: 25 (TestWebKitAPI::TEST_F): 26 * TestWebKitAPI/Tests/WebKitCocoa/InAppBrowserPrivacy.mm: 27 (initializeInAppBrowserPrivacyTestSettings): 28 * TestWebKitAPI/TestsController.cpp: 29 (TestWebKitAPI::TestsController::TestsController): 30 * WebKitTestRunner/TestController.cpp: 31 (TestController::initialize): 32 1 33 2020-06-26 Jonathan Bedard <jbedard@apple.com> 2 34 -
trunk/Tools/TestWebKitAPI/Tests/WTF/RefPtr.cpp
r262878 r263575 586 586 TEST(WTF_RefPtr, ReleaseInNonMainThreadDestroyInMainThread) 587 587 { 588 RunLoop::initializeMain();588 WTF::initializeMainThread(); 589 589 done = false; 590 590 Thread::create("", [object = MainThreadSafeRefCountedObject::create()] { }); -
trunk/Tools/TestWebKitAPI/Tests/WTF/RunLoop.cpp
r262878 r263575 37 37 TEST(WTF_RunLoop, Deadlock) 38 38 { 39 RunLoop::initializeMain();39 WTF::initializeMainThread(); 40 40 41 41 struct DispatchFromDestructorTester { … … 77 77 TEST(WTF_RunLoop, OneShotTimer) 78 78 { 79 RunLoop::initializeMain();79 WTF::initializeMainThread(); 80 80 81 81 bool testFinished = false; … … 109 109 TEST(WTF_RunLoop, RepeatingTimer) 110 110 { 111 RunLoop::initializeMain();111 WTF::initializeMainThread(); 112 112 113 113 bool testFinished = false; -
trunk/Tools/TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp
r262878 r263575 40 40 bool testFinished { false }; 41 41 int currentStep { 0 }; 42 RunLoop::initializeMain();42 WTF::initializeMainThread(); 43 43 44 44 auto backgroundThreadFunction = [&]() { … … 102 102 bool destructedResponseFlag { false }; 103 103 int currentStep { 0 }; 104 RunLoop::initializeMain();104 WTF::initializeMainThread(); 105 105 106 106 auto backgroundThreadFunction = [&]() { … … 184 184 AbortableTaskQueue taskQueue; 185 185 bool testFinished { false }; 186 RunLoop::initializeMain();186 WTF::initializeMainThread(); 187 187 188 188 auto backgroundThreadFunction = [&]() { … … 241 241 AbortableTaskQueue taskQueue; 242 242 bool testFinished { false }; 243 RunLoop::initializeMain();243 WTF::initializeMainThread(); 244 244 245 245 auto backgroundThreadFunction = [&]() { … … 278 278 int currentStep { 0 }; 279 279 bool destructedResponseFlag { false }; 280 RunLoop::initializeMain();280 WTF::initializeMainThread(); 281 281 282 282 auto backgroundThreadFunction = [&]() { -
trunk/Tools/TestWebKitAPI/Tests/WebCore/ApplicationManifestParser.cpp
r262878 r263575 58 58 { 59 59 JSC::initializeThreading(); 60 RunLoop::initializeMain();60 WTF::initializeMainThread(); 61 61 62 62 m_manifestURL = { { }, "https://example.com/manifest.json" }; -
trunk/Tools/TestWebKitAPI/Tests/WebCore/ComplexTextController.cpp
r262878 r263575 41 41 { 42 42 JSC::initializeThreading(); 43 RunLoop::initializeMain();43 WTF::initializeMainThread(); 44 44 } 45 45 }; -
trunk/Tools/TestWebKitAPI/Tests/WebCore/ContentExtensions.cpp
r262878 r263575 77 77 { 78 78 JSC::initializeThreading(); 79 RunLoop::initializeMain();79 WTF::initializeMainThread(); 80 80 } 81 81 }; -
trunk/Tools/TestWebKitAPI/Tests/WebCore/DNS.cpp
r262878 r263575 42 42 TEST(DNSTest, cancelResolveDNS) 43 43 { 44 RunLoop::initializeMain();44 WTF::initializeMainThread(); 45 45 46 46 const String hostname = String("www.webkit.org"); … … 64 64 TEST(DNSTest, cannotResolveDNS) 65 65 { 66 RunLoop::initializeMain();66 WTF::initializeMainThread(); 67 67 68 68 const String hostname = String("notavaliddomain.notavaliddomain"); … … 85 85 TEST(DNSTest, resolveDNS) 86 86 { 87 RunLoop::initializeMain();87 WTF::initializeMainThread(); 88 88 89 89 const String hostname = String("www.webkit.org"); -
trunk/Tools/TestWebKitAPI/Tests/WebCore/FileMonitor.cpp
r262878 r263575 53 53 void SetUp() override 54 54 { 55 RunLoop::initializeMain();55 WTF::initializeMainThread(); 56 56 57 57 // create temp file … … 145 145 EXPECT_TRUE(FileSystem::fileExists(tempFilePath())); 146 146 147 RunLoop::initializeMain();147 WTF::initializeMainThread(); 148 148 149 149 auto testQueue = WorkQueue::create("Test Work Queue"); … … 187 187 EXPECT_TRUE(FileSystem::fileExists(tempFilePath())); 188 188 189 RunLoop::initializeMain();189 WTF::initializeMainThread(); 190 190 191 191 auto testQueue = WorkQueue::create("Test Work Queue"); … … 247 247 EXPECT_TRUE(FileSystem::fileExists(tempFilePath())); 248 248 249 RunLoop::initializeMain();249 WTF::initializeMainThread(); 250 250 251 251 auto testQueue = WorkQueue::create("Test Work Queue"); … … 286 286 EXPECT_TRUE(FileSystem::fileExists(tempFilePath())); 287 287 288 RunLoop::initializeMain();288 WTF::initializeMainThread(); 289 289 290 290 auto testQueue = WorkQueue::create("Test Work Queue"); … … 343 343 EXPECT_TRUE(FileSystem::fileExists(tempFilePath())); 344 344 345 RunLoop::initializeMain();345 WTF::initializeMainThread(); 346 346 347 347 auto testQueue = WorkQueue::create("Test Work Queue"); -
trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/InAppBrowserPrivacy.mm
r262878 r263575 125 125 static void initializeInAppBrowserPrivacyTestSettings() 126 126 { 127 RunLoop::initializeMain();127 WTF::initializeMainThread(); 128 128 WebCore::clearApplicationBundleIdentifierTestingOverride(); 129 129 IN_APP_BROWSER_PRIVACY_ADDITIONS -
trunk/Tools/TestWebKitAPI/TestsController.cpp
r255695 r263575 75 75 // We should make sure that all objects tested either initialize threading or inherit from 76 76 // ThreadSafeRefCounted so that we don't have to initialize threading at all here. 77 WTF::initializeThreading();78 77 WTF::initializeMainThread(); 79 78 WTF::setProcessPrivileges(allPrivileges()); -
trunk/Tools/WebKitTestRunner/TestController.cpp
r263228 r263575 446 446 447 447 JSC::initializeThreading(); 448 RunLoop::initializeMain();448 WTF::initializeMainThread(); 449 449 WTF::setProcessPrivileges(allPrivileges()); 450 450
Note: See TracChangeset
for help on using the changeset viewer.