Changeset 250119 in webkit
- Timestamp:
- Sep 19, 2019 8:51:38 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r250111 r250119 1 2019-09-19 Brent Fulgham <bfulgham@apple.com> 2 3 [FTW, WinCairo] Support running tests in Release mode 4 https://bugs.webkit.org/show_bug.cgi?id=202021 5 6 Reviewed by Don Olmstead. 7 8 In Bug 201597, we added new features to better lock down JSC features in the 9 potentially untrusted WebContent process. 10 11 Unfortunately, this change included XPC Dictionary items used at startup to 12 lock down JSC features before entering the main execution of the process. These 13 changes were not done for the WinCairo or FTW ports. 14 15 We need to pass the state of the JIT and whether to enable certain JSC features 16 at process launch. Since the XPC mechanisms we use on macOS and iOS do not exist 17 on Windows, I am implementing them as command-line flags. 18 19 -configure-jsc-for-testing: Sets the JSC in testing mode. 20 -disable-jit: Disables the JIT. 21 22 See r249808 for the equivalent changes on macOS and iOS. 23 24 * PlatformFTW.cmake: Add some missing header files needed when building tests. 25 * Shared/win/AuxiliaryProcessMainWin.cpp: 26 (WebKit::AuxiliaryProcessMainBase::parseCommandLine): 27 * UIProcess/Launcher/win/ProcessLauncherWin.cpp: 28 (WebKit::ProcessLauncher::launchProcess): 29 1 30 2019-09-19 Chris Dumez <cdumez@apple.com> 2 31 -
trunk/Source/WebKit/PlatformFTW.cmake
r249778 r250119 263 263 UIProcess/API/C/WKGeolocationPermissionRequest.h 264 264 UIProcess/API/C/WKGeolocationPosition.h 265 UIProcess/API/C/WKHTTPCookieStoreRef.h 265 266 UIProcess/API/C/WKHitTestResult.h 266 267 UIProcess/API/C/WKIconDatabase.h … … 294 295 UIProcess/API/C/WKPagePolicyClient.h 295 296 UIProcess/API/C/WKPagePrivate.h 297 UIProcess/API/C/WKPageRenderingProgressEvents.h 296 298 UIProcess/API/C/WKPageStateClient.h 297 UIProcess/API/C/WKPageRenderingProgressEvents.h298 299 UIProcess/API/C/WKPageUIClient.h 299 300 UIProcess/API/C/WKPluginLoadPolicy.h … … 313 314 UIProcess/API/C/WKUserScriptRef.h 314 315 UIProcess/API/C/WKViewportAttributes.h 316 UIProcess/API/C/WKWebsiteDataStoreConfigurationRef.h 315 317 UIProcess/API/C/WKWebsiteDataStoreRef.h 316 318 UIProcess/API/C/WKWebsitePolicies.h -
trunk/Source/WebKit/Shared/win/AuxiliaryProcessMainWin.cpp
r240683 r250119 27 27 #include "AuxiliaryProcessMain.h" 28 28 29 #include <JavaScriptCore/ExecutableAllocator.h> 29 30 #include <cstring> 30 31 #include <wtf/text/WTFString.h> … … 41 42 String str(argv[++i]); 42 43 m_parameters.processIdentifier = makeObjectIdentifier<WebCore::ProcessIdentifierType>(str.toUInt64()); 43 } 44 } else if (!strcmp(argv[i], "-configure-jsc-for-testing")) 45 JSC::Config::configureForTesting(); 46 else if (!strcmp(argv[i], "-disable-jit")) 47 JSC::ExecutableAllocator::setJITEnabled(false); 44 48 } 45 49 return true; -
trunk/Source/WebKit/UIProcess/Launcher/win/ProcessLauncherWin.cpp
r242842 r250119 83 83 commandLineBuilder.append(" -clientIdentifier "); 84 84 commandLineBuilder.append(String::number(reinterpret_cast<uintptr_t>(clientIdentifier))); 85 if (m_client->shouldConfigureJSCForTesting()) 86 commandLineBuilder.append(" -configure-jsc-for-testing"); 87 if (!m_client->isJITEnabled()) 88 commandLineBuilder.append(" -disable-jit"); 85 89 commandLineBuilder.append('\0'); 86 90
Note: See TracChangeset
for help on using the changeset viewer.