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

Unified Diff: third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp

Issue 1831753002: Make ShadowRoot.cloneNode() throw NotSupportedError, instead of DataCloneError. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update expectation Created 4 years, 9 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 | « third_party/WebKit/LayoutTests/fast/dom/shadow/shadowroot-clonenode-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp
diff --git a/third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp b/third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp
index f4e47ae4f9a79671bb4fccf419a7739384e9c601..8e3af0d0ac57631243144948e60606fd21c710a4 100644
--- a/third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp
+++ b/third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp
@@ -113,7 +113,7 @@ ShadowRoot* ShadowRoot::olderShadowRootForBindings() const
PassRefPtrWillBeRawPtr<Node> ShadowRoot::cloneNode(bool, ExceptionState& exceptionState)
{
- exceptionState.throwDOMException(DataCloneError, "ShadowRoot nodes are not clonable.");
+ exceptionState.throwDOMException(NotSupportedError, "ShadowRoot nodes are not clonable.");
return nullptr;
}
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/dom/shadow/shadowroot-clonenode-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698