diff options
Diffstat (limited to 'Source/WebCore/workers/WorkerScriptLoader.cpp')
-rw-r--r-- | Source/WebCore/workers/WorkerScriptLoader.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/WebCore/workers/WorkerScriptLoader.cpp b/Source/WebCore/workers/WorkerScriptLoader.cpp index 1786b89..2224d87 100644 --- a/Source/WebCore/workers/WorkerScriptLoader.cpp +++ b/Source/WebCore/workers/WorkerScriptLoader.cpp @@ -1,6 +1,6 @@ /* * Copyright (C) 2009 Apple Inc. All Rights Reserved. - * Copyright (C) 2009 Google Inc. All Rights Reserved. + * Copyright (C) 2009, 2011 Google Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -87,6 +87,12 @@ void WorkerScriptLoader::loadAsynchronously(ScriptExecutionContext* scriptExecut m_threadableLoader = ThreadableLoader::create(scriptExecutionContext, this, *request, options); } +const KURL& WorkerScriptLoader::responseURL() const +{ + ASSERT(!failed()); + return m_responseURL; +} + PassOwnPtr<ResourceRequest> WorkerScriptLoader::createResourceRequest() { OwnPtr<ResourceRequest> request(new ResourceRequest(m_url)); @@ -101,6 +107,7 @@ void WorkerScriptLoader::didReceiveResponse(const ResourceResponse& response) m_failed = true; return; } + m_responseURL = response.url(); m_responseEncoding = response.textEncodingName(); if (m_client) m_client->didReceiveResponse(response); |