Bug 1235411 - Remove IsCallerChrome check in HTMLMediaElement::Observe. r=khuey

This commit is contained in:
Bobby Holley 2015-12-28 09:52:16 -08:00
parent 06f81d4fef
commit aecd647dc2

View File

@ -4346,8 +4346,6 @@ void HTMLMediaElement::DoRemoveSelfReference()
nsresult HTMLMediaElement::Observe(nsISupports* aSubject,
const char* aTopic, const char16_t* aData)
{
NS_ENSURE_TRUE(nsContentUtils::IsCallerChrome(), NS_ERROR_NOT_AVAILABLE);
if (strcmp(aTopic, NS_XPCOM_SHUTDOWN_OBSERVER_ID) == 0) {
mShuttingDown = true;
AddRemoveSelfReference();