<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>46692</bug_id>
          
          <creation_ts>2010-09-27 20:02:39 -0700</creation_ts>
          <short_desc>REGRESSION (r61637): Lightbox resizes to incorrect size on octranspo1.com/routes</short_desc>
          <delta_ts>2011-05-16 14:45:47 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.6</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://www.octranspo1.com/routes/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, NeedsReduction, Regression</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>40645</dependson>
          <blocked>41115</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="Gilles Gauthier">webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>aestes</cc>
    
    <cc>ap</cc>
    
    <cc>eric</cc>
    
    <cc>oliver</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>286025</commentid>
    <comment_count>0</comment_count>
    <who name="Gilles Gauthier">webkit</who>
    <bug_when>2010-09-27 20:02:39 -0700</bug_when>
    <thetext>Overview: When clicking a lightbox on this website, it resizes to a smaller size than it should. 

Steps to Reproduce: 
1. Open http://www.octranspo1.com/routes/.
2. Click on the map on the right-hand side.

Actual Results: The lightbox expands to a smaller size than its defined size.

Expected Results: The lightbox should expand to its defined size.

Build Date &amp; Platform: Safari 5.0.2 (6533.18.5) release build on Mac OS 10.6.4, and nightly build r68419, built on 27 September 2010.

Additional Builds and Platforms: The issue does not appear to occur on any other browser that I tested, or even on the same version of Safari on Windows. It appears to strictly occur on Mac OS X.

Additional Information: Issue may be a regression, as it seems to appear correctly on Safari 5.0.1, but not on 5.0.2, and also appears correctly on old nightly builds (tested on r60605, built on 3 June 2010).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>286084</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-09-27 23:19:58 -0700</bug_when>
    <thetext>I cannot reproduce this with Safari 5.0.2 on Mac OS X - the map seems to be the same (reasonable) size as in Firefox.

Could you please attach a screenshot? Do you happen to have any Safari extensions or hacks installed on the machine where you observe this problem?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>286693</commentid>
    <comment_count>2</comment_count>
    <who name="Gilles Gauthier">webkit</who>
    <bug_when>2010-09-28 18:50:55 -0700</bug_when>
    <thetext>Sorry. While I did have 2 other people test it prior to submitting, I should&apos;ve thought to disable extensions. It appears that the problem does not occur if I disable a specific seemingly unrelated extension.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>286713</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-09-28 19:54:41 -0700</bug_when>
    <thetext>It&apos;s possible that this is a WebKit bug, although there is a chance of an extension bug, of course.

You can report this to the extension author or to us. If you&apos;d like us to investigate, please do tell what the extension is (assuming it&apos;s publicly available).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>286716</commentid>
    <comment_count>4</comment_count>
    <who name="Gilles Gauthier">webkit</who>
    <bug_when>2010-09-28 20:01:17 -0700</bug_when>
    <thetext>The extension I was using and its source is here:
http://github.com/bdougherty/tynt-blocker

I tried similar extensions, and they caused the same issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>286718</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-09-28 20:11:18 -0700</bug_when>
    <thetext>Thanks!

CC&apos;ing Andy and Oliver, who previously fixed some issue with such blocker extensions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>336991</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-01-19 17:47:36 -0800</bug_when>
    <thetext>&lt;rdar://problem/8890063&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>337044</commentid>
    <comment_count>7</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2011-01-19 19:07:37 -0800</bug_when>
    <thetext>This is a regression caused by http://trac.webkit.org/changeset/61637. Needs a reduction, obviously.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>351930</commentid>
    <comment_count>8</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-02-16 01:15:19 -0800</bug_when>
    <thetext>I can&apos;t reproduce this issue.  The lightbox expands beautifully using a WebKit nightly build and in the Chrome Dev channel.  Please re-open this bug if you can still reproduce the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>351934</commentid>
    <comment_count>9</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-02-16 01:24:28 -0800</bug_when>
    <thetext>Adam, did you install tynt-blocker when trying to reproduce?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>351935</commentid>
    <comment_count>10</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-02-16 01:30:51 -0800</bug_when>
    <thetext>Does this count as returning false, thus preventing the load?
https://github.com/bdougherty/tynt-blocker/blob/master/tyntblock.js#L15</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>351937</commentid>
    <comment_count>11</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-02-16 01:34:11 -0800</bug_when>
    <thetext>I did not test with tyntblocker, but I don&apos;t see how that could be related here. Tyntblocker doesn&apos;t use fragment parsing and the page doesn&apos;t reference &quot;tynt&quot; anywhere.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>351942</commentid>
    <comment_count>12</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2011-02-16 01:57:46 -0800</bug_when>
    <thetext>I was able to reproduce this in January (with Safari extensions turned off), but I can&apos;t now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>352098</commentid>
    <comment_count>13</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-02-16 08:40:43 -0800</bug_when>
    <thetext>&gt; Does this count as returning false, thus preventing the load?

If it did, the extension wouldn&apos;t work at all, right?

&gt; I did not test with tyntblocker, but I don&apos;t see how that could be related here.

A global onbeforeload handler changes a lot in how a page is loaded, see e.g. bug 45586.  For the reporter, this was only reproducible when any similar blocker extension was installed and enabled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>352266</commentid>
    <comment_count>14</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-02-16 12:43:40 -0800</bug_when>
    <thetext>I confirm that with the extension installed the lightbox doesn&apos;t work right.

Why? Who knows.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>352270</commentid>
    <comment_count>15</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-02-16 12:48:09 -0800</bug_when>
    <thetext>I installed the extension from http://brad.is/software/TyntBlocker.safariextz (which may be different from the source on the github.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>367271</commentid>
    <comment_count>16</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-03-14 14:56:52 -0700</bug_when>
    <thetext>&gt; Why? Who knows.

But this is still a regression from enabling HTML5 parser, right? Extensions are first class citizens, that&apos;s the whole point of their existence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>402733</commentid>
    <comment_count>17</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-05-12 00:44:51 -0700</bug_when>
    <thetext>@Eric: Can you look at this bug since you were able to reproduce it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>402929</commentid>
    <comment_count>18</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-05-12 10:22:00 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; This is a regression caused by http://trac.webkit.org/changeset/61637. Needs a reduction, obviously.

@Andy: Did we do a build bisection or some other method to prove that it was that exact change?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>402932</commentid>
    <comment_count>19</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-05-12 10:25:15 -0700</bug_when>
    <thetext>As far as I can tell, this is using scriptaculous&apos;s lightwindow:
http://script.aculo.us/

Which is all being inserted into the page via:
http://www.octranspo1.com/cached_core.js

This is the code in question:

	&lt;div class=&quot;calloutLight round5px&quot;&gt; 
		&lt;h3&gt;Quick Links&lt;/h3&gt; 
		&lt;a href=&quot;/index.php/routes/#routeImageLightwindow&quot; class=&quot;lightwindow preview&quot; title=&quot;Route Map for Route 001&quot;&gt;&lt;img src=&quot;http://www.octranspo1.com/images/files/routes/001map.gif&quot; alt=&quot;Route Map&quot; /&gt;&lt;/a&gt; 
		&lt;ul class=&quot;calloutFooterLinks&quot;&gt; 
			&lt;li&gt;&lt;a href=&quot;/index.php/routes/#routeImageLightwindow&quot; class=&quot;lightwindow&quot; title=&quot;Route Map for Route 001&quot;&gt;View map&lt;/a&gt;&lt;/li&gt; 
                        			&lt;li&gt;&lt;a href=&quot;http://www.octranspo1.com/images/files/route_pdf/map_carte_001.pdf&quot; class=&quot;PDF&quot;&gt;Print Map&lt;/a&gt;&lt;/li&gt; 
                        			&lt;li&gt;&lt;a href=&quot;/route/printRoute?selectRoute=001&amp;amp;year=2011&amp;amp;month=05&amp;amp;day=12&amp;amp;from_site=yes&quot; target=&quot;_blank&quot; id=&quot;timetableLink&quot;&gt;View timetable in text format&lt;/a&gt;&lt;/li&gt; 
		&lt;/ul&gt; 
	        &lt;div id=&quot;routeImageLightwindow&quot; style=&quot;display:none&quot;&gt;&lt;img src=&quot;http://www.octranspo1.com/images/files/routes/001map.gif&quot; alt=&quot;Route Map&quot; /&gt;&lt;/div&gt; 
		&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt; 
	&lt;/div&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>402933</commentid>
    <comment_count>20</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-05-12 10:26:44 -0700</bug_when>
    <thetext>The page is XHTML, but it looks like they&apos;re sending it as text/html:

curl -I &quot;http://www.octranspo1.com/routes/&quot;                                                                                                                 [/Projects/WebKit]
HTTP/1.1 200 OK
Date: Thu, 12 May 2011 17:26:05 GMT
Server: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny10 with Suhosin-Patch
X-Powered-By: PHP/5.2.6-1+lenny10
Set-Cookie: exp_last_visit=989875565; expires=Fri, 11-May-2012 17:26:05 GMT; path=/
Set-Cookie: exp_last_activity=1305235565; expires=Fri, 11-May-2012 17:26:05 GMT; path=/
Set-Cookie: exp_tracker=a%3A1%3A%7Bi%3A0%3Bs%3A8%3A%22%2Froutes%2F%22%3B%7D; path=/
Set-Cookie: oclang=en; expires=Thu, 02-Jun-2011 17:26:05 GMT; path=/; domain=.octranspo1.com; httponly
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Last-Modified: Thu, 12 May 2011 17:26:10 GMT
Pragma: no-cache
Vary: Accept-Encoding
Connection: close
Content-Type: text/html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>402985</commentid>
    <comment_count>21</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-05-12 11:17:38 -0700</bug_when>
    <thetext>The next step is to try modifying the extension (to see what exact behavior is causing this) but Safari won&apos;t let me do that because I don&apos;t have a Safari developer certificate.  I&apos;m not interested in getting one.  Leaving this to Apple to solve.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>402990</commentid>
    <comment_count>22</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-05-12 11:20:36 -0700</bug_when>
    <thetext>This is the lightwindow.js source in question:
http://www.octranspo1.com/scripts/lightwindow.js

it&apos;s minified as part of:
http://www.octranspo1.com/cached_core.js

But I believe those two files to be the same version.

It&apos;s not clear how the HTML5 parser could affect this (if it is even?).  lightwindow is using innerHTML, but having a (theoretically) noop beforeunload handler could only be causing races?

Maybe the old parser didn&apos;t fire beforeunloads?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>404726</commentid>
    <comment_count>23</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2011-05-16 14:45:47 -0700</bug_when>
    <thetext>(In reply to comment #18)
&gt; (In reply to comment #7)
&gt; &gt; This is a regression caused by http://trac.webkit.org/changeset/61637. Needs a reduction, obviously.
&gt; 
&gt; @Andy: Did we do a build bisection or some other method to prove that it was that exact change?

I did a bisection in January which indicated r61637 was to blame, but when I looked a month later I was unable to reproduce the issue.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>