mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1235411 - Remove IsCallerChrome check in HTMLMediaElement::Observe. r=khuey
This commit is contained in:
parent
06f81d4fef
commit
aecd647dc2
@ -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…
Reference in New Issue
Block a user