| Index: Source/WebCore/workers/WorkerScriptLoader.cpp
|
| ===================================================================
|
| --- Source/WebCore/workers/WorkerScriptLoader.cpp (revision 78484)
|
| +++ Source/WebCore/workers/WorkerScriptLoader.cpp (working copy)
|
| @@ -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 @@
|
| 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 @@
|
| m_failed = true;
|
| return;
|
| }
|
| + m_responseURL = response.url();
|
| m_responseEncoding = response.textEncodingName();
|
| if (m_client)
|
| m_client->didReceiveResponse(response);
|
|
|