| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index c6d452c971843d47edb89c18e00e96b131eb4518..8e5423f1a967a303e8e030f470735821d44f8dfe 100644
|
| --- a/Source/core/dom/Document.cpp
|
| +++ b/Source/core/dom/Document.cpp
|
| @@ -123,6 +123,7 @@
|
| #include "core/frame/History.h"
|
| #include "core/frame/LocalDOMWindow.h"
|
| #include "core/frame/LocalFrame.h"
|
| +#include "core/frame/OriginsUsingFeatures.h"
|
| #include "core/frame/PinchViewport.h"
|
| #include "core/frame/Settings.h"
|
| #include "core/frame/csp/ContentSecurityPolicy.h"
|
| @@ -813,6 +814,8 @@ PassRefPtrWillBeRawPtr<Element> Document::createElementNS(const AtomicString& na
|
|
|
| ScriptValue Document::registerElement(ScriptState* scriptState, const AtomicString& name, const ElementRegistrationOptions& options, ExceptionState& exceptionState, CustomElement::NameSet validNames)
|
| {
|
| + OriginsUsingFeatures::count(scriptState, *this, OriginsUsingFeatures::Feature::DocumentRegisterElement);
|
| +
|
| if (!registrationContext()) {
|
| exceptionState.throwDOMException(NotSupportedError, "No element registration context is available.");
|
| return ScriptValue();
|
|
|