mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-28 13:40:17 -10:00
The combination of "match_about_blank": true and "run_at": "document_start" can potentially cause content scripts to run twice for the same document, once for the intermediate about:blank document created by the document.open() call, and again for the same document with its final URL after it's been fully setup. This test ensures that that behavior doesn't regress. MozReview-Commit-ID: 9XSfW3rEL4f
22 lines
410 B
HTML
22 lines
410 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
</head>
|
|
<body>
|
|
|
|
<iframe id="iframe"></iframe>
|
|
|
|
<script type="text/javascript">
|
|
"use strict";
|
|
addEventListener("load", () => {
|
|
let iframe = document.getElementById("iframe");
|
|
let doc = iframe.contentDocument;
|
|
doc.open("text/html");
|
|
doc.write("Hello.");
|
|
doc.close();
|
|
}, {once: true});
|
|
</script>
|
|
</body>
|
|
</html>
|