diff options
author | Pale Moon <git-repo@palemoon.org> | 2018-03-26 15:42:03 +0200 |
---|---|---|
committer | Pale Moon <git-repo@palemoon.org> | 2018-03-26 15:42:03 +0200 |
commit | 24006717d579d95da3df848d5689245155c8015c (patch) | |
tree | e2648e9068ea303c9c97987172193529ff11e667 | |
parent | f8118c26f509d064481a90fa45519cf533bf382f (diff) | |
download | palemoon-gre-24006717d579d95da3df848d5689245155c8015c.tar.gz |
Revert "Intermittent test_viewport_resize.html | undefined assertion name - got data:,c, expected data:,a"
This reverts commit b36f9a74b747e5f8a53b986206a2269ab5f66d3a.
-rw-r--r-- | dom/html/HTMLImageElement.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/dom/html/HTMLImageElement.cpp b/dom/html/HTMLImageElement.cpp index 5ffd8d5e8..51f415be8 100644 --- a/dom/html/HTMLImageElement.cpp +++ b/dom/html/HTMLImageElement.cpp @@ -84,10 +84,7 @@ class ImageLoadTask : public nsRunnable public: explicit ImageLoadTask(HTMLImageElement *aElement) : mElement(aElement) - { - mDocument = aElement->OwnerDoc(); - mDocument->BlockOnload(); - } + {} NS_IMETHOD Run() { @@ -95,14 +92,12 @@ public: mElement->mPendingImageLoadTask = nullptr; mElement->LoadSelectedImage(true, true); } - mDocument->UnblockOnload(false); return NS_OK; } private: ~ImageLoadTask() {} nsRefPtr<HTMLImageElement> mElement; - nsCOMPtr<nsIDocument> mDocument; }; HTMLImageElement::HTMLImageElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo) |