Changeset 74205 in webkit
- Timestamp:
- Dec 16, 2010 12:07:41 PM (13 years ago)
- Location:
- trunk/WebKit2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit2/ChangeLog
r74203 r74205 1 2010-12-16 Anders Carlsson <andersca@apple.com> 2 3 Reviewed by Oliver Hunt. 4 5 Don't try to call plug-in member functions if the plug-in hasn't been initialized 6 https://bugs.webkit.org/show_bug.cgi?id=51205 7 <rdar://problem/8730204> 8 9 Make sure that all PluginView functions that can be called while a plug-in has not been 10 initialized (if the plug-in page is in a background tab for example) have an additional 11 check for m_isInitialized. 12 13 * WebProcess/Plugins/PluginView.cpp: 14 (WebKit::PluginView::setWindowIsFocused): 15 (WebKit::PluginView::windowAndViewFramesChanged): 16 (WebKit::PluginView::platformLayer): 17 (WebKit::PluginView::scriptObject): 18 (WebKit::PluginView::privateBrowsingStateChanged): 19 (WebKit::PluginView::handleEvent): 20 (WebKit::PluginView::viewGeometryDidChange): 21 (WebKit::PluginView::setFocus): 22 1 23 2010-12-16 Anders Carlsson <andersca@apple.com> 2 24 -
trunk/WebKit2/WebProcess/Plugins/PluginView.cpp
r74202 r74205 379 379 void PluginView::setWindowIsFocused(bool windowIsFocused) 380 380 { 381 if (!m_ plugin)381 if (!m_isInitialized || !m_plugin) 382 382 return; 383 383 … … 387 387 void PluginView::windowAndViewFramesChanged(const IntRect& windowFrameInScreenCoordinates, const IntRect& viewFrameInWindowCoordinates) 388 388 { 389 if (!m_ plugin)389 if (!m_isInitialized || !m_plugin) 390 390 return; 391 391 … … 462 462 PlatformLayer* PluginView::platformLayer() const 463 463 { 464 // The plug-in can be null here if it failed to initialize or hasn't yet been initialized.465 if (!m_ plugin)464 // The plug-in can be null here if it failed to initialize. 465 if (!m_isInitialized || !m_plugin) 466 466 return 0; 467 467 … … 473 473 { 474 474 // The plug-in can be null here if it failed to initialize. 475 if (!m_ plugin)475 if (!m_isInitialized || !m_plugin) 476 476 return 0; 477 477 478 478 NPObject* scriptableNPObject = m_plugin->pluginScriptableNPObject(); 479 479 if (!scriptableNPObject) … … 489 489 { 490 490 // The plug-in can be null here if it failed to initialize. 491 if (!m_ plugin)491 if (!m_isInitialized || !m_plugin) 492 492 return; 493 493 … … 538 538 void PluginView::handleEvent(Event* event) 539 539 { 540 if (!m_ plugin)540 if (!m_isInitialized || !m_plugin) 541 541 return; 542 542 … … 576 576 void PluginView::viewGeometryDidChange() 577 577 { 578 if (! parent() || !m_plugin || !m_isInitialized)578 if (!m_isInitialized || !m_plugin || !parent()) 579 579 return; 580 580 … … 798 798 { 799 799 Widget::setFocus(hasFocus); 800 800 801 if (!m_isInitialized || !m_plugin) 802 return; 803 801 804 m_plugin->setFocus(hasFocus); 802 805 }
Note: See TracChangeset
for help on using the changeset viewer.