Backed out changeset b8e5000be021 (bug 1795067) for causing bc failures on browser_to_handle_telemetry.j CLOSED TREE

This commit is contained in:
pstanciu 2024-03-04 20:21:36 +02:00
Родитель 3d447e5431
Коммит 172e503b01
3 изменённых файлов: 2 добавлений и 25 удалений

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

@ -16,7 +16,7 @@ support-files = [
["browser_pdfjs_not_subject_to_csp.js"] ["browser_pdfjs_not_subject_to_csp.js"]
support-files = [ support-files = [
"empty.pdf", "dummy.pdf",
"file_pdfjs_not_subject_to_csp.html", "file_pdfjs_not_subject_to_csp.html",
] ]

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

@ -1,23 +0,0 @@
%PDF-1.4
1 0 obj <</Type /Catalog /Pages 2 0 R>>
endobj
2 0 obj <</Type /Pages /Kids [3 0 R] /Count 1>>
endobj
3 0 obj<</Type /Page /Parent 2 0 R /MediaBox [0 0 3 3] /Contents 4 0 R>>
endobj
4 0 obj
<</Length 0>>
stream
endstream
endobj
xref
0 5
0000000000 65535 f
0000000009 00000 n
0000000056 00000 n
0000000111 00000 n
0000000191 00000 n
trailer <</Size 5/Root 1 0 R>>
startxref
237
%%EOF

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

@ -8,7 +8,7 @@
<button id="pdfButton">click to load pdf</button> <button id="pdfButton">click to load pdf</button>
<script nonce="allowPDF"> <script nonce="allowPDF">
async function loadPDFIntoIframe() { async function loadPDFIntoIframe() {
let response = await fetch("empty.pdf"); let response = await fetch("dummy.pdf");
let blob = await response.blob(); let blob = await response.blob();
var blobUrl = URL.createObjectURL(blob); var blobUrl = URL.createObjectURL(blob);
var pdfFrame = document.getElementById("pdfFrame"); var pdfFrame = document.getElementById("pdfFrame");