Compiling a content extension fails when user's home directory is on a different...
authorbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 17 Apr 2015 00:53:19 +0000 (00:53 +0000)
committerbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 17 Apr 2015 00:53:19 +0000 (00:53 +0000)
commit825097ed96d54429a04137f055bcbe4580d393b8
tree70c47b7ae5b69601acf967f6972f07fe54008460
parente6453f00d5e8ebfd650ca4383493cf67ae6a5e7e
Compiling a content extension fails when user's home directory is on a different volume from /var/tmp.
https://bugs.webkit.org/show_bug.cgi?id=143834

Reviewed by Anders Carlsson.

Source/WebCore:

- Add moveFile() for a WK2 call site to use.
- Remove renameFile() as it is now dead code.

* platform/FileSystem.h:

* platform/gtk/FileSystemGtk.cpp:
(WebCore::renameFile): Deleted.

* platform/mac/FileSystemMac.mm:
(WebCore::moveFile):

* platform/posix/FileSystemPOSIX.cpp:
(WebCore::renameFile): Deleted.

* platform/win/FileSystemWin.cpp:
(WebCore::renameFile): Deleted.

Source/WebKit2:

* UIProcess/API/APIUserContentExtensionStore.cpp:
(API::compiledToFile): Use moveFile() instead of renameFile()

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@182932 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/FileSystem.h
Source/WebCore/platform/gtk/FileSystemGtk.cpp
Source/WebCore/platform/mac/FileSystemMac.mm
Source/WebCore/platform/posix/FileSystemPOSIX.cpp
Source/WebCore/platform/win/FileSystemWin.cpp
Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/APIUserContentExtensionStore.cpp