mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1356030 - move HiddenFrame.jsm to toolkit, r=kmag
MozReview-Commit-ID: DUuYqamNMdT --HG-- rename : browser/modules/HiddenFrame.jsm => toolkit/modules/HiddenFrame.jsm extra : rebase_source : 7624e178fd2ba0ca9ba6d624ff2d18156e8d90fe
This commit is contained in:
parent
0a3160aef4
commit
519b14ab26
@ -12,7 +12,7 @@ const { when: unload } = require("../system/unload");
|
||||
const prefs = require("../preferences/service");
|
||||
|
||||
if (!prefs.get("extensions.usehiddenwindow", false)) {
|
||||
const {HiddenFrame} = require("resource:///modules/HiddenFrame.jsm", {});
|
||||
const {HiddenFrame} = require("resource://gre/modules/HiddenFrame.jsm", {});
|
||||
let hiddenFrame = new HiddenFrame();
|
||||
exports.window = hiddenFrame.getWindow();
|
||||
exports.ready = hiddenFrame.get();
|
||||
|
@ -257,7 +257,7 @@ add_task(function* checkAllTheCSS() {
|
||||
// Create a clean iframe to load all the files into. This needs to live at a
|
||||
// chrome URI so that it's allowed to load and parse any styles.
|
||||
let testFile = getRootDirectory(gTestPath) + "dummy_page.html";
|
||||
let HiddenFrame = Cu.import("resource:///modules/HiddenFrame.jsm", {}).HiddenFrame;
|
||||
let HiddenFrame = Cu.import("resource://gre/modules/HiddenFrame.jsm", {}).HiddenFrame;
|
||||
let hiddenFrame = new HiddenFrame();
|
||||
let win = yield hiddenFrame.get();
|
||||
let iframe = win.document.createElementNS("http://www.w3.org/1999/xhtml", "html:iframe");
|
||||
|
@ -6,7 +6,7 @@
|
||||
Services.scriptloader.loadSubScript(new URL("head_webrequest.js", gTestPath).href,
|
||||
this);
|
||||
|
||||
Cu.import("resource:///modules/HiddenFrame.jsm", this);
|
||||
Cu.import("resource://gre/modules/HiddenFrame.jsm", this);
|
||||
const XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
|
||||
|
||||
function createHiddenBrowser(url) {
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
"use strict";
|
||||
|
||||
var HiddenFrame = Cu.import("resource:///modules/HiddenFrame.jsm", {}).HiddenFrame;
|
||||
var HiddenFrame = Cu.import("resource://gre/modules/HiddenFrame.jsm", {}).HiddenFrame;
|
||||
|
||||
const HTML_NS = "http://www.w3.org/1999/xhtml";
|
||||
const XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
|
||||
|
@ -17,7 +17,7 @@ Cu.import("resource://gre/modules/Timer.jsm");
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "HiddenFrame",
|
||||
"resource:///modules/HiddenFrame.jsm");
|
||||
"resource://gre/modules/HiddenFrame.jsm");
|
||||
|
||||
// Enables or disables the Self Support.
|
||||
const PREF_ENABLED = "browser.selfsupport.enabled";
|
||||
|
@ -30,7 +30,6 @@ EXTRA_JS_MODULES += [
|
||||
'FormSubmitObserver.jsm',
|
||||
'FormValidationHandler.jsm',
|
||||
'FullZoomUI.jsm',
|
||||
'HiddenFrame.jsm',
|
||||
'LaterRun.jsm',
|
||||
'NetworkPrioritizer.jsm',
|
||||
'offlineAppCache.jsm',
|
||||
|
@ -22,7 +22,6 @@ skip-if = (toolkit == 'android') # android doesn't have devtools
|
||||
[test_chrome_ext_downloads_saveAs.html]
|
||||
[test_chrome_ext_eventpage_warning.html]
|
||||
[test_chrome_ext_hybrid_addons.html]
|
||||
skip-if = os == 'android' # See bug 1353104 for context
|
||||
[test_chrome_ext_idle.html]
|
||||
[test_chrome_ext_identity.html]
|
||||
skip-if = os == 'android' # unsupported.
|
||||
|
@ -201,6 +201,7 @@ EXTRA_JS_MODULES += [
|
||||
'Geometry.jsm',
|
||||
'GMPInstallManager.jsm',
|
||||
'GMPUtils.jsm',
|
||||
'HiddenFrame.jsm',
|
||||
'Http.jsm',
|
||||
'IndexedDB.jsm',
|
||||
'InlineSpellChecker.jsm',
|
||||
|
Loading…
Reference in New Issue
Block a user