Created
June 18, 2021 23:29
-
-
Save e111077/699b275ba57ed5b30d5deab1236b4b3e to your computer and use it in GitHub Desktop.
bugzilla #1716685 repro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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