mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 679494 - Wrap value returned from nsDOMMessageEvent::GetData. r=mrbkap
This commit is contained in:
parent
ad23dcb6ad
commit
461de28389
@ -103,9 +103,11 @@ nsDOMMessageEvent::UnrootData()
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMMessageEvent::GetData(jsval* aData)
|
||||
nsDOMMessageEvent::GetData(JSContext* aCx, jsval* aData)
|
||||
{
|
||||
*aData = mData;
|
||||
if (!JS_WrapValue(aCx, aData))
|
||||
return NS_ERROR_FAILURE;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -51,6 +51,7 @@ interface nsIDOMMessageEvent : nsIDOMEvent
|
||||
/**
|
||||
* Custom string data associated with this event.
|
||||
*/
|
||||
[implicit_jscontext]
|
||||
readonly attribute jsval data;
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user