-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Software Update dialog on macOS displays raw HTML in the Release Notes box #9274
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
Comments
@robyoder interesting- I don't think it's supposed to be showing updates like this. The regular expected behavior will happen if you uninstall brave and reinstall from https://brave.com/downloads. I'm guessing you've been using Brave for a while- we likely fixed the bug that caused this modal to show for updates 😄 Let me know if you're able to try remove/install. You won't lose any profile data by doing that - but in case you wanted to back up your profile, it's at |
Given that I can't test the updater immediately if I download the latest version, I did the following:
This window appeared: It sounds like you are expecting the updates to happen automatically without any window at all, similar to Chrome's updates. Perhaps this could be related to the fact that I don't run as an administrator account on macOS? But Chrome is able to autoupdate itself without problems, so it has to be possible. |
Interesting- thanks for sharing, @robyoder 😄 This may indeed be because you're not running as Admin. We'll need to do more debugging If this is an expected case, maybe we can clean up the text, as you suggest 😄 |
There are 2 separate issues being discussed here I believe. The original issue was opened because there was raw html in the popup. The second is regarding the fact that the user is presented with a popup window in order to update Brave, which should be tracked separately. I've opened issue #9562 to track this second issue. Regarding the raw html, that comes directly from the upload to the updates server, we pass in the content and I assumed it would render html. It obviously does not, so we can try to fix that. |
Looking into this a bit more, Sparkle indicates that they pass the Release Notes string to a webview. So it should be able to format HTML. The release_notes field in omaha-server on the other hand stores the release notes as a Django models.TextField, but if that is passed to Sparkle as a string the webview should render it. Unfortunately Sparkle does not render the URL properly. I've tested this with HTML and plain text and neither appear to cause the URL to be rendered as a link. The workaround may be to remove the @simonhong do you have any ideas about how we can make this string behave as a hyperlink? |
Fixed with brave/brave-core#5519 |
Verification PASSED on
Verification PASSED on
|
Test plan
Original issue description
Tried searching for: changelog, release notes, HTML, updater, macos
Description
Automatic updates for Brave on macOS have raw HTML displayed in the release notes box, and it's been this way as long as I can remember. I assumed it was an oversight and would be fixed eventually but it hasn't been yet.
Steps to Reproduce
Actual result:
Expected result:
That the HTML would be rendered, not displayed raw.
Reproduces how often:
Easily reproduced
Brave version (brave://version info)
80.1.5.123
Version/Channel Information:
Other Additional Information:
The text was updated successfully, but these errors were encountered: