Bug 1286751 - Close the channel when window destroyed. r=rillian
MozReview-Commit-ID: 4FSPOfT5F6R
This commit is contained in:
@@ -24,6 +24,7 @@ namespace mozilla {
|
||||
namespace dom {
|
||||
|
||||
class WebVTTListener;
|
||||
class WindowDestroyObserver;
|
||||
|
||||
class HTMLTrackElement final : public nsGenericHTMLElement
|
||||
{
|
||||
@@ -113,6 +114,8 @@ public:
|
||||
|
||||
void DropChannel();
|
||||
|
||||
void NotifyShutdown();
|
||||
|
||||
protected:
|
||||
virtual ~HTMLTrackElement();
|
||||
|
||||
@@ -136,6 +139,8 @@ protected:
|
||||
private:
|
||||
void DispatchLoadResource();
|
||||
bool mLoadResourceDispatched;
|
||||
|
||||
RefPtr<WindowDestroyObserver> mWindowDestroyObserver;
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
|
||||
Reference in New Issue
Block a user