-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[118 Merge] Fix warning dialog when updating on metered connection
As evident in the feedback reports in the bug, devices that are on a metered connection (cellular, tether) are unable to update. In this case, a warning dialog should show which prompts the user to consent to downloading the update over their metered connection. However, that warning dialog was not showing due to a misuse of innerHTML and resulted in the device unable to update as long as they were on the metered connection. This CL avoids using innerHTML, the source of the error, altogether and uses a plain element property instead for displaying the warning message. Dialog: http://screen/BiP7p4qLNCUvj7P.png (cherry picked from commit a7309a5) Bug: b:304807561 Test: browser_tests --gtest_filter="OSSettingsAboutPage*" Change-Id: Ic2dc27ad8263a16739b811854ea3529d6143a50d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4932690 Reviewed-by: Xiaohui Chen <xiaohuic@chromium.org> Reviewed-by: Wes Okuhara <wesokuhara@google.com> Commit-Queue: Wes Okuhara <wesokuhara@google.com> Cr-Original-Commit-Position: refs/heads/main@{#1209051} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4936767 Cr-Commit-Position: refs/branch-heads/5993@{#1266} Cr-Branched-From: 5113507-refs/heads/main@{#1192594}
- Loading branch information
Wes Okuhara
authored and
Chromium LUCI CQ
committed
Oct 13, 2023
1 parent
f739555
commit c761b6c
Showing
3 changed files
with
37 additions
and
20 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
chrome/browser/resources/ash/settings/os_about_page/update_warning_dialog.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters