Commit 45ba3bb9 authored by Roman Sorokin's avatar Roman Sorokin Committed by Commit Bot

OOBE EULA: Override fonts on the page.

Bug: 1057957
Change-Id: I782b98b4703d585eec99eb06fb1ea8a9f3dfb9b6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2102540Reviewed-by: default avatarDenis Kuznetsov [CET] <antrim@chromium.org>
Commit-Queue: Roman Sorokin [CET] <rsorokin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#755437}
parent d94c7c50
......@@ -19,6 +19,16 @@ login.createScreen('EulaScreen', 'eula', function() {
'}'
};
const EULA_FONTS_CSS = {
code: `body * {
font-family: Roboto, sans-serif !important;
font-size: 13px !important;
line-height: 20px !important;}
body h2 {
font-size: 15px !important;
line-height: 22px !important;}`
};
/**
* Timeout to load online Eula.
* @type {number}
......@@ -74,6 +84,9 @@ login.createScreen('EulaScreen', 'eula', function() {
webview.executeScript(CLEAR_ANCHORS_CONTENT_SCRIPT);
});
}
webview.addEventListener('contentload', () => {
webview.insertCSS(EULA_FONTS_CSS);
});
// Monitor webRequests API events
this.webview_.request.onCompleted.addListener(
......
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