Commit Graph

37 Commits

Author SHA1 Message Date
Chris Peterson
f7ceeaf5cf Bug 1469769 - Part 6: Replace non-failing NS_NOTREACHED with MOZ_ASSERT_UNREACHABLE. r=froydnj
This patch is an automatic replacement of s/NS_NOTREACHED/MOZ_ASSERT_UNREACHABLE/. Reindenting long lines and whitespace fixups follow in patch 6b.

MozReview-Commit-ID: 5UQVHElSpCr
2018-06-17 22:43:11 -07:00
Sebastian Hengst
d91e9954eb Backed out 4 changesets (bug 525063) on request from Andi. a=backout
Backed out changeset 516c4fb1e4b8 (bug 525063)
Backed out changeset 6ff8aaef2866 (bug 525063)
Backed out changeset bf13e4103150 (bug 525063)
Backed out changeset d7d2f08e051c (bug 525063)
2018-04-13 16:01:28 +03:00
Tristan Bourvon
6095241db8 Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan 2018-04-10 21:11:02 +02:00
Sylvestre Ledru
055d8432e6 Bug 1443080 - Use the static call for static methods (not instance) r=Ehsan
MozReview-Commit-ID: JwHh4bzxuTR
2018-03-16 14:29:15 +01:00
Coroiu Cristina
8c03201dcc Backed out 2 changesets (bug 1443080) for spidermonkey build bustage at build/src/js/src/jit/BaselineCacheIRCompiler.cpp
Backed out changeset 7d509bb8a35d (bug 1443080)
Backed out changeset 53bdcd5937cd (bug 1443080)
2018-03-14 11:13:21 +02:00
Sylvestre Ledru
4a52aab337 Bug 1443080 - Use the static call for static methods (not instance) r=Ehsan
MozReview-Commit-ID: JwHh4bzxuTR
2018-03-05 13:43:54 +01:00
Bob Owen
5053655279 Bug 1441598 Part 2: When cancelling a print make sure the DialogOpened message has been sent. r=jwatt 2018-03-04 18:43:33 +00:00
Bob Owen
4281f3b730 Backed out changeset 0036938db4fe (bug 1441598) - for accidental printf. 2018-03-05 08:41:00 +00:00
Bob Owen
c91d766b8e Bug 1441598 Part 2: When cancelling a print make sure the DialogOpened message has been sent. r=jwatt 2018-03-05 08:22:14 +00:00
Bob Owen
11408aa983 Bug 1441598: Don't try and send messages to PrintProgressDialogChild when printing is complete. r=jwatt 2018-03-05 08:22:14 +00:00
Gabriele Svelto
a3682ceeb2 Bug 1100988 - Remove useless observer parameter in nsIPrintingPromptService.showPageSetup(); r=mconley
MozReview-Commit-ID: IpkwVR4YpO4
2018-02-05 11:11:50 +01:00
Jonathan Watt
1ae6f66b1f Bug 1432124 - Clean up and document nsPrintingProxy.h. r=bobowen
MozReview-Commit-ID: 6ANDHxqqQVg
2018-01-15 16:57:29 +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
Jonathan Watt
bfacaee30c Bug 144114 part 1 - Rename the files for nsPrintOptions and its subclasses. r=bobowen
MozReview-Commit-ID: EcotGH6pXCR
2017-12-19 10:06:39 +00:00
Mantaroh Yoshinaga
e03c605954 Bug 1419775 - Part 1.Prevent send IPC message when cancelling the print job if IPC connection already closed. r=mconley
If target content tab is already closed, progress dialog can't notify to content
process that cancelling the print job. So this patch will prevent send
cancelling message in this case.

MozReview-Commit-ID: 7G1LACajVha
2018-01-10 09:00:10 +09:00
Jonathan Watt
c61f7f5295 Bug 1425641, part 3 - Remove nsIWebBrowserPrint.GetCurrentChildDOMWindow. r=bobowen
MozReview-Commit-ID: EZHNKvyUT42
2017-12-06 16:02:34 +00:00
Ciure Andrei
ef2ce9728a Backed out 4 changesets (bug 1425641) for failing bc tests toolkit/components/printing/tests/browser_page_change_print_original.js r=backout a=backout on a CLOSED TREE
Backed out changeset 05966b36d7d6 (bug 1425641)
Backed out changeset 8a2305426cf2 (bug 1425641)
Backed out changeset c739bef415f1 (bug 1425641)
Backed out changeset 8339ddfe0a54 (bug 1425641)
2017-12-25 05:07:43 +02:00
Jonathan Watt
033506029d Bug 1425641, part 4 - Remove nsIWebBrowserPrint.GetCurrentChildDOMWindow. r=bobowen
MozReview-Commit-ID: 56tyJYySlco
2017-12-06 16:02:34 +00:00
Jonathan Watt
cb9b976ad6 Bug 1425178 - Rename nsPrintEngine to nsPrintJob. r=bobowen
MozReview-Commit-ID: 2HCNmeOLPd3
2017-12-04 11:44:17 -06:00
Bob Owen
97ccba1592 Bug 1420171 Part 3: Don't default the settings printer name on Linux when printing to file. r=mconley 2017-11-28 08:59:00 +00:00
Mantaroh Yoshinaga
983b919a4b Bug 1409971 - Part 3. Set nsIPrintSettings::IsCancelled to true in order to cancel print job. r=mconley
In content process, we should set nsIPrintSettings::IsCancelled to true in order
to cancel the print job. nsPrintEngine use this flag for cancelling.

MozReview-Commit-ID: EqnNJOlIm5s
2017-11-15 16:31:18 +09:00
Mantaroh Yoshinaga
f7061507e4 Bug 1409971 - Part 2. Notify cancelling print job when cancel button pushed. r=mconley
This patch will use existing nsIObserver, and distinguish each message by using
parameter character.

MozReview-Commit-ID: GAhPl7n9wmS
2017-11-15 16:29:49 +09:00
Mantaroh Yoshinaga
aa8a68d181 Bug 1409971 - Part 1. Add cancelling print job interface to PPrintProgressDialog. r=mconley
This patch will add empty ipc interface in order to notify cancelling print job.

MozReview-Commit-ID: KqBN5A4ARSd
2017-11-15 16:29:45 +09:00
Mantaroh Yoshinaga
ba692f9e62 Bug 1411121 - Part 3: Remove the nsIPrintingPromptService::showPrinterProperties() r=mconley
We can remove nsIPrintingPromptService::showPrinterProperties() since this
caller doesn't exist and this implementation of each platform returns
NS_ERROR_NOT_IMPLEMENTED.

MozReview-Commit-ID: 4s4ncv9U5Od
2017-11-06 09:27:05 +09:00
Csoregi Natalia
8d6fbff7ef Backed out 3 changesets (bug 1411121) for failling browser-chrome browser/base/content/test/static/browser_all_files_referenced.js r=backout on a CLOSED TREE
Backed out changeset 9f02fcb3d28c (bug 1411121)
Backed out changeset 9d8722dd9693 (bug 1411121)
Backed out changeset d390f8888d71 (bug 1411121)
2017-11-01 11:47:48 +02:00
Mantaroh Yoshinaga
ede4e16352 Bug 1411121 - Part 3: Remove the nsIPrintingPromptService::showPrinterProperties() r=mconley
We can remove nsIPrintingPromptService::showPrinterProperties() since this
caller doesn't exist and this implementation of each platform returns
NS_ERROR_NOT_IMPLEMENTED.

MozReview-Commit-ID: 4s4ncv9U5Od
2017-11-01 12:05:40 +09:00
Nicholas Nethercote
a0854fa6db Bug 1410288 - Change nsIPrintProgressParams' attributes from wstring to AString. r=bobowen.
It makes the C++ code nicer.
2017-10-19 11:32:37 +11:00
Nicholas Nethercote
d5b5ca8771 Bug 1407103 - Convert wstring attributes to AString in widget/nsIPrint*.idl. r=bobowen.
This avoids a lot of mismatches between nsAString and char16_t*, thus removing
many getter_Copies() and ToNewUnicode() and get() calls, and generally making
things simpler.

Note: the patch removes GetDefaultPrinterNameFromGlobalPrinters() by simply
inlining it at its two callsites, which is easy with the changed types.
2017-10-09 10:08:09 +11:00
cku
0d8c45cbd5 Bug 1351190 - Revert the change we made in this bug, since it causes a crash in bug 1404681. r=me
MozReview-Commit-ID: 87CBqK6upIU
2017-10-06 16:31:35 +08:00
Nicholas Nethercote
be5f8887c1 Bug 1390428 (part 9) - Remove nsXPIDLCString. r=erahm.
This is straightforward, with only two notable things.

- `#include "nsXPIDLString.h" is replaced with `#include "nsString.h"`
  throughout, because all nsXPIDLString.h did was include nsString.h. The
  exception is for files which already include nsString.h, in which case the
  patch just removes the nsXPIDLString.h inclusion.

- The patch removes the |xpidl_string| gtest, but improves the |voided| test to
  cover some of its ground, e.g. testing Adopt(nullptr).
2017-08-17 15:29:03 +10:00
Nicholas Nethercote
d24ecfe191 Bug 1387381 - Remove nsXPIDLString local variables. r=erahm.
nsXPIDLStrings are marked as VOIDED upon initialization. Most of these local
nsXPIDLString variables are immediately set via getter_Copies(), which will
either assign a string value (using Adopt()) or do SetIsVoid(). These can be
trivially converted to nsString, which will get the same treatment.

The patch suitably converts the remaining nsXPIDLString local variable as well.
2017-08-08 16:07:55 +10:00
Michael Layzell
e09e0eb0cd Bug 1348401 - Make the PPrinting::ShowProgress IPC message async, r=mconley, r=billm
MozReview-Commit-ID: 5pK08I3itYa
2017-05-19 16:16:13 -04:00
Nathan Froyd
3b526b2200 Bug 1359490 - add an event loop spinning abstraction function; r=gerald
This function is arguably nicer than calling NS_ProcessNextEvent
manually, is slightly more efficient, and will enable better auditing
for NS_ProcessNextEvent when we do Quantum DOM scheduling changes.
2017-05-15 09:34:19 -04:00
Farmer Tseng
e6a1e7ebca Bug 1351190 - Associate printing actor with SystemGroup r=bevistseng,smaug
MozReview-Commit-ID: VNLEKCFrtX
2017-03-29 13:43:44 +08:00
Julian Hector
cdac4efacc Bug 1329216 - Move default printer name querying. r=bobowen 2017-02-13 13:08:20 +01:00
Farmer Tseng
c1037ea11f Bug 1333331 - Convert files with DOS line breaks to Unix line breaks r=jwatt
MozReview-Commit-ID: D2pknLlULoj
2017-01-25 11:10:39 +08:00
Myk Melez
c3a3384c53 Bug 1309049 - move embedding/ files out of that directory, r=jst,mossop 2017-01-12 13:47:27 -08:00