[Webkit-unassigned] [Bug 79255] New: QWebView 64bit javascript problem

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 22 10:20:22 PST 2012


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

           Summary: QWebView 64bit javascript problem
           Product: WebKit
           Version: 420+
          Platform: PC
        OS/Version: Windows 7
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebKit Qt
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: Theorembeweiser at yahoo.de


Mozilla/5.0 (N; Windows NT 6.1; Win64; x64) AppleWebKit/534.34 (KHTML, like Gecko) Qt/4.8.0 Safari/534.34

I'm using Qt WebKit in Visual Studio 2010 and in a QWebView i load the following HTML-Code to show a dynamic Bing Map
@//------------------------------------------HTML FILE-------------------------------------------------
#define MAP_HTML "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html><head><title></title>"\
 "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>"\
 "[removed][removed][removed]"\
 "var map = null;"\
 "function viewChanged(){MobileDataVisualAnalyticsMap.loaded()}"\
 "function viewChangeStarted(){MobileDataVisualAnalyticsMap.viewChangeStart()}"\
 "function mouseMoved(e){if (e.targetType == \"map\") {var point = new Microsoft.Maps.Point(e.getX(), e.getY());var loc = e.target.tryPixelToLocation(point);MobileDataVisualAnalyticsMap.mouseMoved(loc.latitude, loc.longitude);e.handled = false;}}"\
 "function clicked(e){MobileDataVisualAnalyticsMap.mapClick(); e.handled = false;}"\
 "function GetMapByBounds(northWestLatitude, northWestLongitude, southEastLatitude, southEastLongitude, mapType){"\
 "var boundingBox = Microsoft.Maps.LocationRect.fromLocations(new Microsoft.Maps.Location(northWestLatitude,northWestLongitude), new Microsoft.Maps.Location(southEastLatitude,southEastLongitude));"\
 "map = new Microsoft.Maps.Map(document.getElementById(\"mapDiv\"),{credentials: \"KeyDeleted\","\
 "bounds: boundingBox, mapTypeId: mapType, enableSearchLogo: false, enableClickableLogo: false, showScalebar: false, showCopyright: false, showDashboard:false});"\
 "Microsoft.Maps.Events.addHandler(map, 'viewchangeend', viewChanged); "\
 "Microsoft.Maps.Events.addHandler(map, 'viewchangestart', viewChangeStarted); "\
 "Microsoft.Maps.Events.addHandler(map, 'mousemove', mouseMoved); "\
 "Microsoft.Maps.Events.addHandler(map, 'click',clicked);"\
 "}"\
 "function GetMap(latitude, longitude, zoomfactor, mapType, mapHeading){"\
 "map = new Microsoft.Maps.Map(document.getElementById(\"mapDiv\"),{credentials: \"KeyDeleted\","\
 "center: new Microsoft.Maps.Location(latitude,longitude),mapTypeId: mapType,zoom: zoomfactor, enableSearchLogo: false, enableClickableLogo: false, showScalebar: false, showCopyright: false, showDashboard:false, heading: mapHeading});"\
 "Microsoft.Maps.Events.addHandler(map, 'viewchangeend', viewChanged); "\
 "Microsoft.Maps.Events.addHandler(map, 'viewchangestart', viewChangeStarted); "\
 "Microsoft.Maps.Events.addHandler(map, 'mousemove', mouseMoved); "\
 "Microsoft.Maps.Events.addHandler(map, 'click',clicked);"\
 "}"\
 "[removed]</head>"\
 "<body onload=\"GetMap(46.5269,6.56573, 15, Microsoft.Maps.MapTypeId.road, 0);\">"\
 "<div id=\"mapDiv\" style=\"width:100%; height:100%\"></div>"\
 "</body></html>"

//----------------------------------------END OF HTML FILE-------------------------------------------@

In the x86 build of VS2010 zoom and pan works fine with every zoom factor. If i change to x64 build of Visual Studio, regardless of the Qt build (32 bit or 64 bit), the map is loading perfectly above zoom factor 15, which is the default-value by loading the html. I can zoom in and pan around, all works fine. If i zoom out (zoom factor < 15) the map does not render more than i see with zoom factor 15. So i have a grey border around the map, which is expanding if i zoom more out. If i pan around the map acts like a static map and shows always the same pane. Its loading data from the map server, but doesn't show the map.
Changing the default value of the zoom factor didn't change anything. If i take for example zoom factor 10 the map doesn't show anything till i zoom in and reach zoom factor 15.
With the x86 build of VS2010 all works fine, its just the x64 build that shows this behaviour in combination with QWebView.

-- 
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