| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index c6d452c971843d47edb89c18e00e96b131eb4518..887d359fd80ff7c4b8f3325843304dad12066f2e 100644
|
| --- a/Source/core/dom/Document.cpp
|
| +++ b/Source/core/dom/Document.cpp
|
| @@ -125,6 +125,7 @@
|
| #include "core/frame/LocalFrame.h"
|
| #include "core/frame/PinchViewport.h"
|
| #include "core/frame/Settings.h"
|
| +#include "core/frame/UseByOriginCounter.h"
|
| #include "core/frame/csp/ContentSecurityPolicy.h"
|
| #include "core/html/DocumentNameCollection.h"
|
| #include "core/html/HTMLAllCollection.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)
|
| {
|
| + UseByOriginCounter::count(scriptState, *this, UseByOriginCounter::Feature::DocumentRegisterElement);
|
| +
|
| if (!registrationContext()) {
|
| exceptionState.throwDOMException(NotSupportedError, "No element registration context is available.");
|
| return ScriptValue();
|
|
|