1
0
Fork 0
firefox/toolkit/components/extensions/test/mochitest/file_script_good.js
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

12 lines
282 B
JavaScript

"use strict";
window.success = window.success ? window.success + 1 : 1;
{
let scripts = document.getElementsByTagName("script");
let url = new URL(scripts[scripts.length - 1].src);
let flag = url.searchParams.get("q");
if (flag) {
window.postMessage(flag, "*");
}
}