Changeset 109143 in webkit
- Timestamp:
- Feb 28, 2012 1:16:02 PM (12 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r109136 r109143 1 2012-02-28 Alexey Proskuryakov <ap@apple.com> 2 3 [Mac] Add an experimental SPI for plug-ins to enter sandbox 4 https://bugs.webkit.org/show_bug.cgi?id=79709 5 6 Reviewed by Anders Carlsson. 7 8 * PluginProcess/PluginProcess.h: (WebKit::PluginProcess::pluginPath): Exposed plugin path. 9 10 * PluginProcess/mac/com.apple.WebKit.PluginProcess.sb: Added. 11 12 * WebKit2.xcodeproj/project.pbxproj: Added new files. 13 14 * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp: (WebKit::NPN_GetValue): Exposed 15 a function to access sandboxing functions when available. 16 17 * WebProcess/Plugins/Netscape/mac/NetscapeSandboxFunctions.h: Added. 18 * WebProcess/Plugins/Netscape/mac/NetscapeSandboxFunctions.mm: Added. 19 1 20 2012-02-28 Mahesh Kulkarni <mahesh.kulkarni@nokia.com> 2 21 -
trunk/Source/WebKit2/PluginProcess/PluginProcess.h
r105475 r109143 52 52 53 53 NetscapePluginModule* netscapePluginModule(); 54 55 const String& pluginPath() const { return m_pluginPath; } 54 56 55 57 #if PLATFORM(MAC) -
trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj
r108946 r109143 887 887 E179FD9C134D38060015B883 /* ArgumentCodersMac.h in Headers */ = {isa = PBXBuildFile; fileRef = E179FD9B134D38060015B883 /* ArgumentCodersMac.h */; }; 888 888 E179FD9F134D38250015B883 /* ArgumentCodersMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = E179FD9E134D38250015B883 /* ArgumentCodersMac.mm */; }; 889 E17BF99614D0A73E00A5A069 /* NetscapeSandboxFunctions.h in Headers */ = {isa = PBXBuildFile; fileRef = E17BF99514D0A73E00A5A069 /* NetscapeSandboxFunctions.h */; }; 890 E17BF99814D0AA8300A5A069 /* NetscapeSandboxFunctions.mm in Sources */ = {isa = PBXBuildFile; fileRef = E17BF99714D0AA8300A5A069 /* NetscapeSandboxFunctions.mm */; }; 891 E17BF99A14D0CBF100A5A069 /* com.apple.WebKit.PluginProcess.sb in Resources */ = {isa = PBXBuildFile; fileRef = E17BF99914D0CBF100A5A069 /* com.apple.WebKit.PluginProcess.sb */; }; 889 892 E18C92F412DB9E7100CF2AEB /* PrintInfo.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E18C92F312DB9E7100CF2AEB /* PrintInfo.cpp */; }; 890 893 E199875E142C045400BB2DE7 /* BuiltInPDFView.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E199875C142BFC9700BB2DE7 /* BuiltInPDFView.cpp */; }; … … 1933 1936 E179FD9B134D38060015B883 /* ArgumentCodersMac.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ArgumentCodersMac.h; sourceTree = "<group>"; }; 1934 1937 E179FD9E134D38250015B883 /* ArgumentCodersMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ArgumentCodersMac.mm; sourceTree = "<group>"; }; 1938 E17BF99514D0A73E00A5A069 /* NetscapeSandboxFunctions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NetscapeSandboxFunctions.h; sourceTree = "<group>"; }; 1939 E17BF99714D0AA8300A5A069 /* NetscapeSandboxFunctions.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = NetscapeSandboxFunctions.mm; sourceTree = "<group>"; }; 1940 E17BF99914D0CBF100A5A069 /* com.apple.WebKit.PluginProcess.sb */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = com.apple.WebKit.PluginProcess.sb; sourceTree = "<group>"; }; 1935 1941 E18C92F312DB9E7100CF2AEB /* PrintInfo.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = PrintInfo.cpp; sourceTree = "<group>"; }; 1936 1942 E199875A142BF9B800BB2DE7 /* BuiltInPDFView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = BuiltInPDFView.h; path = PDF/BuiltInPDFView.h; sourceTree = "<group>"; }; … … 2124 2130 1AC25F8912A48E0300BD2671 /* PluginProcessShim.h */, 2125 2131 1AC25F8A12A48E0300BD2671 /* PluginProcessShim.mm */, 2132 E17BF99914D0CBF100A5A069 /* com.apple.WebKit.PluginProcess.sb */, 2126 2133 E14E99F914D879C9001D221F /* add-entitlements.sh */, 2127 2134 ); … … 2251 2258 children = ( 2252 2259 1AE5B7F911E7AED200BA6767 /* NetscapePluginMac.mm */, 2260 E17BF99514D0A73E00A5A069 /* NetscapeSandboxFunctions.h */, 2261 E17BF99714D0AA8300A5A069 /* NetscapeSandboxFunctions.mm */, 2253 2262 1A2D92201281DC1B001EB962 /* PluginProxyMac.mm */, 2254 2263 ); … … 3696 3705 buildActionMask = 2147483647; 3697 3706 files = ( 3707 E17BF99A14D0CBF100A5A069 /* com.apple.WebKit.PluginProcess.sb in Resources */, 3698 3708 ); 3699 3709 runOnlyForDeploymentPostprocessing = 0; … … 4138 4148 BC2E6E8E1141971500A63B1E /* WorkQueue.h in Headers */, 4139 4149 1AB42E8714BBBBB2004272F7 /* KeychainShimResponseMap.h in Headers */, 4150 E17BF99614D0A73E00A5A069 /* NetscapeSandboxFunctions.h in Headers */, 4140 4151 BCE0937814FB128C001138D9 /* RemoteLayerClient.h in Headers */, 4141 4152 ); … … 4301 4312 buildActionMask = 2147483647; 4302 4313 files = ( 4314 E17BF99A14D0CBF100A5A069 /* com.apple.WebKit.PluginProcess.sb in Resources */, 4303 4315 ); 4304 4316 runOnlyForDeploymentPostprocessing = 0; … … 4875 4887 BC2E6E8D1141971500A63B1E /* WorkQueue.cpp in Sources */, 4876 4888 BC0092F8115837A300E0AE2A /* WorkQueueMac.cpp in Sources */, 4889 E17BF99814D0AA8300A5A069 /* NetscapeSandboxFunctions.mm in Sources */, 4877 4890 BCE0937714FB128C001138D9 /* RemoteLayerClient.mm in Sources */, 4878 4891 ); -
trunk/Source/WebKit2/WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp
r105323 r109143 37 37 #include <utility> 38 38 39 #if PLATFORM(MAC) && !defined(BUILDING_ON_LEOPARD) || !defined(BUILDING_ON_SNOW_LEOPARD) 40 #include "NetscapeSandboxFunctions.h" 41 #endif 42 39 43 using namespace WebCore; 40 44 using namespace std; … … 412 416 static const unsigned WKNVAllowedToEnterSandbox = 74658; 413 417 418 // WKNVSandboxFunctions = 74659 is defined in NetscapeSandboxFunctions.h 419 414 420 // The Core Animation render server port. 415 421 static const unsigned WKNVCALayerRenderServerPort = 71879; … … 502 508 *(NPBool*)value = true; 503 509 break; 510 511 #if PLATFORM(MAC) && !defined(BUILDING_ON_LEOPARD) || !defined(BUILDING_ON_SNOW_LEOPARD) 512 case WKNVSandboxFunctions: 513 { 514 *(WKNSandboxFunctions **)value = netscapeSandboxFunctions(); 515 break; 516 } 517 #endif 504 518 505 519 #ifndef NP_NO_QUICKDRAW
Note: See TracChangeset
for help on using the changeset viewer.