-
Notifications
You must be signed in to change notification settings - Fork 15.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
protocol: respect requests from partition #4551
Conversation
7259f85
to
4ea2721
Compare
@zcbenz any clue about why this crash happens https://travis-ci.org/atom/electron/jobs/110389798 , just made a temp fix. Would like resolve the original cause. |
I don't think we need the
I think it is because calling |
a274803
to
0935362
Compare
Fixed, thanks! |
const electron = require('electron'); | ||
const app = electron.app; | ||
const path = require('path'); | ||
const protocol = session.fromPartition(partitionName).protocol; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Creating session before the ready event is not recommended, for now it is causing crash on exit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
0935362
to
bdfc19a
Compare
👍 |
protocol: respect requests from partition
Protocol module currently doesnt respect partitions. This just adds a
fromPartition
method similar tosession
, internallyprotocol
is now wired as a property ofsession
.