| Index: Source/core/dom/DOMURL.cpp
|
| diff --git a/Source/core/dom/DOMURL.cpp b/Source/core/dom/DOMURL.cpp
|
| index 576a46fc6e1cff84fd191b5c9e4fabd8c8a68096..4c596475596e7c464a62ae1af54199ea1e519045 100644
|
| --- a/Source/core/dom/DOMURL.cpp
|
| +++ b/Source/core/dom/DOMURL.cpp
|
| @@ -43,12 +43,17 @@ namespace blink {
|
| DOMURL::DOMURL(const String& url, const KURL& base, ExceptionState& exceptionState)
|
| {
|
| ScriptWrappable::init(this);
|
| - if (!base.isValid())
|
| + if (!base.isValid()) {
|
| exceptionState.throwDOMException(SyntaxError, "Invalid base URL");
|
| + return;
|
| + }
|
|
|
| m_url = KURL(base, url);
|
| - if (!m_url.isValid())
|
| + if (!m_url.isValid()) {
|
| exceptionState.throwDOMException(SyntaxError, "Invalid URL");
|
| + return;
|
| + }
|
| + DOMURLUtils::update();
|
| }
|
|
|
| void DOMURL::setInput(const String& value)
|
| @@ -61,6 +66,7 @@ void DOMURL::setInput(const String& value)
|
| m_url = KURL();
|
| m_input = value;
|
| }
|
| + DOMURLUtils::update();
|
| }
|
|
|
| String DOMURL::createObjectURL(ExecutionContext* executionContext, Blob* blob, ExceptionState& exceptionState)
|
| @@ -103,4 +109,9 @@ void DOMURL::revokeObjectUUID(ExecutionContext* executionContext, const String&
|
| executionContext->publicURLManager().revoke(uuid);
|
| }
|
|
|
| +void DOMURL::trace(Visitor* visitor)
|
| +{
|
| + DOMURLUtils::trace(visitor);
|
| +}
|
| +
|
| } // namespace blink
|
|
|