Fix unwanted deletion of record/replay files
authorkrollin@apple.com <krollin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 20 Dec 2016 00:37:01 +0000 (00:37 +0000)
committerkrollin@apple.com <krollin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 20 Dec 2016 00:37:01 +0000 (00:37 +0000)
commitc07cf4fb6ac2b8fcd55d7212d0b195e7eac1d4b6
treee145931d97f823293c695b8125eeeb1577959aa7
parentcbe527e672a5cc3089fd6fee22b58d7d2dc6d3b3
Fix unwanted deletion of record/replay files
https://bugs.webkit.org/show_bug.cgi?id=166040

Reviewed by Alex Christensen.

As part of some refactoring, the objects that create the meta files
that are part of the record/replay cache would get deleted. They were
always getting opened in "write" mode", which would truncate the
files. Fix this so that the files are opened in the right modes for
record, replay, and neither.

* NetworkProcess/capture/NetworkCaptureManager.cpp:
(WebKit::NetworkCapture::Manager::initialize):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@210005 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/NetworkProcess/capture/NetworkCaptureManager.cpp