Bug 1771487 - Ensure iframes in the screenshots UI are transparent after bug 1738380. r=Gijs

While at it, also ensure they have standards mode and utf-8 charset.

Differential Revision: https://phabricator.services.mozilla.com/D147513
This commit is contained in:
Emilio Cobos Álvarez 2022-05-30 14:56:06 +00:00
Родитель 1f108c2a9a
Коммит b32cc07363
2 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -1,5 +1,8 @@
<!doctype html>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this file,
- You can obtain one at http://mozilla.org/MPL/2.0/. -->
<html></html>
<meta charset="utf-8">
<meta name="color-scheme" content="light dark">

Просмотреть файл

@ -101,6 +101,7 @@ this.ui = (function() {
// eslint-disable-next-line no-unsanitized/property
this.document.documentElement.innerHTML = `
<head>
<meta name="color-scheme" content="light dark">
<style>${substitutedCss}</style>
<title></title>
</head>
@ -255,6 +256,7 @@ this.ui = (function() {
this.document.documentElement.innerHTML = `
<head>
<link rel="localization" href="browser/screenshots.ftl">
<meta name="color-scheme" content="light dark">
<style>${substitutedCss}</style>
<title></title>
</head>
@ -397,6 +399,7 @@ this.ui = (function() {
this.document.documentElement.innerHTML = `
<head>
<link rel="localization" href="browser/screenshots.ftl">
<meta name="color-scheme" content="light dark">
<style>${substitutedCss}</style>
<title></title>
</head>