Changeset 127595 in webkit
- Timestamp:
- Sep 5, 2012, 8:39:16 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r127584 r127595 1 2012-09-05 Brady Eidson <beidson@apple.com> 2 3 Frequent crashes in PluginView::scriptObject under runtimeObjectCustomGetOwnPropertySlot 4 <rdar://problem/12142226> and https://bugs.webkit.org/show_bug.cgi?id=95026 5 6 Reviewed by Andy Estes. 7 8 * plugins/npp-new-fails-expected.txt: Added. 9 * plugins/npp-new-fails.html: Added. 10 1 11 2012-09-05 Dominik Röttsches <dominik.rottsches@intel.com> 2 12 -
trunk/Source/WebKit2/ChangeLog
r127582 r127595 1 2012-09-05 Brady Eidson <beidson@apple.com> 2 3 Frequent crashes in PluginView::scriptObject under runtimeObjectCustomGetOwnPropertySlot 4 <rdar://problem/12142226> and https://bugs.webkit.org/show_bug.cgi?id=95026 5 6 Patch partially by Andras Becsi <andras.becsi@nokia.com> 7 8 Reviewed by Andy Estes. 9 10 If a plug-in fails to initialize then the m_plugin pointer is cleared out. 11 When accessing the script object it is appropriate to unconditionally null check m_plugin. 12 13 * WebProcess/Plugins/PluginView.cpp: 14 (WebKit::PluginView::scriptObject): Null check m_plugin before trying to use it. 15 1 16 2012-09-05 Christophe Dumez <christophe.dumez@intel.com> 2 17 -
trunk/Source/WebKit2/WebProcess/Plugins/PluginView.cpp
r127513 r127595 551 551 return 0; 552 552 553 // The plug-in can be null here if it failed to initialize previously. 554 if (!m_plugin) 555 return 0; 556 553 557 // If the plug-in exists but is not initialized then we're still initializing asynchronously. 554 558 // We need to wait here until initialization has either succeeded or failed. … … 559 563 } 560 564 561 // The plug-in can be null here if it failed to initialize.565 // The plug-in can be null here if it still failed to initialize. 562 566 if (!m_isInitialized || !m_plugin) 563 567 return 0; -
trunk/Tools/ChangeLog
r127583 r127595 1 2012-09-05 Brady Eidson <beidson@apple.com> 2 3 Frequent crashes in PluginView::scriptObject under runtimeObjectCustomGetOwnPropertySlot 4 <rdar://problem/12142226> and https://bugs.webkit.org/show_bug.cgi?id=95026 5 6 Reviewed by Andy Estes. 7 8 Add a plug-in that always fails to initialize: 9 * DumpRenderTree/TestNetscapePlugIn/Tests/NPPNewFails.cpp: Added. 10 (NPPNewFails): 11 (NPPNewFails::NPPNewFails): 12 (NPPNewFails::NPP_New): 13 14 Add it to all the project files: 15 * DumpRenderTree/DumpRenderTree.gypi: 16 * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj: 17 * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: 18 * DumpRenderTree/TestNetscapePlugIn/win/TestNetscapePlugin.vcproj: 19 * DumpRenderTree/qt/TestNetscapePlugin/TestNetscapePlugin.pro: 20 1 21 2012-09-05 Tor Arne Vestbø <tor.arne.vestbo@nokia.com> 2 22 -
trunk/Tools/DumpRenderTree/DumpRenderTree.gypi
r126652 r127595 97 97 'TestNetscapePlugIn/Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp', 98 98 'TestNetscapePlugIn/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp', 99 'TestNetscapePlugIn/Tests/NPPNewFails.cpp', 99 100 'TestNetscapePlugIn/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp', 100 101 'TestNetscapePlugIn/Tests/NPRuntimeRemoveProperty.cpp', -
trunk/Tools/DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj
r127047 r127595 71 71 4AD6A11413C8124000EA9737 /* FormValue.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4AD6A11313C8124000EA9737 /* FormValue.cpp */; }; 72 72 5106803E15CC7B10001A8A23 /* SlowNPPNew.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5106803D15CC7B10001A8A23 /* SlowNPPNew.cpp */; }; 73 5113DE6715F6CBE5005EC8B3 /* NPPNewFails.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5113DE6615F6CBE5005EC8B3 /* NPPNewFails.cpp */; }; 73 74 515C0CD015EE785700F5A613 /* LogNPPSetWindow.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 515C0CCF15EE785700F5A613 /* LogNPPSetWindow.cpp */; }; 74 75 515F429C15C07872007C8F90 /* PluginScriptableObjectOverridesAllProperties.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 515F429B15C07872007C8F90 /* PluginScriptableObjectOverridesAllProperties.cpp */; }; … … 287 288 4AD6A11313C8124000EA9737 /* FormValue.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FormValue.cpp; sourceTree = "<group>"; }; 288 289 5106803D15CC7B10001A8A23 /* SlowNPPNew.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = SlowNPPNew.cpp; path = TestNetscapePlugIn/Tests/SlowNPPNew.cpp; sourceTree = SOURCE_ROOT; }; 290 5113DE6615F6CBE5005EC8B3 /* NPPNewFails.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = NPPNewFails.cpp; sourceTree = "<group>"; }; 289 291 515C0CCF15EE785700F5A613 /* LogNPPSetWindow.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LogNPPSetWindow.cpp; sourceTree = "<group>"; }; 290 292 515F429B15C07872007C8F90 /* PluginScriptableObjectOverridesAllProperties.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = PluginScriptableObjectOverridesAllProperties.cpp; sourceTree = "<group>"; }; … … 560 562 515C0CCF15EE785700F5A613 /* LogNPPSetWindow.cpp */, 561 563 1ACF898B132EF41C00E915D4 /* NPDeallocateCalledBeforeNPShutdown.cpp */, 564 5113DE6615F6CBE5005EC8B3 /* NPPNewFails.cpp */, 562 565 C031182A134E4A2B00919757 /* NPPSetWindowCalledDuringDestruction.cpp */, 563 566 1A24BAA8120734EE00FBB059 /* NPRuntimeObjectFromDestroyedPlugin.cpp */, … … 922 925 51CACBD815D96FD000EB53A2 /* EvaluateJSWithinNPP_New.cpp in Sources */, 923 926 515C0CD015EE785700F5A613 /* LogNPPSetWindow.cpp in Sources */, 927 5113DE6715F6CBE5005EC8B3 /* NPPNewFails.cpp in Sources */, 924 928 ); 925 929 runOnlyForDeploymentPostprocessing = 0; -
trunk/Tools/DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt
r123859 r127595 15 15 ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp 16 16 ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/NPDeallocateCalledBeforeNPShutdown.cpp 17 ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/NPPNewFails.cpp 17 18 ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/NPPSetWindowCalledDuringDestruction.cpp 18 19 ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp -
trunk/Tools/DumpRenderTree/TestNetscapePlugIn/win/TestNetscapePlugin.vcproj
r123936 r127595 427 427 </File> 428 428 <File 429 RelativePath="..\Tests\NPPNewFails.cpp" 430 > 431 </File> 432 <File 429 433 RelativePath="..\Tests\NPPSetWindowCalledDuringDestruction.cpp" 430 434 > -
trunk/Tools/DumpRenderTree/qt/TestNetscapePlugin/TestNetscapePlugin.pro
r123936 r127595 23 23 Tests/GetUserAgentWithNullNPPFromNPPNew.cpp \ 24 24 Tests/NPDeallocateCalledBeforeNPShutdown.cpp \ 25 Tests/NPPNewFails.cpp \ 25 26 Tests/NPPSetWindowCalledDuringDestruction.cpp \ 26 27 Tests/NPRuntimeObjectFromDestroyedPlugin.cpp \
Note:
See TracChangeset
for help on using the changeset viewer.