Bug 1388738 - add comment for devtools-startup developerToggleCreated flag;r=ochameau

MozReview-Commit-ID: FN4YuM7VpHf

--HG--
extra : rebase_source : f8adaedf6511ce2ed4ffd493afbffca64337f01f
This commit is contained in:
Julian Descottes 2017-08-10 11:58:36 +02:00
parent 62b13a707c
commit c6f19f876e

View File

@ -238,6 +238,9 @@ DevToolsStartup.prototype = {
// Key Shortcuts need to be added on all the created windows.
this.hookKeyShortcuts(window);
// In some situations (e.g. starting Firefox with --jsconsole) DevTools will be
// initialized before the first browser-delayed-startup-finished event is received.
// We use a dedicated flag because we still need to hook the developer toggle.
if (!this.developerToggleCreated) {
this.hookDeveloperToggle();
this.developerToggleCreated = true;