Skip to content

Ad options for creating Session - #6470

Merged
zcbenz merged 17 commits into
masterfrom
session-options
Jul 14, 2016
Merged

zcbenz merged 17 commits into
masterfrom
session-options

Conversation

@zcbenz

@zcbenz zcbenz commented Jul 13, 2016

Copy link
Copy Markdown
Contributor

This PR adds options to the session.fromPartition(partition[, options]) API, so when the session with the partition has not been created, Electron will use options to create the session. An example of making the default session ignore cache:

session.fromPartition('', { cache: false })

This gives us a way to add options for various networking behaviors, instead of adding global command line switches. Currently there is only cache option in options.

The code of protocol and chrome-extension has been refactored, so Electron won't always create default session automatically on startup, otherwise it won't be possible for users to configure the default session.

Close #1720.

@zcbenz
zcbenz merged commit 183b599 into master Jul 14, 2016
@zcbenz
zcbenz deleted the session-options branch July 14, 2016 03:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant