Repository navigation
feat: enable sandbox by default in limited circumstances - #30197
Merged
Merged
Conversation
nornagon
force-pushed
the
sandbox-by-default-2
branch
from
July 19, 2021 20:17
edbc470 to
637011f
Compare
nornagon
force-pushed
the
sandbox-by-default-2
branch
from
July 19, 2021 20:17
637011f to
d46e202
Compare
This was referenced Jul 26, 2021
MarshallOfSound
requested changes
Jul 28, 2021
MarshallOfSound
left a comment
Member
There was a problem hiding this comment.
You also have to care about SessionPreferences::GetValidPreloads(web_contents->GetBrowserContext()). There are multiple way to assign preload scripts 🤔
Contributor
Author
|
@MarshallOfSound PTAL |
MarshallOfSound
approved these changes
Aug 3, 2021
|
Release Notes Persisted
|
Contributor
|
I was unable to backport this PR to "15-x-y" cleanly; |
Contributor
Author
|
Ah, this depends on #30193, which isn't backported to 15. I think I'll leave this for 16.x then. |
BlackHole1
pushed a commit
to BlackHole1/electron
that referenced
this pull request
Aug 30, 2021
Closed
3 tasks done
2 of 5 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Change
Depends on #30193.
Closes #28466.
This enables
sandbox: trueby default unlessnodeIntegrationis true,nodeIntegrationInWorkeris true, orpreloadis specified. This is anon-breaking change, because unless one of these options is true, there's no
documented way to perform any action that would cause different behavior
depending on whether the sandbox is enabled or not.
Checklist
npm testpassesRelease Notes
Notes: Enabled sandboxing by default on WebContents which do not use Node or preloads.