|
Create DOM exceptions in the correct context.
If access to a cross-origin property or method is allowed, but it ends
up throwing a DOM exception, arrange for the exception to be created
in the context of the target property/method, not that of the
caller/accessing context.
Addressed by having ExceptionState keep a creation context, which is
then passed along when creating the wrapper for the exception object.
R=haraken@chromium.org
BUG= 235223
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=162010
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+205 lines, -132 lines) |
Patch |
|
A |
LayoutTests/fast/dom/cross-frame-accessor-throw.html
|
View
|
|
1 chunk |
+64 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/dom/cross-frame-accessor-throw-expected.txt
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/scripts/code_generator_v8.pm
|
View
|
1
2
|
16 chunks |
+16 lines, -16 lines |
0 comments
|
Download
|
|
M |
Source/bindings/templates/attributes.cpp
|
View
|
1
2
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/bindings/templates/methods.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/bindings/tests/results/V8SupportTestInterface.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/bindings/tests/results/V8TestActiveDOMObject.cpp
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/bindings/tests/results/V8TestEventTarget.cpp
|
View
|
1
2
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/bindings/tests/results/V8TestInterface.cpp
|
View
|
1
2
|
5 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
Source/bindings/tests/results/V8TestNamedConstructor.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/bindings/tests/results/V8TestNode.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/bindings/tests/results/V8TestObject.cpp
|
View
|
1
2
|
24 chunks |
+24 lines, -24 lines |
0 comments
|
Download
|
|
M |
Source/bindings/tests/results/V8TestObjectPython.cpp
|
View
|
1
2
|
9 chunks |
+9 lines, -9 lines |
0 comments
|
Download
|
|
M |
Source/bindings/tests/results/V8TestTypedefs.cpp
|
View
|
1
2
|
7 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
|
M |
Source/bindings/v8/CustomElementConstructorBuilder.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/bindings/v8/ExceptionState.h
|
View
|
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/bindings/v8/ExceptionState.cpp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/bindings/v8/ExceptionStatePlaceholder.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/bindings/v8/ExceptionStatePlaceholder.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/bindings/v8/V8Binding.cpp
|
View
|
1
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/bindings/v8/V8Initializer.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/bindings/v8/V8ThrowException.h
|
View
|
|
1 chunk |
+9 lines, -9 lines |
0 comments
|
Download
|
|
M |
Source/bindings/v8/V8ThrowException.cpp
|
View
|
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
Source/bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/bindings/v8/custom/V8CryptoCustom.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/bindings/v8/custom/V8DedicatedWorkerGlobalScopeCustom.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/bindings/v8/custom/V8DocumentCustom.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/bindings/v8/custom/V8HTMLCanvasElementCustom.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/bindings/v8/custom/V8HTMLFrameElementCustom.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/bindings/v8/custom/V8HistoryCustom.cpp
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/bindings/v8/custom/V8MessagePortCustom.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/bindings/v8/custom/V8NodeCustom.cpp
|
View
|
1
2
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
Source/bindings/v8/custom/V8SQLTransactionCustom.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/bindings/v8/custom/V8SQLTransactionSyncCustom.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/bindings/v8/custom/V8SVGLengthCustom.cpp
|
View
|
1
2
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/bindings/v8/custom/V8WindowCustom.cpp
|
View
|
1
2
|
8 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
|
M |
Source/bindings/v8/custom/V8WorkerCustom.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/bindings/v8/custom/V8XMLHttpRequestCustom.cpp
|
View
|
1
2
|
5 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
Total messages: 16 (0 generated)
|