Merge pull request #2116 from brendandahl/metro
Mozilla central change for metro.
This commit is contained in:
commit
f318514ca7
@ -32,6 +32,7 @@ const PDF_VIEWER_WEB_PAGE = 'resource://pdf.js/web/viewer.html';
|
|||||||
const MAX_DATABASE_LENGTH = 4096;
|
const MAX_DATABASE_LENGTH = 4096;
|
||||||
const FIREFOX_ID = '{ec8030f7-c20a-464f-9b0e-13a3a9e97384}';
|
const FIREFOX_ID = '{ec8030f7-c20a-464f-9b0e-13a3a9e97384}';
|
||||||
const SEAMONKEY_ID = '{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}';
|
const SEAMONKEY_ID = '{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}';
|
||||||
|
const METRO_ID = '{99bceaaa-e3c6-48c1-b981-ef9b46b67d60}';
|
||||||
|
|
||||||
Cu.import('resource://gre/modules/XPCOMUtils.jsm');
|
Cu.import('resource://gre/modules/XPCOMUtils.jsm');
|
||||||
Cu.import('resource://gre/modules/Services.jsm');
|
Cu.import('resource://gre/modules/Services.jsm');
|
||||||
@ -50,7 +51,8 @@ if (appInfo.ID === FIREFOX_ID) {
|
|||||||
privateBrowsing = Cc['@mozilla.org/privatebrowsing;1']
|
privateBrowsing = Cc['@mozilla.org/privatebrowsing;1']
|
||||||
.getService(Ci.nsIPrivateBrowsingService);
|
.getService(Ci.nsIPrivateBrowsingService);
|
||||||
inPrivateBrowsing = privateBrowsing.privateBrowsingEnabled;
|
inPrivateBrowsing = privateBrowsing.privateBrowsingEnabled;
|
||||||
} else if (appInfo.ID === SEAMONKEY_ID) {
|
} else if (appInfo.ID === SEAMONKEY_ID ||
|
||||||
|
appInfo.ID === METRO_ID) {
|
||||||
privateBrowsing = null;
|
privateBrowsing = null;
|
||||||
inPrivateBrowsing = false;
|
inPrivateBrowsing = false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user