Граф коммитов

14 Коммитов

Автор SHA1 Сообщение Дата
Bob Owen 8ed9ad2db9 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 37efe4d0e6 Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj
MozReview-Commit-ID: DCPTnyBooIe

--HG--
extra : rebase_source : cfec2d96faeb11656d86d760a34e0a04cacddb13
extra : intermediate-source : 6176724d63788b0fe8caa3f91607c2d93dbaa7ec
extra : source : eebbb0600447f9b64aae3bcd47b4be66c02a51ea
2017-11-05 19:37:28 -08:00
Alex Gaynor 9054c73f6f Bug 1427012 - make the stream class used in printing more resilient to runtime errors, instead of crashing; r=bobowen
MozReview-Commit-ID: 6ExIvOAWfQX

--HG--
extra : rebase_source : fcf88ea80bb0f202c1d28396f554b612fe73fcf1
2018-01-05 14:52:54 -05:00
Alex Gaynor 8cb6e552a8 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

--HG--
extra : rebase_source : 9b91e9b01708d73915a49684c2cec96457650e45
2017-11-03 14:37:15 -04:00
Alex Gaynor c8aadb27c8 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

--HG--
extra : rebase_source : bcdce5d57fd0620610a5c797045d95b44fbc9099
2017-11-16 13:38:33 -05:00
Alex Gaynor 016a127546 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

--HG--
extra : rebase_source : 15b9a2eccdc5ce001bacb776e15f98f4d368c436
2017-11-03 14:03:02 -04:00
Alex Gaynor abe0912713 Bug 1411984 - Use buffered IO in the content process when writing print data for IPC; r=haik
MozReview-Commit-ID: DJuOP2wtku5

--HG--
extra : rebase_source : b14c2e67adb0c4802297013ea80ec068fb7196c4
2017-10-26 15:08:39 -04:00
Ryan VanderMeulen 37d7c47eef Backed out changeset 8e247550d6cf (bug 1411984) for bustage. 2017-11-01 16:47:19 -04:00
Alex Gaynor 62bc81b4d1 Bug 1411984 - Use buffered IO in the content process when writing print data for IPC; r=haik
MozReview-Commit-ID: DJuOP2wtku5

--HG--
extra : rebase_source : a1b03b1bd85b2bbe073e93c3cd1643c43d449e0c
2017-10-26 15:08:39 -04:00
Daniel Holbert 680815cd6e 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

--HG--
extra : rebase_source : 3356d4b80ff6213935192e87cdbc9103fec6084c
2017-10-27 10:33:53 -07:00
Alex Gaynor bf64667f76 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

--HG--
extra : rebase_source : 86d251a9b73013356e4cc9323d35121839fafba9
2017-10-25 14:16:12 -04:00
Alex Gaynor e6c660f838 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

--HG--
extra : rebase_source : f8f94b222fffa16ab973d07c940bfd64b5407440
2017-10-03 16:34:18 -04:00
Alex Gaynor b00c32c807 Bug 1319423 - Part 2 - Switch away from std::ifstream to PRFileDesc in PrintTranslator; r=jrmuizel
MozReview-Commit-ID: 6ucwbGkqOQ0

--HG--
extra : rebase_source : ab0540e2b7d61108c8c550d8bf8b8a594364f90a
2017-10-03 13:23:57 -04:00
Alex Gaynor 41d8032290 Bug 1319423 - Part 1 - Introduce DrawEventRecorderPRFileDesc to allow switching away from std::ofstream in printing; r=jrmuizel
MozReview-Commit-ID: 1gn8J2fhejS

--HG--
extra : rebase_source : 02b6224c2788964c375092e58174efbacfdbdba5
2017-10-03 12:29:15 -04:00