mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
Backed out changeset 4f266277d3b8 (bug 1523899) for wpt failures on string-compilation-base-url-external-classic.html. CLOSED TREE
This commit is contained in:
parent
207e74d173
commit
d77339d244
@ -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));
|
||||
|
||||
|
@ -0,0 +1,2 @@
|
||||
[transaction-lifecycle.htm]
|
||||
disabled: Bug 1519865
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user