| Index: third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp
|
| diff --git a/third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp b/third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp
|
| index d6e0cd0fa19872f07a25cab6fe688d66d114dd54..8373c5d194c075ced04cde02449323544fe940b6 100644
|
| --- a/third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp
|
| +++ b/third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp
|
| @@ -31,6 +31,7 @@
|
| #include "core/dom/ExceptionCode.h"
|
| #include "core/frame/LocalFrame.h"
|
| #include "core/frame/Navigator.h"
|
| +#include "core/frame/UseCounter.h"
|
| #include "wtf/HashSet.h"
|
| #include "wtf/text/StringBuilder.h"
|
|
|
| @@ -164,6 +165,9 @@ void NavigatorContentUtils::registerProtocolHandler(Navigator& navigator, const
|
| if (!verifyCustomHandlerScheme(scheme, exceptionState))
|
| return;
|
|
|
| + // Count usage; perhaps we can lock this to secure contexts.
|
| + UseCounter::count(*document, document->isSecureContext() ? UseCounter::RegisterProtocolHandlerSecureOrigin : UseCounter::RegisterProtocolHandlerInsecureOrigin);
|
| +
|
| NavigatorContentUtils::from(*navigator.frame())->client()->registerProtocolHandler(scheme, document->completeURL(url), title);
|
| }
|
|
|
|
|