Title: [105323] trunk/Source/WebKit2
- Revision
- 105323
- Author
- a...@apple.com
- Date
- 2012-01-18 14:37:34 -0800 (Wed, 18 Jan 2012)
Log Message
[Mac] Add a flag telling plug-in if it can enter sandbox
https://bugs.webkit.org/show_bug.cgi?id=76467
Reviewed by Anders Carlsson.
* WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
(WebKit::NPN_GetValue): Added a private flag.
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (105322 => 105323)
--- trunk/Source/WebKit2/ChangeLog 2012-01-18 22:34:51 UTC (rev 105322)
+++ trunk/Source/WebKit2/ChangeLog 2012-01-18 22:37:34 UTC (rev 105323)
@@ -1,3 +1,13 @@
+2012-01-17 Alexey Proskuryakov <a...@apple.com>
+
+ [Mac] Add a flag telling plug-in if it can enter sandbox
+ https://bugs.webkit.org/show_bug.cgi?id=76467
+
+ Reviewed by Anders Carlsson.
+
+ * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
+ (WebKit::NPN_GetValue): Added a private flag.
+
2012-01-18 Eric Carlson <eric.carl...@apple.com>
Provide access to user's list of preferred languages
Modified: trunk/Source/WebKit2/WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp (105322 => 105323)
--- trunk/Source/WebKit2/WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp 2012-01-18 22:34:51 UTC (rev 105322)
+++ trunk/Source/WebKit2/WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp 2012-01-18 22:37:34 UTC (rev 105323)
@@ -408,6 +408,9 @@
// Whether the browser expects a non-retained Core Animation layer.
static const unsigned WKNVExpectsNonretainedLayer = 74657;
+// Whether plug-in code is allowed to enter (arbitrary) sandbox for the process.
+static const unsigned WKNVAllowedToEnterSandbox = 74658;
+
// The Core Animation render server port.
static const unsigned WKNVCALayerRenderServerPort = 71879;
@@ -495,6 +498,10 @@
break;
}
+ case WKNVAllowedToEnterSandbox:
+ *(NPBool*)value = true;
+ break;
+
#ifndef NP_NO_QUICKDRAW
case NPNVsupportsQuickDrawBool:
// We don't support the QuickDraw drawing model.
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes