Commit b6073a3
committed
[Cocoa] Push applicationSDKVersion() down from WebCore into WTF
https://bugs.webkit.org/show_bug.cgi?id=209030
Reviewed by Simon Fraser.
Source/JavaScriptCore:
dyld_get_program_sdk_version() gives you the wrong answer in the Web Process (or at least
not the answer you actually want). There are already facilities for the UI Process to tell
the Web Process what the real value is, but those functions are currently in WebCore,
which is inaccessible to WTF. This patch is in preparation for
https://bugs.webkit.org/show_bug.cgi?id=208969 which needs to know this information in WTF.
I also found a few places which were calling dyld_get_program_sdk_version() in JavaScriptCore
and WebCore (which is wrong because those libraries exist in the Web Process), and have fixed
them up to use applicationSDKVersion() instead.
* API/JSWrapperMap.mm:
(supportsInitMethodConstructors):
Source/WebCore:
* html/HTMLObjectElement.cpp:
* html/MediaElementSession.cpp:
(WebCore::MediaElementSession::requiresFullscreenForVideoPlayback const):
* loader/DocumentThreadableLoader.cpp:
(WebCore::DocumentThreadableLoader::makeCrossOriginAccessRequest):
* platform/RuntimeApplicationChecks.h:
* platform/Timer.cpp:
(WebCore::shouldSuppressThreadSafetyCheck):
* platform/cocoa/RuntimeApplicationChecksCocoa.mm:
(WebCore::applicationSDKVersionOverride): Deleted.
(WebCore::setApplicationSDKVersion): Deleted.
(WebCore::applicationSDKVersion): Deleted.
Source/WebKit:
* NetworkProcess/cocoa/NetworkProcessCocoa.mm:
(WebKit::NetworkProcess::platformInitializeNetworkProcessCocoa):
* Shared/WebPreferencesDefaultValues.cpp:
(WebKit::defaultCSSOMViewScrollingAPIEnabled):
* WebProcess/cocoa/WebProcessCocoa.mm:
(WebKit::WebProcess::platformInitializeWebProcess):
Source/WTF:
* WTF.xcodeproj/project.pbxproj:
* wtf/PlatformMac.cmake:
* wtf/cocoa/RuntimeApplicationChecksCocoa.cpp: Added.
* wtf/cocoa/RuntimeApplicationChecksCocoa.h: Added.
(WTF::applicationSDKVersionOverride):
(WTF::setApplicationSDKVersion):
(WTF::applicationSDKVersion):
Canonical link: https://commits.webkit.org/221992@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@258447 268f45cc-cd09-0410-ab3c-d52691b4dbfc1 parent 0ea0d01 commit b6073a3Copy full SHA for b6073a3
18 files changed
+188-36Lines changed: 188 additions & 36 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- Source
- JavaScriptCore
- API
- WTF
- WTF.xcodeproj
- wtf
- cocoa
- WebCore
- html
- loader
- platform
- cocoa
- WebKit
- NetworkProcess/cocoa
- WebProcess/cocoa
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Source/JavaScriptCore/API/JSWrapperMap.mm
Copy file name to clipboardExpand all lines: Source/JavaScriptCore/API/JSWrapperMap.mm+5-2Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
40 | 40 | |
41 | 41 | |
42 | 42 | |
43 | | - |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
44 | 47 | |
45 | 48 | |
46 | 49 | |
| ||
720 | 723 | |
721 | 724 | |
722 | 725 | |
723 | | - |
| 726 | + |
724 | 727 | |
725 | 728 | |
726 | 729 | |
|
Collapse file
Source/JavaScriptCore/ChangeLog
Copy file name to clipboardExpand all lines: Source/JavaScriptCore/ChangeLog+20Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
1 | 21 | |
2 | 22 | |
3 | 23 | |
|
Collapse file
+15Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
1 | 16 | |
2 | 17 | |
3 | 18 | |
|
Collapse file
Source/WTF/WTF.xcodeproj/project.pbxproj
Copy file name to clipboardExpand all lines: Source/WTF/WTF.xcodeproj/project.pbxproj+6Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
61 | 61 | |
62 | 62 | |
63 | 63 | |
| 64 | + |
64 | 65 | |
65 | 66 | |
66 | 67 | |
| ||
344 | 345 | |
345 | 346 | |
346 | 347 | |
| 348 | + |
| 349 | + |
347 | 350 | |
348 | 351 | |
349 | 352 | |
| ||
1516 | 1519 | |
1517 | 1520 | |
1518 | 1521 | |
| 1522 | + |
| 1523 | + |
1519 | 1524 | |
1520 | 1525 | |
1521 | 1526 | |
| ||
1699 | 1704 | |
1700 | 1705 | |
1701 | 1706 | |
| 1707 | + |
1702 | 1708 | |
1703 | 1709 | |
1704 | 1710 | |
|
Collapse file
Source/WTF/wtf/PlatformMac.cmake
Copy file name to clipboardExpand all lines: Source/WTF/wtf/PlatformMac.cmake+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
16 | 16 | |
17 | 17 | |
18 | 18 | |
| 19 | + |
19 | 20 | |
20 | 21 | |
21 | 22 | |
| ||
65 | 66 | |
66 | 67 | |
67 | 68 | |
| 69 | + |
68 | 70 | |
69 | 71 | |
70 | 72 | |
|
Collapse file
Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.cpp
Copy file name to clipboard+52Lines changed: 52 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
Collapse file
Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.h
Copy file name to clipboard+43Lines changed: 43 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
Collapse file
+20Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
1 | 21 | |
2 | 22 | |
3 | 23 | |
|
Collapse file
Source/WebCore/html/HTMLObjectElement.cpp
Copy file name to clipboardExpand all lines: Source/WebCore/html/HTMLObjectElement.cpp-1Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
54 | 54 | |
55 | 55 | |
56 | 56 | |
57 | | - |
58 | 57 | |
59 | 58 | |
60 | 59 | |
|
Collapse file
Source/WebCore/html/MediaElementSession.cpp
Copy file name to clipboardExpand all lines: Source/WebCore/html/MediaElementSession.cpp+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
54 | 54 | |
55 | 55 | |
56 | 56 | |
57 | | - |
| 57 | + |
58 | 58 | |
59 | 59 | |
60 | 60 | |
| ||
738 | 738 | |
739 | 739 | |
740 | 740 | |
741 | | - |
| 741 | + |
742 | 742 | |
743 | 743 | |
744 | 744 | |
|
0 commit comments