mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-06 19:29:24 +02:00
This test was testing that files are loaded/executed/etc in the page, but what we really care about is that the webrequest api works. Other tests are responsible for stuff like css and js actually work. The patch does maintain (fixed) the js test, but removes the css test for lack of a good way to properly wait for css to apply. MozReview-Commit-ID: B2uByaxNeK2 --HG-- extra : rebase_source : 6779116f9f1a4a7ce24cd32c3648d1027343db93
12 lines
282 B
JavaScript
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, "*");
|
|
}
|
|
}
|