Repository navigation
webview: partition attribute - #2459
Conversation
57b2105 to
be79874
Compare
b7ef8f4 to
379202b
Compare
|
Can we refactor this to use a new BrowserContext for each partition instead of allocating a new request context for each partition in one BrowserContext? The trouble comes from the cookies API because it assumes each BrowserContext has only one request context however this implementation breaks this assumption, the consequence is we are not able to use cookies API for the webview partitions unless we add a new bunch of APIs by mapping RequestContext to JavaScript. And in future it will add more and more trouble when we try to add more APIs around BrowserContext. However simply mapping each partition to a new BrowserContext solves all the troubles, we no longer need to manage the whole storage partition things, and our APIs keep simple. |
2d8a587 to
710bdae
Compare
|
@zcbenz have updated the PR to use separate browser context for each partition. Also regarding this issue #1720 requesting cache disable in webview, this is now possible with temporary partition, guess that can be considered to be fixed ? Also this will be a breaking change, people already using |
Disabling cache requires every request to be uncached, I think temporary partition still has caching?
When |
1888da0 to
2039937
Compare
yeah, my bad did some wrong tests.
Fixed. |
|
@zcbenz anything missed here ? |
There was a problem hiding this comment.
There is a base::ScopedPtrHashMap for storing pointers, using map to manage pointers is discouraged.
6b3935d to
b8b8981
Compare
9c65eea to
2035d20
Compare
|
@zcbenz have addressed all the points, thanks! |
2035d20 to
03ba953
Compare
|
Thanks! |
build.py would fail on Windows due to a couple of changes made in electron#2459. This commit fixes those issues.
Depends on electron-archive/brightray#136
Fixes #1010