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

138 Коммитов

Автор SHA1 Сообщение Дата
Mike Conley 03b699b5f3 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.

--HG--
extra : commitid : 7bG2asTYoDR
extra : rebase_source : 3d8d10dbd0d7ce4b2891d81b5f15d71341b79f84
2015-07-03 16:06:04 -04:00
Karl Tomlinson 603b1ace02 bug 147419 remove ununsed plexName colorspace resolutionName and downloadFonts r=roc
This was only used to write to and read from otherwise unused preferences.

--HG--
extra : rebase_source : a538569807b8340dae3fe9f0cbfc68334e20ccc9
2015-06-11 09:34:27 +12:00
Karl Tomlinson a19a1f0d0c bug 147419 remove ununsed nsIPrintSettings::printCommand and print_command prefs r=roc
These was used only to write to and read from each other.

--HG--
extra : rebase_source : ef49678652f829fe23611fb2294a22c3ffd91cf1
2015-06-10 18:10:28 +12:00
Philip Chee b51ca549c7 Bug 1142997 - Cannot Print from Composer and other <editor> elements r=mossop 2015-03-24 20:03:12 +08:00
Mike Conley 96b768ed22 Bug 1090448 - Enable printing with e10s windows on Linux. r=felipe.
--HG--
extra : rebase_source : d864ce61df125feccb65810d4890f27289bb2a16
2015-02-06 16:03:49 -05:00
Mike Conley 45f61a04fc Bug 1088070 - Move saving nsIPrintSettings after a print job to browser-content.js. r=Mossop.
--HG--
extra : rebase_source : e63eeb503ec43a98e3c87b890db4d8e0fb3a8144
extra : source : d053fdf3b60984f3cbca960c49d5f28e9a14e82d
2015-03-05 13:16:35 -05:00
Mike Conley f88e685d5b Bug 1088070 - Instantiate print settings from the content process instead of the parent. r=Mossop.
--HG--
extra : rebase_source : 08e0ef34903f2c40bb85e62e81b0a3b553f9cd97
extra : source : 20a6d6e9c31a20ee380fde5771b9767ecf3671f4
2015-03-05 13:16:48 -05:00
Carsten "Tomcat" Book 613f16ca64 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 b9c9186230 Backed out changeset d053fdf3b609 (bug 1088070) 2015-03-05 08:54:03 +01:00
Mike Conley 7194b7f247 Bug 1088070 - Move saving nsIPrintSettings after a print job to browser-content.js. r=Mossop.
--HG--
extra : rebase_source : 99ec08465c6ed5366204a9140e1572621d9223a9
2015-02-27 14:17:33 -05:00
Mike Conley a16ed32af3 Bug 1088070 - Instantiate print settings from the content process instead of the parent. r=Mossop.
--HG--
extra : rebase_source : 1a70d9c3ed29d6587fbebd04b4daedc387254aaa
2015-02-06 14:17:43 -05:00
Mike Conley 381b99210c Bug 1136855 - Send a message from the content script when printing has finished so the parent can save print settings. r=Mossop.
--HG--
extra : amend_source : 85532271337b34b4e46e8420c04c57a705e256f6
2015-02-25 15:45:22 -05:00
Mike Conley 2756ce4d4b 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.

--HG--
extra : amend_source : cd6d89feb1b7e95a2a02452412580a4d00d52ad1
2015-01-06 14:52:01 -05:00
Dão Gottwald 6a3af64ec2 Bug 647540 - Get rid of the toolbar-primary class. r=enn
--HG--
extra : rebase_source : 3b1bf2598d73f7242945e4296df947f66dbeaf0a
2014-12-18 23:31:39 +01:00
Ryan VanderMeulen 914582b88e Backed out changeset 326f890f61a5 (bug 647540) for mass test bustage.
CLOSED TREE
2014-12-18 15:49:07 -05:00
Dão Gottwald a734ce9a37 Bug 647540 - Get rid of the toolbar-primary class. r=enn
--HG--
extra : rebase_source : a42a4c583376dfa153bd4e7bae514646b35a6e22
2014-12-18 19:53:27 +01:00
Philip Chee e960a75af3 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 912b2e94df 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.

--HG--
extra : amend_source : 12638e8fd0c0da9b3036d7892d02a360b7513ec5
2014-11-04 12:10:15 -05:00
Mike Conley 6f3cd935e0 Bug 1082575 - Make PrintUtils and printPreviewBindings.xml more e10s friendly. r=Mossop.
--HG--
extra : rebase_source : c26a2bb4b84cb8ce7bbbdf8dc3e05793cb118a3d
2014-10-28 10:58:07 -04:00
Benoit Jacob 40025ecc68 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 7e20285e70 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 30671093e2 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 f3c74d2f8e Bug 966612 part.1 Print preview should handle Esc key with keydown event r=enndeakin 2014-02-06 00:14:35 +09:00
Magnus Melin fb5e9ecf33 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 19c7a57aa2 Bug 844479 - Don't background the original window during print preview. r=Mossop 2013-07-17 15:01:43 -07:00
Peter Van der Beken a0c91feb8e Fix for bug 830342 (Scale combobox is broken in print-preview, after selecting "Custom" and then hitting "Cancel" on its spawned dialog). r=dolske.
--HG--
extra : rebase_source : 6c8804f960ac42e0773d4283637bf4073aeb408c
2013-01-17 12:16:33 +01:00
Neil Rashbrook eaedd546e8 Bug 758354 Stop unnecessarily preprocessing chrome r=dolske 2012-06-26 00:11:16 +01:00
Ed Morley f58ad725ea Backout ec9451e9e830 (bug 758354) for PGO linux permaorange in browser_bug422590.js and friends 2012-06-25 19:14:43 +01:00
Neil Rashbrook aee62bb4bd Bug 758354 Stop unnecessarily preprocessing chrome r=dolske 2012-06-25 09:24:49 +01:00
Gervase Markham 82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Oonishi Atsushi 8f0353652d Bug 311007 - Add aFlags arg to onLocationChange(...), to distinguish between same-document and different-document. r=smaug, sr=bzbarsky 2011-11-10 15:01:11 +01:00
Michael Kohler 6c0f59f4a6 Bug 506041 Part 2: Correct misspellings in source code
r=timeless
2010-05-13 14:19:50 +02:00
Olli Pettay f2877b7b35 Bug 545330 - Crash [@ PresShell::Destroy] on exit after failed Print Preview of XUL document, r=mats 2010-02-11 13:02:38 +02:00
Olli Pettay 9fdb936eb2 Bug 544018 - print preview doesn't work in view source , r=dao 2010-02-09 18:24:49 +02:00
Olli Pettay f09ebf9810 backout Bug 544018 2010-02-08 19:00:41 +02:00
Olli Pettay 93a48e52ac Bug 544018 - print preview doesn't work in view source, r=dao 2010-02-08 18:16:57 +02:00
Olli Pettay 423522c88b Bug 487667 - Clone documents for printing, r=roc+jst+joe+dbaron
--HG--
extra : rebase_source : dbab242066ba97c0d7f34a2fb701a1c465f26ec4
2009-12-10 20:02:13 -08:00
Johnny Stenback 89fd45f879 Fixing bug 440486. Work around a Windows XP fax dialog bug. r=rstrong. 2009-11-05 21:14:27 -08:00
Masahiro Yamada c12e1c8369 Bug 505060 - [Print preview]Changing scale xx% -> shrink to fit -> xx% does not work. r=gavin.sharp 2009-10-10 23:20:35 +09:00
Jae-Seong Lee e85e9409e1 Bug 483419 - Rename the left-arrow and right-arrow class names in the print preview toolbar to previous-arrow and next-arrow. r=dao 2009-10-02 08:21:38 +02:00
KUROSAWA, Takeshi af1e342c5a Bug 398388 - XUL numberboxes for the Print Preview. r=gavin 2009-09-29 21:18:20 +02:00
Neil Deakin b0b5174739 Bug 503627, pass an actual window to showProgress so it doesn't try to use the active setup dialog instead, r=mconnor 2009-09-09 17:01:12 -04:00
Dão Gottwald 32c8f9d7d5 Bug 454562 - clean up onEnterPrintPreview, onExitPrintPreview and related code. r=mano 2009-09-09 09:50:46 +02:00
Ehsan Akhgari 85fb282858 Bug 487656 - zoomed in by default while entering Private Browsing; r=dao,mconnor 2009-08-02 22:23:01 +04:30
Neil Deakin 69bd6c8514 Bug 478416, replace chromedir attribute with :moz-locale-dir pseudoclass, r=neil,dao,dbaron,sr=dbaron 2009-07-29 14:33:53 -04:00
MattN 9830f8fd52 Bug 426079 - Print Preview toolbar not shown if launched from window without toolbar. r=gavin 2009-07-10 09:01:49 +02:00
Neil Deakin 15df29db77 Bug 178324, refactor focus by moving all focus handling into one place and simplifying it, add many tests, fixes many other bugs too numerous to mention in this small checkin comment, r=josh,smichaud,ere,dbaron,marco,neil,gavin,smaug,sr=smaug (CLOSED TREE) 2009-06-10 14:00:39 -04:00
Vlado Valastiak 77760857d2 Bug 277296 - The print dialogs have no accesskeys; r=gavin, a191=beltzner 2008-11-28 22:07:51 +01:00
Daniel Holbert 5492039225 Bug 458167 - (comments-only changes) Grammar Nazi Vol1: s/it's/its/ for the posessive version of the word, and a few other misc comment-typos, in these directories: accessible browser config profile rdf toolkit tools xpcom xpfe 2008-10-01 23:49:45 -07:00
Serge Gautherie 5e6731a22b Bug 445376 - In </toolkit/*>, "use a xul <stringbundle/> instead of including the strres.js code"
(Av1) <print*.*>
r=Enn
2008-08-20 00:27:04 -05:00