| Issue 941: | Creation of GPolyline with empty vertex set, filled later with .insertVertex() causes unexpected GET requests in IE6, IE7 | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Sign in to add a comment
|
Hi there!
This is my first bug report to GMaps, so let me thank you for the perfect
Google Maps API first!
Bug report:
when one creates GPolyline with empty vertex set as new new GPolyline([]),
and add vertexes later with .insertVertex(), some part of API generates
HTTP GET requests to http://<hosted_server>/undefined URI in at least IE6
and IE7 in WinXP when the map is moved.
I have modified "Simple Polyline" sample to demonstrate this behavior. Do
the following to reproduce the problem:
1) create html file with the content (or use the file attach):
============= start of polyline-broken-IE.html ==========
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Google Maps JavaScript API Example: Simple Polyline</title>
<script
src="http://maps.google.com/maps?file=api&v=2&key=YOUR_KEY_HERE"
type="text/javascript"></script>
<script type="text/javascript">
function initialize() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
/*
// original sample code
var polyline = new GPolyline([
new GLatLng(37.4419, -122.1419),
new GLatLng(37.4519, -122.1519)
], "#ff0000", 10);*/
//replacement code
var polyline = new GPolyline([], "#ff0000", 10);
polyline.insertVertex(0, new GLatLng(37.4419, -122.1419));
polyline.insertVertex(1, new GLatLng(37.4519, -122.1519));
map.addOverlay(polyline);
}
}
</script>
</head>
<body onload="initialize()" onunload="GUnload()">
<div id="map_canvas" style="width: 500px; height: 300px"></div>
<div id="message"></div>
</body>
</html>
============= end of polyline-broken-IE.html ==========
Place your GoogleMaps Key instead of YOUR_KEY_HERE placeholder.
2) upload the html file to your web server
3) open IE6, open any HTTP monitor (I use IEWebDeveloperV2)
4) navigate IE to http://your_server/path/polyline-broken-IE.html
5) you may see 2 wrong GET requests on page load like:
GET Aborted 0 (None) http://your_server/path/undefined
GET 200 6.24 K text/html http://your_server/path/undefined
6) play with map a little, move it and see additional wrong GET requests in
your HTTP sniffer.
I think, this behavior is connected to DOM changes somehow, because I
suffered /undefined requests while completely independent of GMapsApi code
was running on my site.
Please, let me know if some other my assistance required.
|
||||||||||||||||||
,
Dec 24, 2008
I tried to replicate this with IE6 and Fiddler, and did not see any GET requests like that. Are you sure it's coming from the API? |
|||||||||||||||||||
,
Dec 24, 2008
Hm... I don't know if it's coming from the API, or from another source.
All I know is:
1) It does happen with code like:
var polyline = new GPolyline([], "#ff0000", 10);
polyline.insertVertex(0, new GLatLng(37.4419, -122.1419));
polyline.insertVertex(1, new GLatLng(37.4519, -122.1519));
and doesn't happen with code like:
var polyline = new GPolyline([
new GLatLng(37.4419, -122.1419),
new GLatLng(37.4519, -122.1519)
], "#ff0000", 10);
2) It happens on: my own IE v6.0.2900.2180.xpsp_sp2_gdr.080814-1233 on WinXP v5.1
(build 2600.xpsp_sp2_gdr.080814-1233 : Service Pack 2), and 2 completely different
non-connected computers with IE 7.0.5730.12 on WinXP 5.1 (build 2600.xpsp.080413-2111
: Service Pack 3) and IE 7.0.5730.13 on WinXP build 2600.xpsp_sp2_qfe.070227-2300
Each time I see the 'undefined' requests in my server log files.
Did you place the test HTML file on a real-world web-server?
May be you may try to see server log files after the test?
|
|||||||||||||||||||
,
Dec 27, 2008
Replicated this time, thanks! Reported to the team. This seems to be a regression bug, by the way - I couldn't reproduce before 2.139
Status: Accepted
Labels: Introduced-2.139 Internal-1561009 Regression-Yes |
|||||||||||||||||||
,
Dec 28, 2008
Yes! :) I'm really glad to be helpful :) |
|||||||||||||||||||
,
Jan 26, 2009
(No comment was entered for this change.)
Status: FixedNotReleased
|
|||||||||||||||||||
,
Feb 09, 2009
(No comment was entered for this change.)
Status: Fixed
Labels: Fixed-2.145 |
|||||||||||||||||||
|
|
|||||||||||||||||||