Commit 10b08559 authored by Avi Drissman's avatar Avi Drissman Committed by Commit Bot

Set SYSTEM_VERSION_COMPAT in LSEnvironment

macOS Big Sur lies about its version number to apps
built with SDKs earlier than the 11.0 SDK. We already
have code (daad98ce)
to undo that lie for version functions that return
numbers, but the version functions that return a
human-readable string were still lying.

Set SYSTEM_VERSION_COMPAT to fix the lie of that
string.

SYSTEM_VERSION_COMPAT alone is not adequate; it has
no effect on tests that do not share that Info.plist
and that we do not go through the trouble of giving
Info.plists because they are not bundled. But at
least for the Chromium app launched by Launch Services
we can improve system version number display.

Fixed: 1141569
Bug: 1108832
Change-Id: If064037bbb27ad42198bdebaf687e90e526e8751
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2495266
Commit-Queue: Avi Drissman <avi@chromium.org>
Reviewed-by: default avatarMark Mentovai <mark@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#820309}
parent 8e21b47a
...@@ -235,6 +235,8 @@ ...@@ -235,6 +235,8 @@
<dict> <dict>
<key>MallocNanoZone</key> <key>MallocNanoZone</key>
<string>0</string> <string>0</string>
<key>SYSTEM_VERSION_COMPAT</key>
<string>0</string>
</dict> </dict>
<key>LSFileQuarantineEnabled</key> <key>LSFileQuarantineEnabled</key>
<true/> <true/>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment