[WK2][macOS] Support Mac Mini Flash Player Features
authorbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Jun 2017 17:21:48 +0000 (17:21 +0000)
committerbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Jun 2017 17:21:48 +0000 (17:21 +0000)
https://bugs.webkit.org/show_bug.cgi?id=173581
<rdar://problem/32804073>

Reviewed by Dean Jackson.

Revise the sandboxes for additional IOKit properties identified during Flash video player
testing.

* PluginProcess/mac/com.apple.WebKit.plugin-common.sb.in:
* WebProcess/com.apple.WebProcess.sb.in:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@218749 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/PluginProcess/mac/com.apple.WebKit.plugin-common.sb.in
Source/WebKit2/WebProcess/com.apple.WebProcess.sb.in

index df1bbd9..1cfe2bf 100644 (file)
@@ -1,3 +1,17 @@
+2017-06-23  Brent Fulgham  <bfulgham@apple.com>
+
+        [WK2][macOS] Support Mac Mini Flash Player Features
+        https://bugs.webkit.org/show_bug.cgi?id=173581
+        <rdar://problem/32804073>
+
+        Reviewed by Dean Jackson.
+
+        Revise the sandboxes for additional IOKit properties identified during Flash video player
+        testing.
+
+        * PluginProcess/mac/com.apple.WebKit.plugin-common.sb.in:
+        * WebProcess/com.apple.WebProcess.sb.in:
+
 2017-06-23  Zan Dobersek  <zdobersek@igalia.com>
 
         [CoordinatedGraphics] Clean up type aliases in CoordinatedGraphicsScene
index 61cc86d..84a9cbf 100644 (file)
 
 (deny iokit-get-properties)
 (allow iokit-get-properties
-    (iokit-property "AAPL,mux-switch-state")
+    (iokit-property-regex #"^AAPL,(DisplayPipe|boot-display|mux-switch-state)")
     (iokit-property-regex #"^ATY,fb_(linebytes|offset|size)")
+    (iokit-property "ActuationSupported")
     (iokit-property "AllowDisplaySleep")
-    (iokit-property "AppleDisplayType")
-    (iokit-property "AppleSense")
+    (iokit-property "AlwaysNeedsVelocityCalculated")
+    (iokit-property "Apple(DisplayType|IntelMEVABundleName|Sense)")
     (iokit-property "CFBundleIdentifier")
     (iokit-property-regex #"^Display(ParameterHandlerUsesCharPtr|ProductID|Routing|SerialNumber|VendorID)")
     (iokit-property "DeviceEqID")
+    (iokit-property "Driver is Ready")
+    (iokit-property "EnableLPVP")
+    (iokit-property "Endianness")
+    (iokit-property "Family ID")
+    (iokit-property "ForceSupported")
+    (iokit-property "HIDPointerAccelerationType")
     (iokit-property-regex #"^IOAccel(Index|Revision|Types)")
     (iokit-property-regex #"^IOAudioControl(ChannelID|ID|SubType|Usage)")
     (iokit-property-regex #"^IOAudioDevice(CanBeDefaults|TransportType)")
     (iokit-property "IOClass")
     (iokit-property "IOConsoleUsers")
     (iokit-property-regex #"^IODisplay(Attributes|CapabilityString|ConnectFlags|ControllerID|EDID|FirmwareLevel|MCCSVersion|Parameters|PrefsKey|TechnologyType|UsageTime)")
-    (iokit-property-regex #"^IOFB(CLUTDefer|Config|CurrentPixelClock|CurrentPixelCount|CursorInfo|DependentID|DependentIndex|DetailedTimings|GammaCount|GammaHeaderSize|GammaWidth|I2CInterfaceIDs|I2CInterfaceInfo|MemorySize|NeedsRefresh|ProbeOptions|ScalerInfo|TimingRange|Transform|UIScale|WaitCursorFrames|WaitCursorPeriod)")
+    (iokit-property-regex #"^IOFB(CLUTDefer|Config|CurrentPixelClock|CurrentPixelCount|CursorInfo|DependentID|DependentIndex|DetailedTimings|GammaCount|GammaHeaderSize|GammaWidth|I2CInterfaceIDs|I2CInterfaceInfo|Integrated|MemorySize|NeedsRefresh|ProbeOptions|ScalerInfo|TimingRange|Transform|UIScale|WaitCursorFrames|WaitCursorPeriod)")
     (iokit-property-regex #"^IOFBCurrentPixelCount(Real)")
     (iokit-property "IOFramebufferOpenGLIndex")
     (iokit-property "IOGeneralInterest")
     (iokit-property "IOGLBundleName")
     (iokit-property "IOGVACodec")
+    (iokit-property "IOI2CTransactionTypes")
     (iokit-property-regex "^IOGVA[A-Z]+Decode")
     (iokit-property "IOMACAddress") ;; For some Flash players
     (iokit-property "IOMatchCategory")
     (iokit-property-regex #"^IOName(Match|Matched)")
     (iokit-property "IOPMStrictTreeOrder")
-    (iokit-property "IOPlatformSerialNumber") ;; Ditto
+    (iokit-property-regex #"^IOPlatform(SerialNumber|UUID)") ;; Ditto
     (iokit-property "IOPowerManagement")
     (iokit-property "IOProbeScore")
     (iokit-property "IOProviderClass")
     (iokit-property "IOScreenRestoreState")
     (iokit-property "IOVARendererID")
+    (iokit-property-regex #"^MT( Built-In|HIDDevice)")
+    (iokit-property "MaintainPowerInUILock")
+    (iokit-property "Max Packet Size")
     (iokit-property-regex #"^MetalPlugin(Name|ClassName)")
+    (iokit-property-regex #"^Multitouch (ID|Serial Number|Subdevice ID)")
+    (iokit-property "NXSystemInfo")
     (iokit-property "NoAutoRoute")
     (iokit-property "Protocol Characteristics")
+    (iokit-property-regex #"^Sensor (Columns|Region (Descriptor|Param)|Rows|Surface (Descriptor|Height|Width))")
     (iokit-property "SupportAudioAUUC")
+    (iokit-property "TimeStampFiltering")
+    (iokit-property "Transport")
+    (iokit-property "WANTS_FRAMES_IGNORED")
     (iokit-property "board-id")
-    (iokit-property "audio-codec-info")
+    (iokit-property-regex #"^audio-(codec-info|device-(mvalue|nvalue))")
     (iokit-property "av-signal-type")
+    (iokit-property "bcdVersion")
     (iokit-property "boot-gamma-restored")
     (iokit-property "built-in")
+    (iokit-property "connector-type")
     (iokit-property "device-colors")
     (iokit-property "graphic-options")
     (iokit-property "idProduct")
     (iokit-property "idVendor")
     (iokit-property "iofb_version")
-    (iokit-property "startup-timing"))
+    (iokit-property-regex #"^parser-(options|type)")
+    (iokit-property "port-number")
+    (iokit-property "startup-timing")
+    (iokit-property "touch-size-id")
+)
 #endif
 
 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300
index 7ccaeea..c20954c 100644 (file)
     (iokit-property "IOParentMatch")
     (iokit-property-regex #"^IOPCI(Express(Capabilities|Link(Status|Capabilities))|MSIMode|Resourced)")
     (iokit-property "IOPMIsPowerManaged")
-    (iokit-property "IOPlatformUUID")
+    (iokit-property-regex #"^IOPlatform(SerialNumber|UUID)")
     (iokit-property "IOPowerManagement")
     (iokit-property "IOProbeScore")
     (iokit-property "IOPropertyMatch")
     (iokit-property-regex #"^(rom|vbios)-revision")
     (iokit-property "saved-config")
     (iokit-property "startup-timing")
+    (iokit-property "touch-size-id")
 )
 #endif