зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1425965 P7 Fix dom/push/test/test_error_reporting.html to expect new console reporting mechanism. r=asuth
This commit is contained in:
Родитель
cd445b9897
Коммит
020e20e535
|
@ -79,10 +79,12 @@ http://creativecommons.org/licenses/publicdomain/
|
|||
add_task(async function reportDecryptionError() {
|
||||
var message = await new Promise(resolve => {
|
||||
SpecialPowers.registerConsoleListener(message => {
|
||||
if (!message.isScriptError) {
|
||||
if (!message.isScriptError && !message.isConsoleEvent) {
|
||||
return;
|
||||
}
|
||||
if (message.innerWindowID == controlledFrame.innerWindowId()) {
|
||||
const scope = "http://mochi.test:8888/tests/dom/push/test/";
|
||||
if (message.innerWindowID === "ServiceWorker" &&
|
||||
message.windowID === scope) {
|
||||
SpecialPowers.postConsoleSentinel();
|
||||
resolve(message);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче