Files
firefox/devtools/client/framework
J. Ryan Stinnett 2c3648012a Bug 1353897 - Only destroy preference front if used. r=ochameau
The toolbox can get a preference front for toggling various prefs on the server.
The toolbox destruction code path was written in such a way that it would
request a preference front during toolbox destroy, only to immediately destroy
the front right after.  This is extra painful, since we send a `listTabs`
request and other fun things as part of this.

With this change, we cache the preference front when it is first used, and we
only attempt to destroy it if it was previously used.

MozReview-Commit-ID: 9repQSXjdRj
2017-04-05 16:17:47 -05:00
..