mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 20:07:30 +09:00
parent
5830ff1f2b
commit
74df182488
232 changed files with 256 additions and 36730 deletions
9
layout/tools/reftest/bootstrap.js
vendored
9
layout/tools/reftest/bootstrap.js
vendored
|
|
@ -33,11 +33,6 @@ var WindowListener = {
|
|||
};
|
||||
|
||||
function startup(data, reason) {
|
||||
// b2g is bootstrapped by b2g_start_script.js
|
||||
if (Services.appinfo.widgetToolkit == "gonk") {
|
||||
return;
|
||||
}
|
||||
|
||||
if (Services.appinfo.OS == "Android") {
|
||||
Cm.addBootstrappedManifestLocation(data.installPath);
|
||||
Services.wm.addListener(WindowListener);
|
||||
|
|
@ -66,10 +61,6 @@ function startup(data, reason) {
|
|||
}
|
||||
|
||||
function shutdown(data, reason) {
|
||||
if (Services.appinfo.widgetToolkit == "gonk") {
|
||||
return;
|
||||
}
|
||||
|
||||
if (Services.appinfo.OS == "Android") {
|
||||
Services.wm.removeListener(WindowListener);
|
||||
Cm.removedBootstrappedManifestLocation(data.installPath);
|
||||
|
|
|
|||
|
|
@ -324,11 +324,7 @@ this.OnRefTestLoad = function OnRefTestLoad(win)
|
|||
|
||||
if (Services.appinfo.OS == "Android") {
|
||||
let doc;
|
||||
if (Services.appinfo.widgetToolkit == "gonk") {
|
||||
doc = gContainingWindow.document.getElementsByTagName("html")[0];
|
||||
} else {
|
||||
doc = gContainingWindow.document.getElementById('main-window');
|
||||
}
|
||||
doc = gContainingWindow.document.getElementById('main-window');
|
||||
while (doc.hasChildNodes()) {
|
||||
doc.removeChild(doc.firstChild);
|
||||
}
|
||||
|
|
@ -684,7 +680,7 @@ function BuildConditionSandbox(aURL) {
|
|||
gWindowUtils.layerManagerRemote == true;
|
||||
|
||||
// Shortcuts for widget toolkits.
|
||||
sandbox.B2G = xr.widgetToolkit == "gonk";
|
||||
sandbox.B2G = false;
|
||||
sandbox.Android = xr.OS == "Android" && !sandbox.B2G;
|
||||
sandbox.cocoaWidget = xr.widgetToolkit == "cocoa";
|
||||
sandbox.gtkWidget = xr.widgetToolkit == "gtk2"
|
||||
|
|
|
|||
|
|
@ -598,11 +598,8 @@ class RefTest(object):
|
|||
timeout = None
|
||||
signal.signal(signal.SIGINT, lambda sigid, frame: None)
|
||||
|
||||
if mozinfo.info.get('appname') == 'b2g' and mozinfo.info.get('toolkit') != 'gonk':
|
||||
runner_cls = mozrunner.Runner
|
||||
else:
|
||||
runner_cls = mozrunner.runners.get(mozinfo.info.get('appname', 'firefox'),
|
||||
mozrunner.Runner)
|
||||
runner_cls = mozrunner.runners.get(mozinfo.info.get('appname', 'firefox'),
|
||||
mozrunner.Runner)
|
||||
runner = runner_cls(profile=profile,
|
||||
binary=binary,
|
||||
process_class=mozprocess.ProcessHandlerMixin,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue