mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 09:45:41 +00:00
Bug 1499710 - Remove autohideOnDestroy trait; r=ochameau
Depends on D8987 Differential Revision: https://phabricator.services.mozilla.com/D8988 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
58c1777795
commit
55b14ce44a
@ -2767,14 +2767,6 @@ Toolbox.prototype = {
|
||||
this._inspector.destroy();
|
||||
|
||||
if (this._highlighter) {
|
||||
// Note that if the toolbox is closed, this will work fine, but will fail
|
||||
// in case the browser is closed and will trigger a noSuchActor message.
|
||||
// We ignore the promise that |_hideBoxModel| returns, since we should still
|
||||
// proceed with the rest of destruction if it fails.
|
||||
// FF42+ now does the cleanup from the actor.
|
||||
if (!this.highlighter.traits.autoHideOnDestroy) {
|
||||
this.highlighterUtils.unhighlight();
|
||||
}
|
||||
await this._highlighter.destroy();
|
||||
}
|
||||
if (this._selection) {
|
||||
|
@ -113,9 +113,6 @@ exports.HighlighterActor = protocol.ActorClassWithSpec(highlighterSpec, {
|
||||
form: function() {
|
||||
return {
|
||||
actor: this.actorID,
|
||||
traits: {
|
||||
autoHideOnDestroy: true
|
||||
}
|
||||
};
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user