mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1153636: Don't assert with addEventListener("") on workers. r=smaug
This commit is contained in:
parent
f8775de947
commit
66e8eeea5d
@ -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) {
|
||||
|
5
dom/workers/test/crashtests/1153636.html
Normal file
5
dom/workers/test/crashtests/1153636.html
Normal file
@ -0,0 +1,5 @@
|
||||
<script>
|
||||
|
||||
new Worker("data:text/javascript;charset=UTF-8,self.addEventListener('',function(){},false);");
|
||||
|
||||
</script>
|
@ -1,3 +1,4 @@
|
||||
load 779707.html
|
||||
load 943516.html
|
||||
load 1153636.html
|
||||
load 1158031.html
|
||||
|
Loading…
Reference in New Issue
Block a user