File tree 2 files changed +4
-1
lines changed
packages/wxt/src/core/utils
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -897,7 +897,7 @@ describe('Manifest Utils', () => {
897
897
898
898
describe ( 'sidepanel' , ( ) => {
899
899
it . each ( [ 'chrome' , 'safari' , 'edge' ] ) (
900
- 'should include a side_panel ignoring all options for %s' ,
900
+ 'should include the side_panel and permission, ignoring all options for %s' ,
901
901
async ( browser ) => {
902
902
const sidepanel = fakeSidepanelEntrypoint ( {
903
903
outputDir : outDir ,
@@ -909,12 +909,14 @@ describe('Manifest Utils', () => {
909
909
manifestVersion : 3 ,
910
910
browser,
911
911
outDir,
912
+ command : 'build' ,
912
913
} ,
913
914
} ) ;
914
915
const expected = {
915
916
side_panel : {
916
917
default_path : 'sidepanel.html' ,
917
918
} ,
919
+ permissions : [ 'sidePanel' ] ,
918
920
} ;
919
921
920
922
const { manifest : actual } = await generateManifest (
Original file line number Diff line number Diff line change @@ -347,6 +347,7 @@ function addEntrypoints(
347
347
manifest . side_panel = {
348
348
default_path : page ,
349
349
} ;
350
+ addPermission ( manifest , 'sidePanel' ) ;
350
351
} else {
351
352
wxt . logger . warn (
352
353
'Side panel not supported by Chromium using MV2. side_panel.default_path was not added to the manifest' ,
You can’t perform that action at this time.
0 commit comments