mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
Bug 1090448 - Enable printing with e10s windows on Linux. r=felipe.
--HG-- extra : rebase_source : d864ce61df125feccb65810d4890f27289bb2a16
This commit is contained in:
parent
24affce8d1
commit
96b768ed22
@ -1856,13 +1856,6 @@ pref("privacy.trackingprotection.ui.enabled", false);
|
||||
pref("browser.tabs.remote.autostart.1", true);
|
||||
#endif
|
||||
|
||||
// Temporary pref to allow printing in e10s windows on some platforms.
|
||||
#ifdef UNIX_BUT_NOT_MAC
|
||||
pref("print.enable_e10s_testing", false);
|
||||
#else
|
||||
pref("print.enable_e10s_testing", true);
|
||||
#endif
|
||||
|
||||
#ifdef NIGHTLY_BUILD
|
||||
// Enable e10s add-on interposition by default.
|
||||
pref("extensions.interposition.enabled", true);
|
||||
|
@ -69,22 +69,6 @@ var gSavePrintSettings = false;
|
||||
var gFocusedElement = null;
|
||||
|
||||
var PrintUtils = {
|
||||
bailOut: function () {
|
||||
let pref = Components.classes["@mozilla.org/preferences-service;1"]
|
||||
.getService(Components.interfaces.nsIPrefBranch);
|
||||
let allow_for_testing = false;
|
||||
try {
|
||||
allow_for_testing = pref.getBoolPref("print.enable_e10s_testing");
|
||||
} catch(e) {
|
||||
// The pref wasn't set, so I guess we're not overriding.
|
||||
}
|
||||
if (this.usingRemoteTabs && !allow_for_testing) {
|
||||
alert("e10s printing is not implemented yet. Bug 927188.");
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
},
|
||||
|
||||
/**
|
||||
* Shows the page setup dialog, and saves any settings changed in
|
||||
* that dialog if print.save_print_settings is set to true.
|
||||
@ -92,9 +76,6 @@ var PrintUtils = {
|
||||
* @return true on success, false on failure
|
||||
*/
|
||||
showPageSetup: function () {
|
||||
if (this.bailOut()) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
var printSettings = this.getPrintSettings();
|
||||
var PRINTPROMPTSVC = Components.classes["@mozilla.org/embedcomp/printingprompt-service;1"]
|
||||
@ -132,10 +113,6 @@ var PrintUtils = {
|
||||
*/
|
||||
print: function (aWindow, aBrowser)
|
||||
{
|
||||
if (this.bailOut()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!aWindow) {
|
||||
// If we're using remote browsers, chances are that window.content will
|
||||
// not be defined.
|
||||
@ -205,9 +182,6 @@ var PrintUtils = {
|
||||
*/
|
||||
printPreview: function (aListenerObj)
|
||||
{
|
||||
if (this.bailOut()) {
|
||||
return;
|
||||
}
|
||||
// if we're already in PP mode, don't set the listener; chances
|
||||
// are it is null because someone is calling printPreview() to
|
||||
// get us to refresh the display.
|
||||
|
Loading…
Reference in New Issue
Block a user