forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1754004 - Part 10: Clone PostData when writing into & reading fro…
…m SessionHistoryInfo, r=smaug Previously the SessionHistoryInfo would hold onto and hand out the original nsIInputStream objects which were provided by the nsDocShellLoadState and used to create the underlying channel. This could cause issues in edge cases, as input streams when serialized over IPC have their logical owner transferred to the IPC layer so that it can copy the data to the peer process. This patch changes the logic to instead clone the input stream to and from the history info. This means that the history info has its own instance of the stream type and interacting with it shouldn't interfere with other consumers of the post data stream. The behaviour for non-SHIP session history is not changed, as it doesn't serialize the relevant streams over IPC in the same way, and is on track to be removed. Differential Revision: https://phabricator.services.mozilla.com/D141047
- Loading branch information
Showing
5 changed files
with
57 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters