mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1151156 - remove unused b2g code in debugger-client onPacket;r=jryans
MozReview-Commit-ID: IWyGUCKCFAM --HG-- extra : rebase_source : dd90da67ebd3def595095f0445b6206ba7316a1b
This commit is contained in:
parent
7031a16c77
commit
1c1a92115e
@ -168,9 +168,6 @@ RootActor.prototype = {
|
||||
// Trait added in Gecko 38, indicating that all features necessary for
|
||||
// grabbing allocations from the MemoryActor are available for the performance tool
|
||||
memoryActorAllocations: true,
|
||||
// Added in Gecko 40, indicating that the backend isn't stupid about
|
||||
// sending resumption packets on tab navigation.
|
||||
noNeedToFakeResumptionOnNavigation: true,
|
||||
// Added in Firefox 40. Indicates that the backend supports registering custom
|
||||
// commands through the WebConsoleCommands API.
|
||||
webConsoleCommands: true,
|
||||
|
@ -910,20 +910,6 @@ DebuggerClient.prototype = {
|
||||
this._clients.get(packet.from)._onThreadState(packet);
|
||||
}
|
||||
|
||||
// TODO: Bug 1151156 - Remove once Gecko 40 is on b2g-stable.
|
||||
if (!this.traits.noNeedToFakeResumptionOnNavigation) {
|
||||
// On navigation the server resumes, so the client must resume as well.
|
||||
// We achieve that by generating a fake resumption packet that triggers
|
||||
// the client's thread state change listeners.
|
||||
if (packet.type == UnsolicitedNotifications.tabNavigated &&
|
||||
this._clients.has(packet.from) &&
|
||||
this._clients.get(packet.from).thread) {
|
||||
let thread = this._clients.get(packet.from).thread;
|
||||
let resumption = { from: thread._actor, type: "resumed" };
|
||||
thread._onThreadState(resumption);
|
||||
}
|
||||
}
|
||||
|
||||
// Only try to notify listeners on events, not responses to requests
|
||||
// that lack a packet type.
|
||||
if (packet.type) {
|
||||
|
Loading…
Reference in New Issue
Block a user