Bug 1624657 Comment 6 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Sorry for the delay. STR:

1. open toolkit/content/widgets/panel.js, and add `console.error(this)` into the constructor (alt: apply [this patch](https://paste.mozilla.org/qkJHnctf))
2. `./mach build faster && ./mach run`
3. open the browser console
4. note the entry for editBookmarkPanel - I can't figure out how to make it conditional on just this entry because `this.id` is undefined, and there are no attributes for `this`, when the constructor fires; it's the third one for me, YMMV


JS stack:
```
    MozPanel chrome://global/content/elements/panel.js:13
    (Async: CustomElementConstructor)
    <anonymous> chrome://global/content/elements/panel.js:319
    <anonymous> chrome://global/content/customElements.js:797
    <anonymous> chrome://global/content/customElements.js:820
    observe resource://gre/modules/CustomElementsListener.jsm:24
```

Note that this element is [inside a template tag](https://searchfox.org/mozilla-central/source/browser/base/content/browser.xhtml#272-273) .
Sorry for the delay. STR:

1. open toolkit/content/widgets/panel.js, and add `console.error(this)` into the constructor (alt: apply [this patch](https://paste.mozilla.org/qkJHnctf))
2. `./mach build faster && ./mach run`
3. open the browser console
4. note the entry for editBookmarkPanel - I can't figure out how to make it conditional on just this entry because `this.id` is undefined, and there are no attributes for `this`, when the constructor fires; it's the third one logged for me, YMMV


JS stack:
```
    MozPanel chrome://global/content/elements/panel.js:13
    (Async: CustomElementConstructor)
    <anonymous> chrome://global/content/elements/panel.js:319
    <anonymous> chrome://global/content/customElements.js:797
    <anonymous> chrome://global/content/customElements.js:820
    observe resource://gre/modules/CustomElementsListener.jsm:24
```

Note that this element is [inside a template tag](https://searchfox.org/mozilla-central/source/browser/base/content/browser.xhtml#272-273) .

Back to Bug 1624657 Comment 6