зеркало из https://github.com/mozilla/gecko-dev.git
Bug 734548 - Fix crash when StorageEvent.storageArea is null. r=smaug
This commit is contained in:
Родитель
be6fbf5557
Коммит
57efec8a03
|
@ -6,5 +6,6 @@ load 457776-1.html
|
|||
load 496308-1.html
|
||||
load 682637-1.html
|
||||
load eventctor-nulldictionary.html
|
||||
load eventctor-nullstorage.html
|
||||
load recursive-onload.html
|
||||
load recursive-DOMNodeInserted.html
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<script>
|
||||
new StorageEvent("").storageArea;
|
||||
</script>
|
|
@ -2363,7 +2363,7 @@ NS_IMETHODIMP nsDOMStorageEvent::GetStorageArea(nsIDOMStorage * *aStorageArea)
|
|||
{
|
||||
NS_ENSURE_ARG_POINTER(aStorageArea);
|
||||
|
||||
NS_ADDREF(*aStorageArea = mStorageArea);
|
||||
NS_IF_ADDREF(*aStorageArea = mStorageArea);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче