File scheme should not allow access of a resource on a different volume.
[WebKit-https.git] / Source / WebCore / ChangeLog
index ed81938..a0eb63d 100644 (file)
@@ -1,3 +1,21 @@
+2016-06-17  Pranjal Jumde  <pjumde@apple.com>
+
+        File scheme should not allow access of a resource on a different volume.
+        https://bugs.webkit.org/show_bug.cgi?id=158552
+        <rdar://problem/15307582>
+
+        Reviewed by Brent Fulgham.
+
+        Tests: Tools/TestWebKitAPI/Tests/mac/CrossPartitionFileSchemeAccess.mm
+
+        * page/SecurityOrigin.cpp:
+        (WebCore::SecurityOrigin::canDisplay):
+        * platform/FileSystem.cpp:
+        (WebCore::platformFileStat):
+        (WebCore::filesHaveSameVolume):
+        Returns true if the files are on the same volume
+        * platform/FileSystem.h:
+
 2016-06-17  Antoine Quint  <graouts@apple.com>
 
         Web video playback controls should have RTL volume slider