Changeset 116418 in webkit
- Timestamp:
- May 8, 2012 7:02:35 AM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r116408 r116418 1 2012-05-08 Chris Guan <chris.guan@torchmobile.com.cn> 2 3 [Blackberry] remove m_isRequestedByPlugin in ResourceRequest 4 https://bugs.webkit.org/show_bug.cgi?id=84559 5 6 Reviewed by Antonio Gomes. 7 8 ResourceRequest is a network level abstraction, and it should 9 not know anything about web concepts such as plug-ins, and Blackberry 10 does not need m_isRequestedByPlugin any longer, So clean up all related 11 code. 12 13 Tested on a website of http://edition.cnn.com, a new window should be 14 opened only when user has a singe tap gesture on a plugin element. 15 16 * platform/network/blackberry/ResourceRequest.h: 17 (WebCore::ResourceRequest::ResourceRequest): 18 (ResourceRequest): 19 (CrossThreadResourceRequestData): 20 * platform/network/blackberry/ResourceRequestBlackBerry.cpp: 21 (WebCore::ResourceRequest::doPlatformCopyData): 22 (WebCore::ResourceRequest::doPlatformAdopt): 23 1 24 2012-05-03 Alexander Pavlov <apavlov@chromium.org> 2 25 -
trunk/Source/WebCore/platform/network/blackberry/ResourceRequest.h
r116265 r116418 56 56 , m_isXMLHTTPRequest(false) 57 57 , m_mustHandleInternally(false) 58 , m_isRequestedByPlugin(false)59 58 , m_forceDownload(false) 60 59 , m_targetType(TargetIsUnspecified) … … 66 65 , m_isXMLHTTPRequest(false) 67 66 , m_mustHandleInternally(false) 68 , m_isRequestedByPlugin(false)69 67 , m_forceDownload(false) 70 68 , m_targetType(TargetIsUnspecified) … … 76 74 , m_isXMLHTTPRequest(false) 77 75 , m_mustHandleInternally(false) 78 , m_isRequestedByPlugin(false)79 76 , m_forceDownload(false) 80 77 , m_targetType(TargetIsUnspecified) … … 87 84 , m_isXMLHTTPRequest(false) 88 85 , m_mustHandleInternally(false) 89 , m_isRequestedByPlugin(false)90 86 , m_forceDownload(false) 91 87 , m_targetType(TargetIsUnspecified) … … 107 103 void setIsXMLHTTPRequest(bool isXMLHTTPRequest) { m_isXMLHTTPRequest = isXMLHTTPRequest; } 108 104 bool isXMLHTTPRequest() const { return m_isXMLHTTPRequest; } 109 110 void setIsRequestedByPlugin(bool isRequestedByPlugin) { m_isRequestedByPlugin = isRequestedByPlugin; }111 bool isRequestedByPlugin() const { return m_isRequestedByPlugin; }112 105 113 106 // Marks requests which must be handled by webkit even if LinksHandledExternally is set. … … 139 132 bool m_isXMLHTTPRequest; 140 133 bool m_mustHandleInternally; 141 bool m_isRequestedByPlugin;142 134 bool m_forceDownload; 143 135 TargetType m_targetType; … … 157 149 bool m_isXMLHTTPRequest; 158 150 bool m_mustHandleInternally; 159 bool m_isRequestedByPlugin;160 151 bool m_forceDownload; 161 152 ResourceRequest::TargetType m_targetType; -
trunk/Source/WebCore/platform/network/blackberry/ResourceRequestBlackBerry.cpp
r116265 r116418 239 239 data->m_isXMLHTTPRequest = m_isXMLHTTPRequest; 240 240 data->m_mustHandleInternally = m_mustHandleInternally; 241 data->m_isRequestedByPlugin = m_isRequestedByPlugin;242 241 data->m_forceDownload = m_forceDownload; 243 242 data->m_targetType = m_targetType; … … 253 252 m_isXMLHTTPRequest = data->m_isXMLHTTPRequest; 254 253 m_mustHandleInternally = data->m_mustHandleInternally; 255 m_isRequestedByPlugin = data->m_isRequestedByPlugin;256 254 m_forceDownload = data->m_forceDownload; 257 255 m_targetType = data->m_targetType; -
trunk/Source/WebKit/blackberry/ChangeLog
r116400 r116418 1 2012-05-08 Chris Guan <chris.guan@torchmobile.com.cn> 2 3 [Blackberry] remove m_isRequestedByPlugin in ResourceRequest 4 https://bugs.webkit.org/show_bug.cgi?id=84559 5 6 Reviewed by Antonio Gomes. 7 8 * WebCoreSupport/FrameLoaderClientBlackBerry.cpp: 9 (WebCore::FrameLoaderClientBlackBerry::dispatchDecidePolicyForNewWindowAction): 10 1 11 2012-05-08 Jonathan Dong <jonathan.dong@torchmobile.com.cn> 2 12 -
trunk/Source/WebKit/blackberry/WebCoreSupport/FrameLoaderClientBlackBerry.cpp
r116265 r116418 277 277 void FrameLoaderClientBlackBerry::dispatchDecidePolicyForNewWindowAction(FramePolicyFunction function, const NavigationAction&, const ResourceRequest& request, PassRefPtr<FormState>, const String& frameName) 278 278 { 279 if ( request.isRequestedByPlugin() && ScriptController::processingUserGesture() && !m_webPagePrivate->m_pluginMayOpenNewTab)279 if (ScriptController::processingUserGesture() && !m_webPagePrivate->m_pluginMayOpenNewTab) { 280 280 (m_frame->loader()->policyChecker()->*function)(PolicyIgnore); 281 return; 282 } 281 283 282 284 // A new window can never be a fragment scroll.
Note: See TracChangeset
for help on using the changeset viewer.