-
Notifications
You must be signed in to change notification settings - Fork 885
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use different key name for brave channel name in MacOS #2634
Conversation
After recent chromium bumping, KSChannelID is disappeared. This is strange because we add that key by `brave_app_plist`. I suspect chromium code could remove that key from Info.plist because we use same key name with chrome's KeystoneRegistraion and `chrome_app_plist` target has code that removes that key from Info.plist. In theory, I think `chrome_app_plist` could not remove it because `chrome_app_list` is evaluated first and then `brave_app_plist` is evaluated. This PR is workaround by using another key name.
Tested with dmg from this PR's workspace(https://staging.ci.brave.com/job/brave-browser-build-pr/job/brave_channel_id_macos/1/execution/node/60/ws/src/out/Release/unsigned_dmg/Brave%20Browser%20Nightly.dmg) and it displays |
@simonhong, I wonder if this is related to In which is why in the new signing script I patched it out: |
@mkarolin I think I found one place that can remove However, still curious because above unsigned dmg I downloaded from CI also doesn't have |
@simonhong, you are correct, @bsclifton and I have been looking into I have been looking into |
Do you agree using our own key name is more safer to avoid conflicting with chromium's? |
This is interesting and the fix looks good- |
@bsclifton This is not related with Windows. only changed bundle's Info.plist. |
I think it's fine since there are references in the code that only "keystone enabled" builds should have KS channel and they seem to be putting all related code under I also verified that @property def distributions(self): return [model.Distribution("channel_name")] to keep KSChannelD. |
@mkarolin ah - nice to know the root cause 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 😄
Many thanks for checking this together @bsclifton @mkarolin !! |
Thanks for figuring it all out, @simonhong. Great insight! |
@simonhong as you mentioned yesterday, I think we'll need to uplift back to release channel - can you create those? 😄 |
@bsclifton Done. sir! |
This change is not correct and breaks crash reporting because all channels will be reported as release. I'm working on a fix right now to go back to KSChannelID |
After recent chromium bumping, KSChannelID is disappeared.
This is strange because we add that key by
brave_app_plist
.I suspect chromium code could remove that key from Info.plist because
we use same key name with chrome's
KeystoneRegistration.framework
andchrome_app_plist
target has code that removes that key from Info.plist.
In theory, I think
chrome_app_plist
could not remove it becausechrome_app_list
is evaluated first and then
brave_app_plist
is evaluated.This PR is workaround by using another key name and I think using different key name is more safer.
Fix brave/brave-browser#4753
Submitter Checklist:
npm test brave_unit_tests && npm test brave_browser_tests && npm run test-security
) onnpm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist:
After-merge Checklist:
changes has landed on.