Bug 1153636: Don't assert with addEventListener("") on workers. r=smaug

This commit is contained in:
Kyle Huey 2016-01-06 13:18:29 -08:00
parent f8775de947
commit 66e8eeea5d
3 changed files with 7 additions and 1 deletions

View File

@ -233,7 +233,7 @@ EventListenerManager::AddEventListenerInternal(
MOZ_ASSERT(// Main thread
(NS_IsMainThread() && aEventMessage && aTypeAtom) ||
// non-main-thread
(!NS_IsMainThread() && aEventMessage && !aTypeString.IsEmpty()) ||
(!NS_IsMainThread() && aEventMessage) ||
aAllEvents, "Missing type"); // all-events listener
if (!aListenerHolder || mClearingListeners) {

View File

@ -0,0 +1,5 @@
<script>
new Worker("data:text/javascript;charset=UTF-8,self.addEventListener('',function(){},false);");
</script>

View File

@ -1,3 +1,4 @@
load 779707.html
load 943516.html
load 1153636.html
load 1158031.html