summaryrefslogtreecommitdiffstats
path: root/toolkit
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-10-28 00:08:32 +0200
committerGitHub <noreply@github.com>2018-10-28 00:08:32 +0200
commit5069a375970762f63069a3b750dca817ae5bda2c (patch)
tree577c12e5548a036fe1d0e6263762fad879b4d82d /toolkit
parent76825544ffb9f6f317266ce4203ddb8b4ccc1690 (diff)
parent6bdbb9cdf663578619671e6f923c665349b9a2ac (diff)
downloadUXP-5069a375970762f63069a3b750dca817ae5bda2c.tar
UXP-5069a375970762f63069a3b750dca817ae5bda2c.tar.gz
UXP-5069a375970762f63069a3b750dca817ae5bda2c.tar.lz
UXP-5069a375970762f63069a3b750dca817ae5bda2c.tar.xz
UXP-5069a375970762f63069a3b750dca817ae5bda2c.zip
Merge pull request #857 from JustOff/PR_BackgroundPageThumbs_remote
Use a separate process to generate thumbnails only when multi-process mode is enabled
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/components/thumbnails/BackgroundPageThumbs.jsm6
1 files changed, 5 insertions, 1 deletions
diff --git a/toolkit/components/thumbnails/BackgroundPageThumbs.jsm b/toolkit/components/thumbnails/BackgroundPageThumbs.jsm
index 7b86fa07c..3eec9827d 100644
--- a/toolkit/components/thumbnails/BackgroundPageThumbs.jsm
+++ b/toolkit/components/thumbnails/BackgroundPageThumbs.jsm
@@ -206,9 +206,13 @@ const BackgroundPageThumbs = {
let browser = this._parentWin.document.createElementNS(XUL_NS, "browser");
browser.setAttribute("type", "content");
- browser.setAttribute("remote", "true");
browser.setAttribute("disableglobalhistory", "true");
+ if (Services.prefs.getPrefType("browser.tabs.remote") == Services.prefs.PREF_BOOL &&
+ Services.prefs.getBoolPref("browser.tabs.remote")) {
+ browser.setAttribute("remote", "true");
+ }
+
if (Services.prefs.getBoolPref(ABOUT_NEWTAB_SEGREGATION_PREF)) {
// Use the private container for thumbnails.
let privateIdentity =