fix(extensions): define platform info to prevent renderer crash (#25357)
This commit is contained in:
parent
fbf32f697f
commit
45170fdbd7
7 changed files with 133 additions and 41 deletions
12
spec-main/fixtures/extensions/chrome-runtime/background.js
Normal file
12
spec-main/fixtures/extensions/chrome-runtime/background.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
/* global chrome */
|
||||
|
||||
chrome.runtime.onMessage.addListener((message, sender, reply) => {
|
||||
switch (message) {
|
||||
case 'getPlatformInfo':
|
||||
chrome.runtime.getPlatformInfo(reply);
|
||||
break;
|
||||
}
|
||||
|
||||
// Respond asynchronously
|
||||
return true;
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue