Backed out changeset 4f266277d3b8 (bug 1523899) for wpt failures on string-compilation-base-url-external-classic.html. CLOSED TREE

This commit is contained in:
Narcis Beleuzu 2019-02-06 14:37:25 +02:00
parent 207e74d173
commit d77339d244
4 changed files with 11 additions and 13 deletions

View File

@ -992,6 +992,15 @@ nsresult EventListenerManager::CompileEventHandlerInternal(
NS_ENSURE_SUCCESS(result, result);
NS_ENSURE_TRUE(handler, NS_ERROR_FAILURE);
JS::Rooted<JSFunction*> func(cx, JS_GetObjectFunction(handler));
MOZ_ASSERT(func);
JS::Rooted<JSScript*> jsScript(cx, JS_GetFunctionScript(cx, func));
MOZ_ASSERT(jsScript);
RefPtr<LoadedScript> loaderScript = ScriptLoader::GetActiveScript(cx);
if (loaderScript) {
loaderScript->AssociateWithScript(jsScript);
}
MOZ_ASSERT(js::IsObjectInContextCompartment(handler, cx));
JS::Rooted<JSObject*> handlerGlobal(cx, JS::CurrentGlobalOrNull(cx));

View File

@ -0,0 +1,2 @@
[transaction-lifecycle.htm]
disabled: Bug 1519865

View File

@ -2,9 +2,3 @@
[setTimeout must inherit the nonce from the triggering script, thus execute]
expected: FAIL
[inline event handlers triggered via UA code must inherit the nonce from the triggering script, thus execute]
expected: FAIL
[reflected inline event handlers must inherit the nonce from the triggering script, thus execute]
expected: FAIL

View File

@ -1,10 +1,3 @@
[string-compilation-nonce-module.html]
[setTimeout must inherit the nonce from the triggering script, thus execute]
expected: FAIL
[inline event handlers triggered via UA code must inherit the nonce from the triggering script, thus execute]
expected: FAIL
[reflected inline event handlers must inherit the nonce from the triggering script, thus execute]
expected: FAIL