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

Side by Side Diff: LayoutTests/fast/dom/promise-rejection-events-isolated-worlds.html

Issue 1218733003: Restrict PromiseRejectionEvents to their originating world (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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
« no previous file with comments | « no previous file | Source/bindings/core/v8/V8AbstractEventListener.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <script>
6 'use strict';
7 async_test(function(t) {
8 if (window.testRunner) {
9 testRunner.evaluateScriptInIsolatedWorld(1, "var p = Promise.reject(new Erro r());");
10 }
11 window.onunhandledrejection = t.unreached_func('no events should fire');
12 window.onrejectionhandled = t.unreached_func('no events should fire');
13 setTimeout(function() { t.done(); }, 10);
14 }, 'promise rejection events should not be fired for content scripts');
15 </script>
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/core/v8/V8AbstractEventListener.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698