fix: devtools extensions not loading (#20791)
This commit is contained in:
parent
0ab9cc30d2
commit
3d56e13b38
3 changed files with 30 additions and 1 deletions
11
spec/fixtures/extensions/chrome-api/main.js
vendored
11
spec/fixtures/extensions/chrome-api/main.js
vendored
|
@ -5,6 +5,17 @@ chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
|
|||
})
|
||||
|
||||
const testMap = {
|
||||
connect () {
|
||||
let success = false
|
||||
try {
|
||||
chrome.runtime.connect(chrome.runtime.id)
|
||||
chrome.runtime.connect(chrome.runtime.id, { name: 'content-script' })
|
||||
chrome.runtime.connect({ name: 'content-script' })
|
||||
success = true
|
||||
} finally {
|
||||
console.log(JSON.stringify(success))
|
||||
}
|
||||
},
|
||||
getManifest () {
|
||||
const manifest = chrome.runtime.getManifest()
|
||||
console.log(JSON.stringify(manifest))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue