mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-18 06:45:33 +00:00
Bug 1235411 - Remove IsCallerChrome check in HTMLMediaElement::Observe. r=khuey
This commit is contained in:
parent
0fbad405e3
commit
fe24a17559
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user