diff --git a/toolkit/mozapps/extensions/content/extensions.js b/toolkit/mozapps/extensions/content/extensions.js index c94a32f01643..e1d9bed2b81b 100644 --- a/toolkit/mozapps/extensions/content/extensions.js +++ b/toolkit/mozapps/extensions/content/extensions.js @@ -6,7 +6,6 @@ /* import-globals-from ../../../content/customElements.js */ /* import-globals-from aboutaddonsCommon.js */ -/* globals ProcessingInstruction */ /* exported loadView */ const { AddonManager } = ChromeUtils.import( @@ -30,11 +29,6 @@ Object.defineProperty(this, "gIsInitializing", { }); function initialize(event) { - // XXXbz this listener gets _all_ load events for all nodes in the - // document... but relies on not being called "too early". - if (event.target instanceof ProcessingInstruction) { - return; - } document.removeEventListener("load", initialize, true); if (!isDiscoverEnabled()) { diff --git a/toolkit/mozapps/extensions/content/extensions.xhtml b/toolkit/mozapps/extensions/content/extensions.xhtml index 786c337b0f3f..cf4dd1db0dc8 100644 --- a/toolkit/mozapps/extensions/content/extensions.xhtml +++ b/toolkit/mozapps/extensions/content/extensions.xhtml @@ -3,8 +3,6 @@ - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> - -