mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-28 04:39:07 -10:00
Merge mozilla-central to mozilla-inbound.
This commit is contained in:
commit
438ab15b79
263 files changed
+6213
-2109
No files matched your search
@@ -529,7 +529,7 @@ Target.prototype = {
|
||||
// The call to attachTarget is to be removed once all Target are having a front
|
||||
// passed as contructor's argument.
|
||||
if (!this.activeTab) {
|
||||
const [, targetFront] = await this._client.attachTarget(this.form.actor);
|
||||
const [, targetFront] = await this._client.attachTarget(this.form);
|
||||
this.activeTab = targetFront;
|
||||
} else {
|
||||
await this.activeTab.attach();
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
"use strict";
|
||||
|
||||
const { DebuggerServer } = require("devtools/server/main");
|
||||
const { DebuggerClient } = require("devtools/shared/client/debugger-client");
|
||||
|
||||
// Bug 1277805: Too slow for debug runs
|
||||
requestLongerTimeout(2);
|
||||
@@ -60,36 +59,13 @@ function runTools(target) {
|
||||
})();
|
||||
}
|
||||
|
||||
function getClient() {
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.registerAllActors();
|
||||
|
||||
const transport = DebuggerServer.connectPipe();
|
||||
const client = new DebuggerClient(transport);
|
||||
|
||||
return client.connect().then(() => client);
|
||||
}
|
||||
|
||||
function getTarget(client) {
|
||||
return new Promise(resolve => {
|
||||
client.listTabs().then(tabList => {
|
||||
const target = TargetFactory.forRemoteTab({
|
||||
client: client,
|
||||
form: tabList.tabs[tabList.selected],
|
||||
chrome: false,
|
||||
});
|
||||
resolve(target);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function test() {
|
||||
(async function() {
|
||||
toggleAllTools(true);
|
||||
await addTab("about:blank");
|
||||
const tab = await addTab("about:blank");
|
||||
|
||||
const client = await getClient();
|
||||
const target = await getTarget(client);
|
||||
const target = await TargetFactory.forTab(tab);
|
||||
const { client } = target;
|
||||
await runTools(target);
|
||||
|
||||
const rootFronts = [...client.mainRoot.fronts.values()];
|
||||
|
||||
Reference in new issue
Block a user