Skip to content

Instantly share code, notes, and snippets.

@e111077
Created June 18, 2021 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save e111077/699b275ba57ed5b30d5deab1236b4b3e to your computer and use it in GitHub Desktop.
Save e111077/699b275ba57ed5b30d5deab1236b4b3e to your computer and use it in GitHub Desktop.
bugzilla #1716685 repro
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
</body>
</html>
class A extends HTMLElement {
foo () {
console.log('FOO');
// do stuff
}
constructor() {
super();
console.log(this.foo);
this.foo(); // this.foo is undefined
}
}
customElements.define('a-a', A);
const a = document.createElement('a-a');
document.body.appendChild(a);
{
"name": "Extension test",
"background": {
"page": "background.html"
},
"content_scripts": [
{
"matches": [
"http://*/*",
"https://*/*",
"ftp://*/*",
"file://*/*"
],
"js": [
"contentScript.bundle.js"
]
}
],
"icons": {
},
"manifest_version": 2,
"version": "1.0"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment