Commit Graph

219 Commits

Author SHA1 Message Date
Jared Wein
99638e1465 Bug 1294621 - Enable the no-lonely-if rule for eslint. r=gijs
MozReview-Commit-ID: 8izEqc8IyCu
2016-08-12 11:50:35 -04:00
Dão Gottwald
b40e7373ca Bug 334598 - Use Unicode symbols in print preview page navigation buttons. r=felipe 2016-08-06 16:23:26 +02:00
Jared Wein
4518d81cb5 Bug 1292042 - Enable the keyword-spacing rule for eslint. Most of this patch was autogenerated by 'eslint --fix'. Files with .xml extension needed to be changed by hand due to limitations of custom plugin. r=markh
MozReview-Commit-ID: EMjJ3yWt9Wt
2016-08-04 03:28:58 -04:00
Jared Wein
ebf1ccbe46 Bug 1291855 - Enable the no-else-return rule for eslint. r=Felipe,kmag,mossop
MozReview-Commit-ID: DYOmE6xwMJh
2016-08-03 18:54:59 -04:00
Thauã Silveira
8437b8251b Bug 1287587 - Add Telemetry probes for user printing activities. r=mconley, data-review=liuche 2016-07-21 13:57:00 -04:00
Tom Tromey
1b5a2bdb96 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx
2016-07-14 10:16:42 -06:00
Matheus Longaray
b17aa881a9 Bug 1285544 - Make sure print jobs that go through simplification get the right document URL set. r=mconley. 2016-07-11 08:48:00 +02:00
Thauã Silveira
bb374c36b1 Bug 1275570 - "Add Telemetry probe to see how often users enter print preview, and how many simplify the view". r=mconley 2016-06-08 13:14:00 +02:00
Matheus Longaray
fefc1f255f Bug 962433 - "Use Reader Mode for printing articles" [r=mconley]
This adds a checkbox to the print preview toolbar for simplifying
a document before printing.

This feature is currently disabled by default, hidden behind the
print.use_simplify_page pref.

MozReview-Commit-ID: HOtkuEQnJFg
2016-06-02 09:29:00 -04:00
Xidorn Quan
d618e810bf Bug 1274834 - Make print preview toolbar a fullscreentoolbar. r=dao
MozReview-Commit-ID: HdQBBcbSQSs
2016-05-23 13:54:00 +10:00
Dave Townsend
769fc8f245 Bug 1257246: Update toolkit for eslint 2. r=Gijs
Most of this is fixing functions that in some cases return a value but then
can also run to completion without returning anything. ESLint 2 catches this
where previous versions didn't. Unless there was an obvious other choice I just
made these functions return undefined at the end which is effectively what
already happens.

MozReview-Commit-ID: KHYdAkRvhVr
2016-04-05 11:33:48 -07:00
Dave Townsend
a2ba043d69 Bug 1245649: Turn on no-trailing-spaces. r=Gijs 2016-02-03 14:22:33 -08:00
Dave Townsend
2e4b5d2078 Bug 1245649: Merge browser and toolkit eslint rule settings. r=felipe 2016-02-03 13:12:18 -08:00
Bob Owen
71fe92a4fb Bug 1238964 Part 2: Move separate DEVMODE to nsIPrintSettings copying into nsPrintSettingsWin. r=jimm
This also corrects what I think are long standing issues with the mapping to and
from print settings on Windows.
Firstly it only uses the DEVMODE flags to decide what should get stored, in the
old code if paper size was not set, it would then use that possibly invalid
paper size to map to length and width. Paper setting prefs are mapped back if
they were stored or if they have been manually set to something sane.
Secondly it corrects the calculation that was used to convert from millimeters
to tenths of millimeters.
It also gets rid of the paperSizeType field, which was only used on Windows and
doesn't actually make sense according to the DEVMODE documentation as the
dmPaperLength and dmPaperWidth fields override the dmPaperSize, but can in
theory be specified at the same time.
2016-01-12 17:40:07 +00:00
Mike Conley
f844f53e5a Bug 1199434 - Send printer error messages to the parent process to report to the user. r=Mossop
The printing back-end used to be in charge of opening up an error dialog
when things go wrong with printing. Now we fire an event and let PrintUtils
do the work of showing the error message. This has the added bonus of making
the error messages work with e10s.
2015-09-16 16:12:54 -04:00
Mike Conley
ee684e0a3c Bug 1146454 - Stop using CPOWs for printing. r=billm
We were passing around content window CPOWs before to indicate
which content to send to the printer. This was, naturally, causing
unsafe CPOW usage warnings - especially when attempting to get at
the content window of an iframe with the context menu printing
command.

This patch changes the printing mechanism to use outer window IDs
instead of CPOWs.
2015-07-03 16:06:04 -04:00
Karl Tomlinson
8e7d93aacf bug 147419 remove ununsed plexName colorspace resolutionName and downloadFonts r=roc
This was only used to write to and read from otherwise unused preferences.
2015-06-11 09:34:27 +12:00
Karl Tomlinson
1af6bef0d4 bug 147419 remove ununsed nsIPrintSettings::printCommand and print_command prefs r=roc
These was used only to write to and read from each other.
2015-06-10 18:10:28 +12:00
Philip Chee
4eba02f63a Bug 1142997 - Cannot Print from Composer and other <editor> elements r=mossop 2015-03-24 20:03:12 +08:00
Sebastian Hengst
e35e29ccdb Bug 1143470 - Add BUG_COMPONENT to moz.build files in toolkit and xulrunner. r=gavin 2015-03-15 19:36:24 +01:00
Mike Conley
362e16502d Bug 1090448 - Enable printing with e10s windows on Linux. r=felipe. 2015-02-06 16:03:49 -05:00
Mike Conley
c16857a8bc Bug 1088070 - Move saving nsIPrintSettings after a print job to browser-content.js. r=Mossop. 2015-03-05 13:16:35 -05:00
Mike Conley
9b0dad6cd6 Bug 1088070 - Instantiate print settings from the content process instead of the parent. r=Mossop. 2015-03-05 13:16:48 -05:00
Carsten "Tomcat" Book
5bf92c899f Backed out changeset 20a6d6e9c31a (bug 1088070) for bc1 test failures on a CLOSED TREE 2015-03-05 08:54:23 +01:00
Carsten "Tomcat" Book
273472cb1b Backed out changeset d053fdf3b609 (bug 1088070) 2015-03-05 08:54:03 +01:00
Mike Conley
08a24a7aad Bug 1088070 - Move saving nsIPrintSettings after a print job to browser-content.js. r=Mossop. 2015-02-27 14:17:33 -05:00
Mike Conley
b4f1082842 Bug 1088070 - Instantiate print settings from the content process instead of the parent. r=Mossop. 2015-02-06 14:17:43 -05:00
Mike Conley
257ea25eb1 Bug 1136855 - Send a message from the content script when printing has finished so the parent can save print settings. r=Mossop. 2015-02-25 15:45:22 -05:00
Mike Conley
3b20e67dc9 Bug 1117936 - If print preview throws in browser-content.js, make sure printUtils.js can handle the error. r=Mossop.
It's possible for docShell.printPreview.printPreview to throw (if we're attempting to print preview a
XUL document, for example). If it throws, this can put printUtils.js in a funny state, since it's waiting
to hear that print preview was successfully entered.

This patch makes it possible for browser-content.js to inform the parent that printPreview failed, and for
the parent to react appropriately.
2015-01-06 14:52:01 -05:00
Dão Gottwald
3ce1156660 Bug 647540 - Get rid of the toolbar-primary class. r=enn 2014-12-18 23:31:39 +01:00
Ryan VanderMeulen
03979309b7 Backed out changeset 326f890f61a5 (bug 647540) for mass test bustage.
CLOSED TREE
2014-12-18 15:49:07 -05:00
Dão Gottwald
d9448f72ea Bug 647540 - Get rid of the toolbar-primary class. r=enn 2014-12-18 19:53:27 +01:00
Philip Chee
88a2dd8cf3 Bug 1092826 - Cu. and Ci. is undefined errors in PrintUtils since Bug 1082575 (regression) r=mconley 2014-11-17 14:56:55 +08:00
Mike Conley
94a2f1b5a8 Bug 1089815 - View source print preview browser does not have a message manager. r=Mossop.
<xul:browser>'s do not get messageManager's constructed for them unless they
have their type attribute set to "content", "content-targetable", or
"content-primary". This patch updates the view source print preview browser
with that type attribute, and also updates the PrintUtils documentation to
mention this requirement.
2014-11-04 12:10:15 -05:00
Mike Conley
04e3a9ce78 Bug 1082575 - Make PrintUtils and printPreviewBindings.xml more e10s friendly. r=Mossop. 2014-10-28 10:58:07 -04:00
Benoit Jacob
a8bec4bd62 Bug 1034321 - Officially don't try to print e10s tabs until that is supported - r=billm 2014-07-11 16:29:21 -04:00
Jim Blandy
39dc0c6097 Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):

 - Never set the buffer's mode.

   Years ago, Emacs did not have a good JavaScript mode, so it made sense
   to use Java or C++ mode in .js files. However, Emacs has had js-mode for
   years now; it's perfectly serviceable, and is available and enabled by
   default in all major Emacs packagings.

   Selecting a mode in the -*- file variable line -*- is almost always the
   wrong thing to do anyway. It overrides Emacs's default choice, which is
   (now) reasonable; and even worse, it overrides settings the user might
   have made in their '.emacs' file for that file extension. It's only
   useful when there's something specific about that particular file that
   makes a particular mode appropriate.

 - Correctly propagate settings that establish the correct indentation
   level for this file: c-basic-offset and js2-basic-offset should be
   js-indent-level. Whatever value they're given should be preserved;
   different parts of our tree use different indentation styles.

 - We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
   Remove tab-width: settings, at least in files that don't contain tab
   characters.

 - Remove js2-mode settings that belong in the user's .emacs file, like
   js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00
Oskar Eisemut
0f877adc75 Bug 968141 - Remove pref print.whileInPrintPreview and print.tmp.printerfeatures can_use_multiple_devicecontexts_concurrently, was default enabled since Bug 126802 anyway. r=roc 2014-02-07 12:44:00 +01:00
Masayuki Nakano
372e951c58 Bug 966612 part.1 Print preview should handle Esc key with keydown event r=enndeakin 2014-02-06 00:14:35 +09:00
Gregory Szorc
6e1333520a Bug 774572 - Part 2: Define JAR_MANIFESTS in moz.build files; r=glandium
Every directory with a jar.mn now has JAR_MANIFESTS defined in its
moz.build file.

We also removed the may_skip special consideration of jar.mn files
because this information is now available during tier traversal by the
reader courtesy of the variables being present in moz.build files.
2013-12-10 16:18:11 +09:00
Magnus Melin
754a75ac21 Bug 907338 - "Ci is undefined" error in printUtils.js - thunderbird's print preview doesn't show any preview. r=Mossop 2013-08-21 22:43:01 +03:00
Brendan Dahl
fb832fe5c6 Bug 844479 - Don't background the original window during print preview. r=Mossop 2013-07-17 15:01:43 -07:00
Kyle Machulis
331f36baa9 Bug 855465 - Add emacs python mode comments to moz.build files; r=gps 2013-04-01 11:36:59 -07:00
Kyle Machulis
ec9b53db93 Backout for changeset 03452b187c14 (Bug 855465) due to bustage on a CLOSED TREE; r=qdot 2013-03-29 15:12:58 -07:00
Kyle Machulis
0419a0b889 Bug 855465 - Add emacs python mode comments to moz.build files; r=gps 2013-03-29 13:56:18 -07:00
Gregory Szorc
9b83c3d1f4 Bug 844635 - Part 3: Remove empty Makefile.in files; r=glandium 2013-03-17 18:01:25 -07:00
Gregory Szorc
f96c000ea2 Bug 784841 - Part 18θ: Convert /toolkit f=Mossop, Ms2ger; rs=ted 2013-02-25 13:19:09 -08:00
Peter Van der Beken
b354a31ab6 Fix for bug 830342 (Scale combobox is broken in print-preview, after selecting "Custom" and then hitting "Cancel" on its spawned dialog). r=dolske. 2013-01-17 12:16:33 +01:00
Mike Hommey
0f9f294ea0 Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Neil Rashbrook
3f194429dd Bug 758354 Stop unnecessarily preprocessing chrome r=dolske 2012-06-26 00:11:16 +01:00