Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Side by Side Diff: LayoutTests/fast/events/window-onerror-isolatedworld-01-expected.txt

Issue 21071003: Trigger `window.onerror` only for exceptions thrown in the same world. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: feedback Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 Test that window.onerror and "error" event listeners from main world are invoked for uncaught exceptions in scripts running in isolate worlds as well as for exc eptions in the main world. 1 Test that window.onerror and "error" event listeners from main world are not inv oked for uncaught exceptions in scripts running in isolate worlds, but only for exceptions in the main world.
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 window.onerror: "Uncaught Error: Error in isolated world inline script." at (Li ne: 11, Column: 18)
7 No stack trace.
8 Returning 'true': the error should not be reported in the console as an unhandle d exception.
9
10
11
12 Handling 'error' event (phase 2): "Uncaught Error: Error in isolated world inlin e script." at :11 6 Handling 'error' event (phase 2): "Uncaught Error: Error in isolated world inlin e script." at :11
13 No stack trace. 7 No stack trace.
14 PASS eventPassedToTheErrorListener is window.event 8 PASS eventPassedToTheErrorListener is window.event
15 PASS eventCurrentTarget is window 9 PASS eventCurrentTarget is window
16 Calling e.preventDefault(): the error should not be reported in the console as a n unhandled exception. 10 Calling e.preventDefault(): the error should not be reported in the console as a n unhandled exception.
17 11
18 12
19 13
20 window.onerror: "Uncaught Error: Error in main world inline script." at window-o nerror-isolatedworld-01.html (Line: 33, Column: 18) 14 window.onerror: "Uncaught Error: Error in main world inline script." at window-o nerror-isolatedworld-01.html (Line: 52, Column: 18)
21 Stack Trace: 15 Stack Trace:
22 Error: Error in main world inline script. 16 Error: Error in main world inline script.
23 at exceptions window-onerror-isolatedworld-01.html:33:19 17 at exceptions window-onerror-isolatedworld-01.html:52:19
24 at window-onerror-isolatedworld-01.html:39:9 18 at window-onerror-isolatedworld-01.html:58:9
25 19
26 Returning 'true': the error should not be reported in the console as an unhandle d exception. 20 Returning 'true': the error should not be reported in the console as an unhandle d exception.
27 21
28 22
29 23
30 Handling 'error' event (phase 2): "Uncaught Error: Error in main world inline sc ript." at window-onerror-isolatedworld-01.html:33 24 Handling 'error' event (phase 2): "Uncaught Error: Error in main world inline sc ript." at window-onerror-isolatedworld-01.html:52
31 Stack Trace: 25 Stack Trace:
32 Error: Error in main world inline script. 26 Error: Error in main world inline script.
33 at exceptions window-onerror-isolatedworld-01.html:33:19 27 at exceptions window-onerror-isolatedworld-01.html:52:19
34 at window-onerror-isolatedworld-01.html:39:9 28 at window-onerror-isolatedworld-01.html:58:9
35 29
36 PASS eventPassedToTheErrorListener is window.event 30 PASS eventPassedToTheErrorListener is window.event
37 PASS eventCurrentTarget is window 31 PASS eventCurrentTarget is window
38 Calling e.preventDefault(): the error should not be reported in the console as a n unhandled exception. 32 Calling e.preventDefault(): the error should not be reported in the console as a n unhandled exception.
39 33
40 34
41 35
42 window.onerror: "Uncaught Error: Error in isolated world load handler." at (Lin e: 8, Column: 22)
43 No stack trace.
44 Returning 'true': the error should not be reported in the console as an unhandle d exception.
45
46
47
48 Handling 'error' event (phase 2): "Uncaught Error: Error in isolated world load handler." at :8 36 Handling 'error' event (phase 2): "Uncaught Error: Error in isolated world load handler." at :8
49 No stack trace. 37 No stack trace.
50 PASS eventPassedToTheErrorListener is window.event 38 PASS eventPassedToTheErrorListener is window.event
51 PASS eventCurrentTarget is window 39 PASS eventCurrentTarget is window
52 Calling e.preventDefault(): the error should not be reported in the console as a n unhandled exception. 40 Calling e.preventDefault(): the error should not be reported in the console as a n unhandled exception.
53 41
54 42
55 43
56 window.onerror: "Uncaught Error: Error in main world load handler." at window-on error-isolatedworld-01.html (Line: 30, Column: 22) 44 window.onerror: "Uncaught Error: Error in main world load handler." at window-on error-isolatedworld-01.html (Line: 49, Column: 22)
57 Stack Trace: 45 Stack Trace:
58 Error: Error in main world load handler. 46 Error: Error in main world load handler.
59 at window-onerror-isolatedworld-01.html:30:23 47 at window-onerror-isolatedworld-01.html:49:23
60 48
61 Returning 'true': the error should not be reported in the console as an unhandle d exception. 49 Returning 'true': the error should not be reported in the console as an unhandle d exception.
62 50
63 51
64 52
65 Handling 'error' event (phase 2): "Uncaught Error: Error in main world load hand ler." at window-onerror-isolatedworld-01.html:30 53 Handling 'error' event (phase 2): "Uncaught Error: Error in main world load hand ler." at window-onerror-isolatedworld-01.html:49
66 Stack Trace: 54 Stack Trace:
67 Error: Error in main world load handler. 55 Error: Error in main world load handler.
68 at window-onerror-isolatedworld-01.html:30:23 56 at window-onerror-isolatedworld-01.html:49:23
69 57
70 PASS eventPassedToTheErrorListener is window.event 58 PASS eventPassedToTheErrorListener is window.event
71 PASS eventCurrentTarget is window 59 PASS eventCurrentTarget is window
72 Calling e.preventDefault(): the error should not be reported in the console as a n unhandled exception. 60 Calling e.preventDefault(): the error should not be reported in the console as a n unhandled exception.
73 61
74 62
75 63
76 window.onerror: "Uncaught Error: Error in isolated world setTimeout callback." a t (Line: 6, Column: 26) 64 FAIL Only main-world exceptions should be caught by ErrorEvent listeners.
77 No stack trace.
78 Returning 'true': the error should not be reported in the console as an unhandle d exception.
79
80
81
82 Handling 'error' event (phase 2): "Uncaught Error: Error in isolated world setTi meout callback." at :6 65 Handling 'error' event (phase 2): "Uncaught Error: Error in isolated world setTi meout callback." at :6
83 No stack trace. 66 No stack trace.
84 PASS eventPassedToTheErrorListener is window.event 67 PASS eventPassedToTheErrorListener is window.event
85 PASS eventCurrentTarget is window 68 PASS eventCurrentTarget is window
86 Calling e.preventDefault(): the error should not be reported in the console as a n unhandled exception. 69 Calling e.preventDefault(): the error should not be reported in the console as a n unhandled exception.
87 70
88 71
89 72
90 window.onerror: "Uncaught Error: Error in main world setTimeout callback." at wi ndow-onerror-isolatedworld-01.html (Line: 28, Column: 26) 73 FAIL Only main-world exceptions should be caught by ErrorEvent listeners.
74 window.onerror: "Uncaught Error: Error in main world setTimeout callback." at wi ndow-onerror-isolatedworld-01.html (Line: 47, Column: 26)
91 Stack Trace: 75 Stack Trace:
92 Error: Error in main world setTimeout callback. 76 Error: Error in main world setTimeout callback.
93 at window-onerror-isolatedworld-01.html:28:27 77 at window-onerror-isolatedworld-01.html:47:27
94 78
95 Returning 'true': the error should not be reported in the console as an unhandle d exception. 79 Returning 'true': the error should not be reported in the console as an unhandle d exception.
96 80
97 81
98 82
99 Handling 'error' event (phase 2): "Uncaught Error: Error in main world setTimeou t callback." at window-onerror-isolatedworld-01.html:28 83 Handling 'error' event (phase 2): "Uncaught Error: Error in main world setTimeou t callback." at window-onerror-isolatedworld-01.html:47
100 Stack Trace: 84 Stack Trace:
101 Error: Error in main world setTimeout callback. 85 Error: Error in main world setTimeout callback.
102 at window-onerror-isolatedworld-01.html:28:27 86 at window-onerror-isolatedworld-01.html:47:27
103 87
104 PASS eventPassedToTheErrorListener is window.event 88 PASS eventPassedToTheErrorListener is window.event
105 PASS eventCurrentTarget is window 89 PASS eventCurrentTarget is window
106 Calling e.preventDefault(): the error should not be reported in the console as a n unhandled exception. 90 Calling e.preventDefault(): the error should not be reported in the console as a n unhandled exception.
107 91
108 92
109 93
94 FAIL Only main-world exceptions should be caught by ErrorEvent listeners.
110 PASS successfullyParsed is true 95 PASS successfullyParsed is true
111 96
112 TEST COMPLETE 97 TEST COMPLETE
113 98
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698