зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1750915 - [devtools] Remove backward compatible code for frame.isTopLevel. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D136345
This commit is contained in:
Родитель
2f93ebc85d
Коммит
4b14e24467
|
@ -3355,11 +3355,6 @@ Toolbox.prototype = {
|
|||
|
||||
try {
|
||||
const { frames } = await this.target.listFrames();
|
||||
|
||||
// @backward-compat { version 96 } frame.isTopLevel was added in 96.
|
||||
for (const frame of frames) {
|
||||
frame.isTopLevel = !frame.parentID;
|
||||
}
|
||||
this._updateFrames({ frames });
|
||||
} catch (e) {
|
||||
console.error("Error while listing frames", e);
|
||||
|
|
|
@ -61,9 +61,7 @@ class WindowGlobalTargetFront extends TargetMixin(
|
|||
* Event listener for `frameUpdate` event.
|
||||
*/
|
||||
_onFrameUpdate(packet) {
|
||||
// @backward-compat { version 96 } isTopLevel was added on the server in 96, so we
|
||||
// can simply send `packet` when 96 hits release.
|
||||
this.emit("frame-update", { ...packet, isTopLevel: !packet.parentID });
|
||||
this.emit("frame-update", packet);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче