[Blackberry] Add document url and securityOrigin to platform request.

https://bugs.webkit.org/show_bug.cgi?id=95822

Patch by Chris Guan <chris.guan@torchmobile.com.cn> on 2012-09-05
Reviewed by George Staikos.
Internally Reviewed by Joe Mason.

It is a webworks requirement.

* platform/network/blackberry/NetworkManager.cpp:
(WebCore::NetworkManager::startJob):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127572 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent f0946f26
2012-09-05 Chris Guan <chris.guan@torchmobile.com.cn>
[Blackberry] Add document url and securityOrigin to platform request.
https://bugs.webkit.org/show_bug.cgi?id=95822
Reviewed by George Staikos.
Internally Reviewed by Joe Mason.
It is a webworks requirement.
* platform/network/blackberry/NetworkManager.cpp:
(WebCore::NetworkManager::startJob):
2012-09-04 Ilya Tikhonovsky <loislo@chromium.org>
Web Inspector: NMI: replace ObjectType enum with static const char* string identifiers.
......@@ -27,6 +27,7 @@
#include "Page.h"
#include "ResourceHandleInternal.h"
#include "ResourceRequest.h"
#include "SecurityOrigin.h"
#include <BlackBerryPlatformLog.h>
#include <BuildInformation.h>
......@@ -76,6 +77,8 @@ bool NetworkManager::startJob(int playerId, const String& pageGroupName, PassRef
BlackBerry::Platform::NetworkRequest platformRequest;
request.initializePlatformRequest(platformRequest, frame.loader() && frame.loader()->client() && static_cast<FrameLoaderClientBlackBerry*>(frame.loader()->client())->cookiesEnabled(), isInitial, redirectCount);
platformRequest.setReferrer(frame.document()->url().string().utf8().data());
platformRequest.setSecurityOrigin(frame.document()->securityOrigin()->toRawString().utf8().data());
// Attach any applicable auth credentials to the NetworkRequest.
AuthenticationChallenge& challenge = guardJob->getInternal()->m_currentWebChallenge;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment