Changeset 21480 in webkit
- Timestamp:
- May 15, 2007, 1:27:42 AM (18 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r21479 r21480 1 2007-05-14 Anders Carlsson <andersca@apple.com> 2 3 Reviewed by Geoff. 4 5 <rdar://problem/5200816> 6 REGRESSION: With Shiira 1.2.2 , I can't open embedded link in flash object by clicking (http:/www.adobe.com ) 7 8 Shiira under some circumstances passes nil as the request to -[WebFrame loadRequest:]. ToT WebKit doesn't call any policy 9 delegate methods in this case, which means that the page is actually being loaded. 10 11 This patch makes ToT WebKit behave in the same way as Tiger WebKit when the request is nil. 12 13 * loader/FrameLoader.cpp: 14 (WebCore::FrameLoader::checkNavigationPolicy): 15 Don't continue without calling the navigation policy method if the request is null. 16 17 (WebCore::FrameLoader::continueAfterNavigationPolicy): 18 If the request can't be handled, don't continue the load. 19 20 * platform/network/mac/ResourceRequestMac.mm: 21 (WebCore::ResourceRequest::doUpdatePlatformRequest): 22 Don't create an NSURLRequest object if the request is null. 23 1 24 2007-05-15 Maciej Stachowiak <mjs@apple.com> 2 25 -
trunk/WebCore/loader/FrameLoader.cpp
r21479 r21480 3315 3315 // Don't ask more than once for the same request or if we are loading an empty URL. 3316 3316 // This avoids confusion on the part of the client. 3317 if (request == loader->lastCheckedRequest() || request.url().isEmpty()) {3317 if (request == loader->lastCheckedRequest() || (!request.isNull() && request.url().isEmpty())) { 3318 3318 function(argument, request, 0, true); 3319 3319 return; … … 3344 3344 m_policyCheck.clear(); 3345 3345 3346 bool shouldContinue = policy == PolicyUse; 3347 3346 3348 switch (policy) { 3347 3349 case PolicyIgnore: … … 3358 3360 handleUnimplementablePolicy(m_client->cannotShowURLError(check.request())); 3359 3361 check.clearRequest(); 3362 shouldContinue = false; 3360 3363 } 3361 3364 break; … … 3363 3366 } 3364 3367 3365 check.call( policy == PolicyUse);3368 check.call(shouldContinue); 3366 3369 } 3367 3370 -
trunk/WebCore/platform/network/mac/ResourceRequestMac.mm
r19660 r21480 68 68 void ResourceRequest::doUpdatePlatformRequest() 69 69 { 70 if (isNull()) { 71 m_nsRequest = nil; 72 return; 73 } 74 70 75 NSMutableURLRequest* nsRequest = [m_nsRequest.get() mutableCopy]; 71 76
Note:
See TracChangeset
for help on using the changeset viewer.