Bug 81702

Summary: Sandboxed PluginProcess should use private temporary and cache directories
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: WebKit2Assignee: Alexey Proskuryakov <ap>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, sam
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
proposed patch andersca: review+

Alexey Proskuryakov
Reported 2012-03-20 14:46:47 PDT
Attachments
proposed patch (7.62 KB, patch)
2012-03-20 14:55 PDT, Alexey Proskuryakov
andersca: review+
Alexey Proskuryakov
Comment 1 2012-03-20 14:55:05 PDT
Created attachment 132904 [details] proposed patch
Darin Adler
Comment 2 2012-03-20 15:49:10 PDT
Comment on attachment 132904 [details] proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=132904&action=review > Source/WebKit2/WebProcess/Plugins/Netscape/mac/NetscapeSandboxFunctions.mm:107 > + static char temporaryDirectory[PATH_MAX]; Why static?
Alexey Proskuryakov
Comment 3 2012-03-20 15:58:44 PDT
Comment on attachment 132904 [details] proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=132904&action=review >> Source/WebKit2/WebProcess/Plugins/Netscape/mac/NetscapeSandboxFunctions.mm:107 >> + static char temporaryDirectory[PATH_MAX]; > > Why static? No good reason. Will remove.
Anders Carlsson
Comment 4 2012-03-20 16:20:39 PDT
Comment on attachment 132904 [details] proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=132904&action=review > Source/WebKit2/WebProcess/Plugins/Netscape/mac/NetscapeSandboxFunctions.mm:105 > + String systemDirectorySuffix = "com.apple.WebKit.PluginProcess+" + PluginProcess::shared().pluginBundleIdentifier(); I think you should just call PluginProcess::shared().netscapePluginModule()->module()->bundleIdentifier(); directly here.
Alexey Proskuryakov
Comment 5 2012-03-20 16:31:32 PDT
Note You need to log in before you can comment on or make changes to this bug.