mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Add more logging around browser toolbox process creation to diagnose an orange (bug 918507). r=vporof,rcampbell
This commit is contained in:
parent
97a3c94f26
commit
de5985045e
@ -6,11 +6,11 @@ const { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components;
|
|||||||
|
|
||||||
let { Services } = Cu.import("resource://gre/modules/Services.jsm", {});
|
let { Services } = Cu.import("resource://gre/modules/Services.jsm", {});
|
||||||
|
|
||||||
// Disable logging for faster test runs. Set this pref to true if you want to
|
// Disable logging for faster test runs. Set this pref to false if you want to
|
||||||
// debug a test in your try runs. Both the debugger server and frontend will
|
// disable logging in your try runs. Both the debugger server and frontend will
|
||||||
// be affected by this pref.
|
// be affected by this pref.
|
||||||
let gEnableLogging = Services.prefs.getBoolPref("devtools.debugger.log");
|
let gEnableLogging = Services.prefs.getBoolPref("devtools.debugger.log");
|
||||||
Services.prefs.setBoolPref("devtools.debugger.log", false);
|
Services.prefs.setBoolPref("devtools.debugger.log", true);
|
||||||
|
|
||||||
let { Task } = Cu.import("resource://gre/modules/Task.jsm", {});
|
let { Task } = Cu.import("resource://gre/modules/Task.jsm", {});
|
||||||
let { Promise: promise } = Cu.import("resource://gre/modules/commonjs/sdk/core/promise.js", {});
|
let { Promise: promise } = Cu.import("resource://gre/modules/commonjs/sdk/core/promise.js", {});
|
||||||
|
@ -109,11 +109,14 @@ BrowserToolboxProcess.prototype = {
|
|||||||
|
|
||||||
// The profile exists but the corresponding folder may have been deleted.
|
// The profile exists but the corresponding folder may have been deleted.
|
||||||
var enumerator = Services.dirsvc.get("ProfD", Ci.nsIFile).parent.directoryEntries;
|
var enumerator = Services.dirsvc.get("ProfD", Ci.nsIFile).parent.directoryEntries;
|
||||||
|
dumpn("enumerator: "+enumerator);
|
||||||
while (enumerator.hasMoreElements()) {
|
while (enumerator.hasMoreElements()) {
|
||||||
let profileDir = enumerator.getNext().QueryInterface(Ci.nsIFile);
|
let profileDir = enumerator.getNext().QueryInterface(Ci.nsIFile);
|
||||||
|
dumpn("profileDir: "+profileDir.leafName);
|
||||||
if (profileDir.leafName.contains(profileName)) {
|
if (profileDir.leafName.contains(profileName)) {
|
||||||
// Requested profile was found and the folder exists.
|
// Requested profile was found and the folder exists.
|
||||||
this._dbgProfile = profileObject;
|
this._dbgProfile = profileObject;
|
||||||
|
dumpn("found profile: "+profileObject);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user