Title: [140865] trunk/Source/WebKit2
- Revision
- 140865
- Author
- [email protected]
- Date
- 2013-01-25 14:22:08 -0800 (Fri, 25 Jan 2013)
Log Message
Prepend common plugin sandbox profile to specific per-plugin one.
<rdar://problem/13044349>
Reviewed by Alexey Proskuryakov.
* PluginProcess/mac/PluginProcessMac.mm:
(WebKit::initializeSandbox):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (140864 => 140865)
--- trunk/Source/WebKit2/ChangeLog 2013-01-25 21:59:45 UTC (rev 140864)
+++ trunk/Source/WebKit2/ChangeLog 2013-01-25 22:22:08 UTC (rev 140865)
@@ -1,3 +1,13 @@
+2013-01-25 Ivan Krstić <[email protected]>
+
+ Prepend common plugin sandbox profile to specific per-plugin one.
+ <rdar://problem/13044349>
+
+ Reviewed by Alexey Proskuryakov.
+
+ * PluginProcess/mac/PluginProcessMac.mm:
+ (WebKit::initializeSandbox):
+
2013-01-25 Dean Jackson <[email protected]>
Add a user agent stylesheet for plugins
Modified: trunk/Source/WebKit2/PluginProcess/mac/PluginProcessMac.mm (140864 => 140865)
--- trunk/Source/WebKit2/PluginProcess/mac/PluginProcessMac.mm 2013-01-25 21:59:45 UTC (rev 140864)
+++ trunk/Source/WebKit2/PluginProcess/mac/PluginProcessMac.mm 2013-01-25 22:22:08 UTC (rev 140865)
@@ -329,6 +329,14 @@
if (!profileString)
return;
+ sandboxURL = adoptCF(CFURLCreateWithFileSystemPathRelativeToBase(0, CFSTR("com.apple.WebKit.plugin-common.sb"), kCFURLPOSIXPathStyle, FALSE, sandboxProfileDirectory.get()));
+
+ RetainPtr<NSString> commonProfileString = adoptNS([[NSString alloc] initWithContentsOfURL:(NSURL *)sandboxURL.get() encoding:NSUTF8StringEncoding error:NULL]);
+ if (!commonProfileString)
+ return;
+
+ profileString = [commonProfileString.get() stringByAppendingString:profileString.get()];
+
enterSandbox([profileString.get() UTF8String]);
}
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes