Bug 1286751 - Close the channel when window destroyed. r=rillian

MozReview-Commit-ID: 4FSPOfT5F6R
This commit is contained in:
bechen
2016-08-05 15:13:36 +08:00
parent 8647fe4716
commit 2eef1f9b84
3 changed files with 80 additions and 0 deletions

View File

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