Changeset 94246 in webkit


Ignore:
Timestamp:
Aug 31, 2011 4:16:27 PM (12 years ago)
Author:
andersca@apple.com
Message:

REGRESSION(r93902): Can't open external links on gmail
https://bugs.webkit.org/show_bug.cgi?id=67234
<rdar://problem/10053636>

Reviewed by Alexey Proskuryakov.

  • Shared/cf/ArgumentCodersCF.cpp:

(CoreIPC::decode):
If we encounter an empty URL string, create an empty url by using NSURL, just
like we do in WebCore when converting an empty KURL to an NSURL.

  • WebKit2.xcodeproj/project.pbxproj:

Compile ArgumentCodersCF.cpp as Objective-C++ for now.

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r94122 r94246  
     12011-08-31  Anders Carlsson  <andersca@apple.com>
     2
     3        REGRESSION(r93902): Can't open external links on gmail
     4        https://bugs.webkit.org/show_bug.cgi?id=67234
     5        <rdar://problem/10053636>
     6
     7        Reviewed by Alexey Proskuryakov.
     8
     9        * Shared/cf/ArgumentCodersCF.cpp:
     10        (CoreIPC::decode):
     11        If we encounter an empty URL string, create an empty url by using NSURL, just
     12        like we do in WebCore when converting an empty KURL to an NSURL.
     13
     14        * WebKit2.xcodeproj/project.pbxproj:
     15        Compile ArgumentCodersCF.cpp as Objective-C++ for now.
     16
    1172011-08-30  Beth Dakin  <bdakin@apple.com>
    218
  • trunk/Source/WebKit2/Shared/cf/ArgumentCodersCF.cpp

    r88870 r94246  
    3131#include "DataReference.h"
    3232#include <wtf/Vector.h>
     33
     34#if PLATFORM(MAC)
     35#import <Foundation/Foundation.h>
     36#endif
    3337
    3438namespace CoreIPC {
     
    514518        return false;
    515519
     520#if PLATFORM(MAC)
     521    // FIXME: Move this to ArgumentCodersCFMac.mm and change this file back to be C++
     522    // instead of Objective-C++.
     523    if (!CFStringGetLength(string.get())) {
     524        // CFURL can't hold an empty URL, unlike NSURL.
     525        result = reinterpret_cast<CFURLRef>([NSURL URLWithString:@""]);
     526        return true;
     527    }
     528#endif
     529                   
    516530    CFURLRef url = CFURLCreateWithString(0, string.get(), baseURL.get());
    517531    if (!url)
  • trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj

    r94115 r94246  
    11101110                1AAF061312B01131008E49E2 /* PDFViewController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = PDFViewController.mm; sourceTree = "<group>"; };
    11111111                1AAF0C4812B16334008E49E2 /* ArgumentCodersCF.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ArgumentCodersCF.h; sourceTree = "<group>"; };
    1112                 1AAF0C4912B16334008E49E2 /* ArgumentCodersCF.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ArgumentCodersCF.cpp; sourceTree = "<group>"; };
     1112                1AAF0C4912B16334008E49E2 /* ArgumentCodersCF.cpp */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.objcpp; fileEncoding = 4; path = ArgumentCodersCF.cpp; sourceTree = "<group>"; };
    11131113                1AB7D4C81288AAA700CFD08C /* DownloadProxy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DownloadProxy.h; sourceTree = "<group>"; };
    11141114                1AB7D4C91288AAA700CFD08C /* DownloadProxy.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DownloadProxy.cpp; sourceTree = "<group>"; };
Note: See TracChangeset for help on using the changeset viewer.