Commit Graph

14 Commits

Author SHA1 Message Date
Bob Owen
dc15c5fe5f Bug 1431475: Make assertions guarding opening and closing print recording file streams MOZ_DIAGNOSTIC_ASSERTs. r=jwatt 2018-01-22 17:54:53 +00:00
Chris Peterson
677bf4030c Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj
MozReview-Commit-ID: DCPTnyBooIe
2017-11-05 19:37:28 -08:00
Alex Gaynor
21a863dbd8 Bug 1427012 - make the stream class used in printing more resilient to runtime errors, instead of crashing; r=bobowen
MozReview-Commit-ID: 6ExIvOAWfQX
2018-01-05 14:52:54 -05:00
Alex Gaynor
e00d17e17c Bug 1414834 - re-land print IPC changes from bug 1319423; r=bobowen
With this patch print IPC no longer requires the child process to create files.
Instead files are opened by the parent and a file descriptor is sent to the
child. This will allow us to sandbox child processes more aggressively.

MozReview-Commit-ID: GQWTYLV01kj
2017-11-03 14:37:15 -04:00
Alex Gaynor
735ec73a44 Bug 1417939 - do not crash in release builds when a PRFileDescStream is closed twice; r=bobowen
This makes it API compatible with std::ostream, which it replaced. This silences a rare crash.

MozReview-Commit-ID: JoNo1qRCb0n
2017-11-16 13:38:33 -05:00
Alex Gaynor
dfbea0e70e Bug 1412643 - revert part 3 of the changes from 1319423 to fix print selection; r=bobowen
This will be re-landed with a real fix for print-selection after we branch for 58.

MozReview-Commit-ID: JjhBEiEviVB
2017-11-03 14:03:02 -04:00
Alex Gaynor
e81ec25eb2 Bug 1411984 - Use buffered IO in the content process when writing print data for IPC; r=haik
MozReview-Commit-ID: DJuOP2wtku5
2017-10-26 15:08:39 -04:00
Ryan VanderMeulen
f1c97e10fa Backed out changeset 8e247550d6cf (bug 1411984) for bustage. 2017-11-01 16:47:19 -04:00
Alex Gaynor
b15f5325af Bug 1411984 - Use buffered IO in the content process when writing print data for IPC; r=haik
MozReview-Commit-ID: DJuOP2wtku5
2017-10-26 15:08:39 -04:00
Daniel Holbert
8fea3c215f Bug 1412346 part 5: (automated patch) Switch a bunch of C++ files in layout to use our standard mode lines. r=jfkthame
This patch was generated automatically by the "modeline.py" script, available
here: https://github.com/amccreight/moz-source-tools/blob/master/modeline.py

For every file that is modified in this patch, the changes are as follows:
 (1) The patch changes the file to use the exact C++ mode lines from the
     Mozilla coding style guide, available here:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#Mode_Line

 (2) The patch deletes any blank lines between the mode line & the MPL
     boilerplate comment.

 (3) If the file previously had the mode lines and MPL boilerplate in a
     single contiguous C++ comment, then the patch splits them into
     separate C++ comments, to match the boilerplate in the coding style.

MozReview-Commit-ID: EuRsDue63tK
2017-10-27 10:33:53 -07:00
Alex Gaynor
13ab582276 Bug 1409768 - Don't call fsync repeatedly when printing; r=bobowen
Usage of sync was a mistake when porting from the previous std::ostream code.

MozReview-Commit-ID: HwbFVlZMu6t
2017-10-25 14:16:12 -04:00
Alex Gaynor
c4f22ca1b5 Bug 1319423 - Part 3 - Change the print IPC to not require the content process to create a temporary file; r=bobowen
MozReview-Commit-ID: GLhTbfREk0n
2017-10-03 16:34:18 -04:00
Alex Gaynor
47eee38d91 Bug 1319423 - Part 2 - Switch away from std::ifstream to PRFileDesc in PrintTranslator; r=jrmuizel
MozReview-Commit-ID: 6ucwbGkqOQ0
2017-10-03 13:23:57 -04:00
Alex Gaynor
a86359f0e1 Bug 1319423 - Part 1 - Introduce DrawEventRecorderPRFileDesc to allow switching away from std::ofstream in printing; r=jrmuizel
MozReview-Commit-ID: 1gn8J2fhejS
2017-10-03 12:29:15 -04:00