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

Unified Diff: Source/core/dom/custom/CustomElementException.cpp

Issue 375343003: Map all ContextDestroyed custom element exceptions to InvalidStateError. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/dom/custom/registration-context-delete-during-register-created-retrieval-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/custom/CustomElementException.cpp
diff --git a/Source/core/dom/custom/CustomElementException.cpp b/Source/core/dom/custom/CustomElementException.cpp
index 9897d5ca5706491d55cfe0d264d4d4114a3bde85..84fdb9741df4eff4515e967ca01687120c7c1daa 100644
--- a/Source/core/dom/custom/CustomElementException.cpp
+++ b/Source/core/dom/custom/CustomElementException.cpp
@@ -61,7 +61,7 @@ void CustomElementException::throwException(Reason reason, const AtomicString& t
return;
case ContextDestroyedRegisteringDefinition:
- exceptionState.throwDOMException(NotSupportedError, preamble(type) + "The context is no longer valid.");
+ exceptionState.throwDOMException(InvalidStateError, preamble(type) + "The context is no longer valid.");
return;
case ExtendsIsInvalidName:
« no previous file with comments | « LayoutTests/fast/dom/custom/registration-context-delete-during-register-created-retrieval-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698