Bug 679494 - Wrap value returned from nsDOMMessageEvent::GetData. r=mrbkap

This commit is contained in:
Bobby Holley 2011-08-18 12:10:00 -07:00
parent ad23dcb6ad
commit 461de28389
2 changed files with 4 additions and 1 deletions

View File

@ -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;
}

View File

@ -51,6 +51,7 @@ interface nsIDOMMessageEvent : nsIDOMEvent
/**
* Custom string data associated with this event.
*/
[implicit_jscontext]
readonly attribute jsval data;
/**