[Webkit-unassigned] [Bug 37032] New: operator ! operated on wrong target which is an object

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 2 11:27:54 PDT 2010


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

           Summary: operator ! operated on wrong target which is an object
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Minor
          Priority: P2
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: swang at google.com


In WebCore/loader/SubresourceLoader.cpp line 84, the following line is there
    else if (!request.httpReferrer())

But since request.httpReferrer returns a String object, the ! operator will
interpreted unintentionally, the correct fix shall be:
    else if (request.httpReferrer().isEmpty())

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list