|
Remove ScriptState::current() from IDBRequest
- ScriptState::current() should be called only from the binding layer. This CL removes ScriptState::current() from IDBRequest. For that goal, this CL passes ScriptState around in a lot of places in IDB code.
- This CL also introduces ScriptStateForTesting. It's hard to use ScriptState for testing purposes because webkit_unit_tests doesn't create DOMWindow nor ExecutionContext, and thus ScriptState cannot be associated with a valid ExecutionContext. On the other hand, ScriptStateForTesting allows us to mock the ExecutionContext for testing purpose.
- This CL renames V8ExecutionScope to V8TestingScope. This is because V8TestingScope uses ScriptStateForTesting, and thus it's only for testing.
- This CL stops using V8ExecutionScope in V8GCController, because V8GCController is not for testing.
BUG= 357144
TBR=adamk
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=174937
Total comments: 3
Total comments: 7
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+262 lines, -217 lines) |
Patch |
 |
M |
Source/bindings/v8/IDBBindingUtilitiesTest.cpp
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/v8/ScriptPromiseResolverTest.cpp
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/v8/ScriptPromiseTest.cpp
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/v8/ScriptState.h
|
View
|
1
2
3
4
5
|
4 chunks |
+18 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/v8/ScriptState.cpp
|
View
|
1
2
3
4
5
|
3 chunks |
+30 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/v8/V8Binding.h
|
View
|
1
2
3
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/v8/V8Binding.cpp
|
View
|
1
|
2 chunks |
+15 lines, -15 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/v8/V8GCController.cpp
|
View
|
1
2
3
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/animation/AnimationTest.cpp
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/animation/EffectInputTest.cpp
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/animation/TimingInputTest.cpp
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/modules/indexeddb/IDBCursor.h
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
Source/modules/indexeddb/IDBCursor.cpp
|
View
|
1
2
3
4
|
6 chunks |
+10 lines, -10 lines |
0 comments
|
Download
|
 |
M |
Source/modules/indexeddb/IDBCursor.idl
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
Source/modules/indexeddb/IDBFactory.h
|
View
|
1
2
3
4
|
1 chunk |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
Source/modules/indexeddb/IDBFactory.cpp
|
View
|
1
2
3
4
|
3 chunks |
+28 lines, -28 lines |
0 comments
|
Download
|
 |
M |
Source/modules/indexeddb/IDBFactory.idl
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
Source/modules/indexeddb/IDBIndex.h
|
View
|
1
2
3
4
|
1 chunk |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
Source/modules/indexeddb/IDBIndex.cpp
|
View
|
1
2
3
4
|
9 chunks |
+18 lines, -18 lines |
0 comments
|
Download
|
 |
M |
Source/modules/indexeddb/IDBIndex.idl
|
View
|
1
2
3
4
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
Source/modules/indexeddb/IDBObjectStore.h
|
View
|
1
2
3
4
|
3 chunks |
+11 lines, -11 lines |
0 comments
|
Download
|
 |
M |
Source/modules/indexeddb/IDBObjectStore.cpp
|
View
|
1
2
3
4
|
22 chunks |
+36 lines, -35 lines |
0 comments
|
Download
|
 |
M |
Source/modules/indexeddb/IDBObjectStore.idl
|
View
|
1
2
3
4
|
1 chunk |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
M |
Source/modules/indexeddb/IDBOpenDBRequest.h
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/modules/indexeddb/IDBOpenDBRequest.cpp
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
Source/modules/indexeddb/IDBRequest.h
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/modules/indexeddb/IDBRequest.cpp
|
View
|
1
2
3
4
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
Source/modules/indexeddb/IDBRequestTest.cpp
|
View
|
1
2
3
4
|
4 chunks |
+10 lines, -12 lines |
0 comments
|
Download
|
 |
M |
Source/modules/indexeddb/IDBTransactionTest.cpp
|
View
|
1
2
3
4
|
2 chunks |
+7 lines, -9 lines |
0 comments
|
Download
|
 |
M |
Source/modules/indexeddb/InspectorIndexedDBAgent.cpp
|
View
|
1
2
3
4
|
4 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
Source/web/tests/CustomEventTest.cpp
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 27 (0 generated)
|