<?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>13661</bug_id>
          
          <creation_ts>2007-05-10 12:14:09 -0700</creation_ts>
          <short_desc>REGRESSION (r21367): Local css ignored until page is refreshed</short_desc>
          <delta_ts>2007-05-28 17:28: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>Page Loading</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kevin M. Dean">kevin</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dev+webkit</cc>
    
    <cc>mjs</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>10413</commentid>
    <comment_count>0</comment_count>
    <who name="Kevin M. Dean">kevin</who>
    <bug_when>2007-05-10 12:14:09 -0700</bug_when>
    <thetext>It seems that local css file as set under the advanced Preferences is no longer being applied in r21368. I use Safari Enhancer to remove underlines from link defaults and it no longer is loading the stylesheet. The activity window doesn&apos;t list it. Reverting to Safari works and shows the css file in the activity window.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10397</commentid>
    <comment_count>1</comment_count>
    <who name="Matt Lilek">dev+webkit</who>
    <bug_when>2007-05-10 12:31:38 -0700</bug_when>
    <thetext>This works for me with r21371</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10398</commentid>
    <comment_count>2</comment_count>
    <who name="Matt Lilek">dev+webkit</who>
    <bug_when>2007-05-10 12:32:59 -0700</bug_when>
    <thetext>Try removing Safari Enhancer and then try setting a local stylesheet and see if it&apos;s still broken.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10402</commentid>
    <comment_count>3</comment_count>
    <who name="Kevin M. Dean">kevin</who>
    <bug_when>2007-05-10 12:53:28 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; This works for me with r21371
&gt; 

I only get the nightly builds so it&apos;s possible it&apos;s already fixed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10405</commentid>
    <comment_count>4</comment_count>
    <who name="Kevin M. Dean">kevin</who>
    <bug_when>2007-05-10 12:54:55 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Try removing Safari Enhancer and then try setting a local stylesheet and see if
&gt; it&apos;s still broken.
&gt; 

There&apos;s nothing to remove with Safari Enhancer. It simply automates the connection to the local css file, doing the same as manually setting it via the preferences. I tried manually setting the pref anyway with no change.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10392</commentid>
    <comment_count>5</comment_count>
    <who name="Kevin M. Dean">kevin</who>
    <bug_when>2007-05-10 14:03:36 -0700</bug_when>
    <thetext>Interestingly, refreshing a page applies the css, but  not when it&apos;s first viewed after launching webkit. Once refreshed on one site, it seems to work on other sites too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10386</commentid>
    <comment_count>6</comment_count>
    <who name="Matt Lilek">dev+webkit</who>
    <bug_when>2007-05-10 15:18:25 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; Interestingly, refreshing a page applies the css, but  not when it&apos;s first
&gt; viewed after launching webkit. Once refreshed on one site, it seems to work on
&gt; other sites too.
&gt; 

Yeah, I definitely see that with r21371</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10389</commentid>
    <comment_count>7</comment_count>
    <who name="Matt Lilek">dev+webkit</who>
    <bug_when>2007-05-10 15:28:12 -0700</bug_when>
    <thetext>Looks like more fallout from Maciej&apos;s change in r21367 (nothing else in the r21359-r21368 range looks like it could have caused it).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10021</commentid>
    <comment_count>8</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2007-05-14 11:40:16 -0700</bug_when>
    <thetext>I cannot reproduce the described bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9884</commentid>
    <comment_count>9</comment_count>
    <who name="Kevin M. Dean">kevin</who>
    <bug_when>2007-05-15 05:47:11 -0700</bug_when>
    <thetext>I&apos;m re-opening because it hasn&apos;t been resolved as of r21473 and stills fails the same.

Just so the steps are clear, get the css file from the following attachment.
Then go to Preferences--&gt;Advanced--&gt;Style Sheet and select the attachment css file.
Then quit and re-launch Webkit. Make sure you&apos;re not running any other copies of the Webkit app. That seems to have an effect on the css load.
After the startup page, go immediately to &lt;http://www.imdb.com/&gt;
If it&apos;s failing the links should appear underlined. Refresh the browser and the underlines go away like expected due to the css file. Restart Webkit and the underlines are back until you refresh again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9885</commentid>
    <comment_count>10</comment_count>
      <attachid>14564</attachid>
    <who name="Kevin M. Dean">kevin</who>
    <bug_when>2007-05-15 05:48:15 -0700</bug_when>
    <thetext>Created attachment 14564
linkunder.css</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9328</commentid>
    <comment_count>11</comment_count>
    <who name="Kevin M. Dean">kevin</who>
    <bug_when>2007-05-23 05:18:15 -0700</bug_when>
    <thetext>Here&apos;s a twist. The problem only occurs if it&apos;s the latest Nightly build that loads the Webkit Nightly start page. I&apos;m currently using a previous version because the latest Nightly crashes too much. Doing so doesn&apos;t load the start page and I don&apos;t see the link underline issue. Even if I go to previous builds that definitely had the problem... they no longer have the problem. If I run the latest again, problem is back. So, it&apos;s looking like the problem is triggered by the initial load of the start page in the current nightly build only. Weird.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9020</commentid>
    <comment_count>12</comment_count>
    <who name="Kevin M. Dean">kevin</who>
    <bug_when>2007-05-27 06:37:43 -0700</bug_when>
    <thetext>OK, it appears this problem has evolved into the issue I&apos;m seeing in Bug 13880. Now if I have a Stylesheet set in the Advanced prefs, Webkit crashes on launch. Setting the stylesheet to none removes the problem. Even setting it to a blank css file brings back the crashing.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>14564</attachid>
            <date>2007-05-15 05:48:15 -0700</date>
            <delta_ts>2007-05-15 05:48:15 -0700</delta_ts>
            <desc>linkunder.css</desc>
            <filename>linkunder.css</filename>
            <type>text/plain</type>
            <size>64</size>
            <attacher name="Kevin M. Dean">kevin</attacher>
            
              <data encoding="base64">YTpsaW5rIHt0ZXh0LWRlY29yYXRpb246IG5vbmV9DWE6dmlzaXRlZCB7dGV4dC1kZWNvcmF0aW9u
OiBub25lfQ==
</data>

          </attachment>
      

    </bug>

</bugzilla>