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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/custom/crash-in-getTypeExtension.html

Issue 2530243002: Crash in blink::getTypeExtension (Closed)
Patch Set: Updated test and removed extra use count after review. Created 3 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.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 <script src="../../../resources/testharness.js"></script>
3 <script src="../../../resources/testharnessreport.js"></script>
4 <script>
5 test(() => {
6 // TODO(a.obzhirov): Use customElements.define when customized built-in elemen ts are supported.
7 document.registerElement("x-foo", { prototype: Object.create(HTMLDivElement.pr ototype) });
8 var toStringCalled = false;
9 assert_throws('NotFoundError', () => {
10 document.createElement('div', { toString: () => { toStringCalled = true; ret urn 'x-foo'; } })
11 });
12 assert_false(toStringCalled, "toString should not have been called.");
dominicc (has gone to gerrit) 2017/01/31 22:41:38 Use single quotes for consistency here and on line
13 }, "Test for crbug/666610: Crash in blink::getTypeExtension");
14 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698