Ensure the right body element is used throughout the method call.

This commit is contained in:
Olli Pettay 2019-09-05 11:29:47 +02:00 committed by Roy Tam
commit ec1e15a6f2
3 changed files with 3 additions and 3 deletions

View file

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