Merge pull request #11925 from joewinke/fix/plugin-thirdparty-sourcedir
fix(shell): keep __sourceDir on third-party plugin manifests
This commit is contained in:
2 files changed
+15
-1
No files matched your search
+2
-1
@@ -319,7 +319,8 @@ ShellRoot {
|
||||
if (!manifest) return null
|
||||
if (manifest.__isFirstParty) return manifest
|
||||
var copy = JSON.parse(JSON.stringify(manifest))
|
||||
delete copy.__sourceDir
|
||||
// Keep __sourceDir: third-party plugins find their bundled scripts through it.
|
||||
// Only the host trust markers are withheld.
|
||||
delete copy.__isFirstParty
|
||||
delete copy.__hostCapabilities
|
||||
return copy
|
||||
|
||||
Reference in new issue
Block a user