How to use webcomponents/custom elements?

Due to https://bugzilla.mozilla.org/show_bug.cgi?id=1492002#c7. It’s seems that I can’t add a custom element to page with content script. But if I use a script tag, the script can’t access api such as browser.runtime.
What the best practice for custom element?

Issue I’m facing: How to analyze the reason of getter haven't been called?

2 Likes