<?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>50502</bug_id>
          
          <creation_ts>2010-12-03 16:18:13 -0800</creation_ts>
          <short_desc>REGRESSION (r72988): change to CSSImportRule breaks loading in iframes</short_desc>
          <delta_ts>2010-12-07 01:50:33 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P1</priority>
          <bug_severity>Blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alice Liu">alice.barraclough</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>c.petersen87</cc>
    
    <cc>hyatt</cc>
    
    <cc>mathewlavery</cc>
    
    <cc>mitz</cc>
    
    <cc>pfeldman</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>317165</commentid>
    <comment_count>0</comment_count>
      <attachid>75576</attachid>
    <who name="Alice Liu">alice.barraclough</who>
    <bug_when>2010-12-03 16:18:13 -0800</bug_when>
    <thetext>Created attachment 75576
test case

http://trac.webkit.org/changeset/72988 seems to have broken loading of iframes with pages that use @import somewhere in their style. Attached a test case

steps to repro: 
open attached test case

Expected behavior: the page with url http://www.nytimes.com/2010/11/07/education/07china-t.html?pagewanted=2&amp;ref=education should load in the iframe and then shortly afterward the document is overtaken by http://www.nytimes.com/2010/11/07/education/07china-t.html.  Not sure why, but anyway this is what happens in shipping safari. 5.0.3 

TOT behavior: nothing loads in iframe.

side note: in the test case is a commented-out line that uses http://www.rollingstone.com/politics/news/17390/119236?RS_show_page=1.  This page doesn&apos;t use @import and behaves the same way in shipping as TOT.  it also just loads in the iframe and doens&apos;t overtake the whole document in both cases. 

&lt;rdar://problem/8728742&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>317445</commentid>
    <comment_count>1</comment_count>
    <who name="">mitz</who>
    <bug_when>2010-12-05 21:33:00 -0800</bug_when>
    <thetext>See also bug 50532.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>317862</commentid>
    <comment_count>2</comment_count>
    <who name="Alice Liu">alice.barraclough</who>
    <bug_when>2010-12-06 15:04:24 -0800</bug_when>
    <thetext>Pavel, had you had any chance to take a look? Is it reasonable to consider reverting r72988?  The consequences of the bug fix seem more serious than the fixed symptoms.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>317913</commentid>
    <comment_count>3</comment_count>
    <who name="James Robinson">jamesr</who>
    <bug_when>2010-12-06 16:23:53 -0800</bug_when>
    <thetext>*** Bug 50532 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>317925</commentid>
    <comment_count>4</comment_count>
    <who name="James Robinson">jamesr</who>
    <bug_when>2010-12-06 16:41:38 -0800</bug_when>
    <thetext>*** Bug 50526 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>318046</commentid>
    <comment_count>5</comment_count>
    <who name="James Robinson">jamesr</who>
    <bug_when>2010-12-06 20:52:56 -0800</bug_when>
    <thetext>*** Bug 50613 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>318066</commentid>
    <comment_count>6</comment_count>
    <who name="Pavel Feldman">pfeldman</who>
    <bug_when>2010-12-06 22:55:29 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; Pavel, had you had any chance to take a look? Is it reasonable to consider reverting r72988?  The consequences of the bug fix seem more serious than the fixed symptoms.

Sorry, was flying across the ocean. Reverting this asap.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>318068</commentid>
    <comment_count>7</comment_count>
    <who name="Pavel Feldman">pfeldman</who>
    <bug_when>2010-12-06 23:02:03 -0800</bug_when>
    <thetext>Committing to http://svn.webkit.org/repository/webkit/trunk ...
	M	WebCore/ChangeLog
	M	WebCore/css/CSSImportRule.cpp
Committed r73427</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>318090</commentid>
    <comment_count>8</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-12-07 01:37:12 -0800</bug_when>
    <thetext>Eventually we should land a regression test for this problem. Pavel, would you be willing to make one?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>318096</commentid>
    <comment_count>9</comment_count>
    <who name="Pavel Feldman">pfeldman</who>
    <bug_when>2010-12-07 01:50:33 -0800</bug_when>
    <thetext>(In reply to comment #8)
&gt; Eventually we should land a regression test for this problem. Pavel, would you be willing to make one?

Absolutely. We will need to fix the http://trac.webkit.org/changeset/72988 and it&apos;ll require a test.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>75576</attachid>
            <date>2010-12-03 16:18:13 -0800</date>
            <delta_ts>2010-12-03 16:18:13 -0800</delta_ts>
            <desc>test case</desc>
            <filename>nextPageLoadTest.html</filename>
            <type>text/html</type>
            <size>637</size>
            <attacher name="Alice Liu">alice.barraclough</attacher>
            
              <data encoding="base64">PGh0bWw+CjxzY3JpcHQ+CmZ1bmN0aW9uIG5leHRQYWdlTG9hZENvbXBsZXRlKCkKewogICAgY29u
c29sZS5sb2coIm5leHQgcGFnZSBsb2FkIGNvbXBsZXRlIik7Cn0KCmZ1bmN0aW9uIHN0YXJ0VGVz
dCgpCnsKICAgIHZhciBuZXh0UGFnZUNvbnRhaW5lciA9IGRvY3VtZW50LmdldEVsZW1lbnRCeUlk
KCJuZXh0LXBhZ2UtY29udGFpbmVyIik7CiAgICBuZXh0UGFnZUNvbnRhaW5lci5hZGRFdmVudExp
c3RlbmVyKCdsb2FkJywgbmV4dFBhZ2VMb2FkQ29tcGxldGUsIGZhbHNlKTsKICAgIG5leHRQYWdl
Q29udGFpbmVyLnNyYyA9ICJodHRwOi8vd3d3Lm55dGltZXMuY29tLzIwMTAvMTEvMDcvZWR1Y2F0
aW9uLzA3Y2hpbmEtdC5odG1sP3BhZ2V3YW50ZWQ9MiZyZWY9ZWR1Y2F0aW9uIjsgLy8gdXNlcyBA
aW1wb3J0Ci8vICAgIG5leHRQYWdlQ29udGFpbmVyLnNyYyA9ICJodHRwOi8vd3d3LnJvbGxpbmdz
dG9uZS5jb20vcG9saXRpY3MvbmV3cy8xNzM5MC8xMTkyMzY/UlNfc2hvd19wYWdlPTEiOyAvLyBk
b2Vzbid0IHVzZSBAaW1wb3J0Cn0KCjwvc2NyaXB0Pgo8Ym9keSBvbmxvYWQ9InN0YXJ0VGVzdCgp
Ij4KSGVsbG8KPGlmcmFtZSBpZD0ibmV4dC1wYWdlLWNvbnRhaW5lciI+PC9pZnJhbWU+CjwvYm9k
eT4KPC9odG1sPg==
</data>

          </attachment>
      

    </bug>

</bugzilla>