[Webkit-unassigned] [Bug 11764] New: spoof navigator.vendor

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 5 13:33:15 PST 2006


http://bugs.webkit.org/show_bug.cgi?id=11764

           Summary: spoof navigator.vendor
           Product: WebKit
           Version: 420+ (nightly)
          Platform: Macintosh
               URL: http://www.buy.com
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ra5ul at comcast.net


buy.com, for example, has disabled their shopping cart box (top right of page)
exclusively in safari.  i'm not sure why (they didn't respond to my queries),
since enabling it manually and testing shows no errors.

they're using navigator.vendor to identify safari.  i was thinking of a simple
fix to allow spoofing, like:

Index: WebCore/bindings/js/kjs_navigator.cpp
===================================================================
--- WebCore/bindings/js/kjs_navigator.cpp       (revision 18029)
+++ WebCore/bindings/js/kjs_navigator.cpp       (working copy)
@@ -181,6 +181,8 @@ JSValue* Navigator::getValueProperty(Exe
   case ProductSub:
     return jsString("20030107");
   case Vendor:
+    if (userAgent.find("Safari") == -1)
+      return jsString("");
     return jsString("Apple Computer, Inc.");
   case VendorSub:
     return jsString("");


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



More information about the webkit-unassigned mailing list