Skip to content

Commit 8c3610a

Browse files
freshp86Chromium LUCI CQ
authored and
Chromium LUCI CQ
committed
Fix runtime error thrown in chrome://interstitials/origin_policy.
Fixed: 1225573 Change-Id: I3c295b5edd4795a98cc9508668df2fbc668a3596 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3000839 Commit-Queue: Mustafa Emre Acer <meacer@chromium.org> Auto-Submit: dpapad <dpapad@chromium.org> Reviewed-by: Mustafa Emre Acer <meacer@chromium.org> Cr-Commit-Position: refs/heads/master@{#897875}
1 parent dae707b commit 8c3610a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

components/security_interstitials/core/browser/resources/interstitial_large.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,10 @@ function setupEvents() {
8282

8383
if (ssl || originPolicy || blockedInterception || legacyTls) {
8484
$('body').classList.add(badClock ? 'bad-clock' : 'ssl');
85-
$('error-code').textContent = loadTimeData.getString('errorCode');
86-
$('error-code').classList.remove(HIDDEN_CLASS);
85+
if (loadTimeData.valueExists('errorCode')) {
86+
$('error-code').textContent = loadTimeData.getString('errorCode');
87+
$('error-code').classList.remove(HIDDEN_CLASS);
88+
}
8789
} else if (captivePortal) {
8890
$('body').classList.add('captive-portal');
8991
} else if (billing) {

0 commit comments

Comments
 (0)