summaryrefslogtreecommitdiffstats
path: root/dom/html/PluginDocument.cpp
diff options
context:
space:
mode:
authorOlli Pettay <Olli.Pettay@helsinki.fi>2019-09-05 11:29:47 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-09-05 11:29:47 +0200
commitd90dd7b0c60e7950b668a08d415c0395c92db535 (patch)
treea0a740e1eb1acaff5d3dd92d1246ea80d1d9aefb /dom/html/PluginDocument.cpp
parent334a892eb5f94c9adc5253101a213c8b8b492df8 (diff)
downloadUXP-d90dd7b0c60e7950b668a08d415c0395c92db535.tar
UXP-d90dd7b0c60e7950b668a08d415c0395c92db535.tar.gz
UXP-d90dd7b0c60e7950b668a08d415c0395c92db535.tar.lz
UXP-d90dd7b0c60e7950b668a08d415c0395c92db535.tar.xz
UXP-d90dd7b0c60e7950b668a08d415c0395c92db535.zip
Ensure the right body element is used throughout the method call.
Diffstat (limited to 'dom/html/PluginDocument.cpp')
-rw-r--r--dom/html/PluginDocument.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/html/PluginDocument.cpp b/dom/html/PluginDocument.cpp
index 1c923ecc6..f6be8a915 100644
--- a/dom/html/PluginDocument.cpp
+++ b/dom/html/PluginDocument.cpp
@@ -206,7 +206,7 @@ PluginDocument::CreateSyntheticPluginDocument()
NS_ENSURE_SUCCESS(rv, rv);
// then attach our plugin
- Element* body = GetBodyElement();
+ RefPtr<Element> body = GetBodyElement();
if (!body) {
NS_WARNING("no body on plugin document!");
return NS_ERROR_FAILURE;