Add a null pointer check.
<rdar://problem/32513144>
Created attachment 312264 [details] Fixes the bug
Comment on attachment 312264 [details] Fixes the bug r=me
Comment on attachment 312264 [details] Fixes the bug Clearing flags on attachment: 312264 Committed r217914: <http://trac.webkit.org/changeset/217914>
All reviewed patches have been landed. Closing bug.
This is likely a regression from https://trac.webkit.org/changeset/164195.
Comment on attachment 312264 [details] Fixes the bug View in context: https://bugs.webkit.org/attachment.cgi?id=312264&action=review > Source/WebKit2/WebProcess/Plugins/PluginView.cpp:1597 > + RefPtr<Document> contentDocument = m_pluginElement->contentDocument(); Why RefPtr? Seems unnecessary if we are just getting a pointer and then immediately dereferencing it.
Comment on attachment 312264 [details] Fixes the bug View in context: https://bugs.webkit.org/attachment.cgi?id=312264&action=review >> Source/WebKit2/WebProcess/Plugins/PluginView.cpp:1597 >> + RefPtr<Document> contentDocument = m_pluginElement->contentDocument(); > > Why RefPtr? Seems unnecessary if we are just getting a pointer and then immediately dereferencing it. Oh yeah, I don't know why I used RefPtr here. Will fix.
Addressed the comment in https://trac.webkit.org/changeset/218046.