|
Currently we relay all allow{Database,FileSystem,IndexedDB} requests for
workers from worker thread to renderer thread, but this introduces
a lot of complexity and leak/u-a-f problems. This change tries to
introduce WebWorkerPermissionClientProxy interface, which gets created
on the renderer thread, passed on to the worker thread and then issues
sync IPC (on the worker thread) in the embedder code.
This will allow us to remove a lot of code (in the next iteration):
- To get rid of complex (and insecure) WorkerAllowMainThreadBridge code
- To remove more WorkerRunLoop.runInMode usage
- To simplify worker client inheritance chain
Chromium-side change: https://codereview.chromium.org/46583005/
BUG=none
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161017
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+135 lines, -60 lines) |
Patch |
 |
M |
Source/web/DatabaseObserver.cpp
|
View
|
|
3 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/web/IDBFactoryBackendProxy.cpp
|
View
|
1
|
2 chunks |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/web/WebSharedWorkerImpl.cpp
|
View
|
|
3 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/web/WebWorkerClientImpl.cpp
|
View
|
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/web/WorkerAllowMainThreadBridgeBase.h
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/web/WorkerFileSystemClient.cpp
|
View
|
1
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
Source/web/WorkerPermissionClient.h
|
View
|
1
|
1 chunk |
+30 lines, -10 lines |
0 comments
|
Download
|
 |
A + |
Source/web/WorkerPermissionClient.cpp
|
View
|
1
|
1 chunk |
+27 lines, -29 lines |
0 comments
|
Download
|
 |
M |
Source/web/web.gypi
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
public/web/WebCommonWorkerClient.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
public/web/WebFrameClient.h
|
View
|
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
public/web/WebSharedWorkerClient.h
|
View
|
1
|
2 chunks |
+11 lines, -1 line |
0 comments
|
Download
|
 |
A + |
public/web/WebWorkerPermissionClientProxy.h
|
View
|
|
1 chunk |
+23 lines, -18 lines |
0 comments
|
Download
|
Total messages: 8 (0 generated)
|