Bug 1556441 - Don't call StopObservering when destroying a BackgroundClipRenderingObserver since we know the frame is going away anyway. r=jwatt

Differential Revision: https://phabricator.services.mozilla.com/D35971

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Matt Woodrow 2019-06-27 10:01:15 +00:00
Родитель 057f20d982
Коммит 3f1eb78e60
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -539,7 +539,9 @@ class BackgroundClipRenderingObserver : public SVGRenderingObserver {
NS_DECL_ISUPPORTS
private:
virtual ~BackgroundClipRenderingObserver() { StopObserving(); }
// We do not call StopObserving() since the observing and observed element
// are the same element (and because we could crash - see bug 1556441).
virtual ~BackgroundClipRenderingObserver() = default;
Element* GetReferencedElementWithoutObserving() final {
return mFrame->GetContent()->AsElement();