<?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>50256</bug_id>
          
          <creation_ts>2010-11-30 11:37:48 -0800</creation_ts>
          <short_desc>Web Inspector: [CRASH] on &quot;Revert to this revision&quot; of style with import.</short_desc>
          <delta_ts>2011-11-21 06:43:41 -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>Web Inspector (Deprecated)</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Pavel Feldman">pfeldman</reporter>
          <assigned_to name="Pavel Feldman">pfeldman</assigned_to>
          <cc>abarth</cc>
    
    <cc>apavlov</cc>
    
    <cc>bweinstein</cc>
    
    <cc>eric</cc>
    
    <cc>joepeck</cc>
    
    <cc>keishi</cc>
    
    <cc>loislo</cc>
    
    <cc>pfeldman</cc>
    
    <cc>pmuellr</cc>
    
    <cc>rik</cc>
    
    <cc>webkit.review.bot</cc>
    
    <cc>yurys</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>315198</commentid>
    <comment_count>0</comment_count>
    <who name="Pavel Feldman">pfeldman</who>
    <bug_when>2010-11-30 11:37:48 -0800</bug_when>
    <thetext>1. Go to apple.com
2. Open inspector
3. edit font-size in body&apos;s selector
4. Revert to original in the resources tab

CRASH:

#0	0x1016cdc81 in WebCore::Document::removePendingSheet at Document.cpp:2856
#1	0x10195e1ce in WebCore::HTMLLinkElement::sheetLoaded at HTMLLinkElement.cpp:362
#2	0x10167bc70 in WebCore::CSSStyleSheet::checkLoaded at CSSStyleSheet.cpp:232
#3	0x102024bf1 in WebCore::StyleBase::checkLoaded at StyleBase.cpp:40
#4	0x10167bc3b in WebCore::CSSStyleSheet::checkLoaded at CSSStyleSheet.cpp:226
#5	0x1015f0283 in WebCore::CSSImportRule::setCSSStyleSheet at CSSImportRule.cpp:104
#6	0x10153f545 in WebCore::CachedCSSStyleSheet::didAddClient at CachedCSSStyleSheet.cpp:57
#7	0x1015470a7 in WebCore::CachedResource::addClient at CachedResource.cpp:216
#8	0x1015ef8c7 in WebCore::CSSImportRule::insertedIntoParent at CSSImportRule.cpp:148
#9	0x102029f82 in WebCore::StyleList::append at StyleList.cpp:35
#10	0x1015e4848 in cssyyparse at CSSGrammar.y:385
#11	0x10160d2e3 in WebCore::CSSParser::parseSheet at CSSParser.cpp:233
#12	0x10167bf98 in WebCore::CSSStyleSheet::parseStringAtLine at CSSStyleSheet.cpp:206
#13	0x10167bff3 in WebCore::CSSStyleSheet::parseString at CSSStyleSheet.cpp:199
#14	0x101a91e4d in WebCore::InspectorStyleSheet::reparseStyleSheet at InspectorStyleSheet.cpp:590
#15	0x101a2ffa2 in WebCore::InspectorCSSAgent::setStyleSheetText2 at InspectorCSSAgent.cpp:298

Here is where it crashes:

// This method is called whenever a top-level stylesheet has finished loading.
void Document::removePendingSheet()
{
    // Make sure we knew this sheet was pending, and that our count isn&apos;t out of sync.
    ASSERT(m_pendingStylesheets &gt; 0);

    m_pendingStylesheets--;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>315300</commentid>
    <comment_count>1</comment_count>
      <attachid>75200</attachid>
    <who name="Pavel Feldman">pfeldman</who>
    <bug_when>2010-11-30 14:04:24 -0800</bug_when>
    <thetext>Created attachment 75200
[PATCH] Proposed fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>315305</commentid>
    <comment_count>2</comment_count>
      <attachid>75200</attachid>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2010-11-30 14:11:04 -0800</bug_when>
    <thetext>Comment on attachment 75200
[PATCH] Proposed fix.

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>315450</commentid>
    <comment_count>3</comment_count>
    <who name="Pavel Feldman">pfeldman</who>
    <bug_when>2010-11-30 17:42:43 -0800</bug_when>
    <thetext>Committing to http://svn.webkit.org/repository/webkit/trunk ...
	M	WebCore/ChangeLog
	M	WebCore/css/CSSImportRule.cpp
Committed r72988</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>315473</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2010-11-30 18:31:44 -0800</bug_when>
    <thetext>http://trac.webkit.org/changeset/72988 might have broken Qt Linux ARMv5 Release</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>318067</commentid>
    <comment_count>5</comment_count>
    <who name="Pavel Feldman">pfeldman</who>
    <bug_when>2010-12-06 22:55:57 -0800</bug_when>
    <thetext>(this fix is being rolled out due to https://bugs.webkit.org/show_bug.cgi?id=50502)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>321760</commentid>
    <comment_count>6</comment_count>
      <attachid>75200</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-12-14 01:26:04 -0800</bug_when>
    <thetext>Comment on attachment 75200
[PATCH] Proposed fix.

Marking r- since this was rolled out.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>506919</commentid>
    <comment_count>7</comment_count>
    <who name="Alexander Pavlov (apavlov)">apavlov</who>
    <bug_when>2011-11-21 06:43:41 -0800</bug_when>
    <thetext>This is no longer crashing, fixed a while ago under a different bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>75200</attachid>
            <date>2010-11-30 14:04:24 -0800</date>
            <delta_ts>2010-12-14 01:26:04 -0800</delta_ts>
            <desc>[PATCH] Proposed fix.</desc>
            <filename>imported</filename>
            <type>text/plain</type>
            <size>1471</size>
            <attacher name="Pavel Feldman">pfeldman</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
ZDFhZWVhYS4uZTFmOWM2YyAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvV2Vi
Q29yZS9DaGFuZ2VMb2cKQEAgLTEsNSArMSwxOCBAQAogMjAxMC0xMS0zMCAgUGF2ZWwgRmVsZG1h
biAgPHBmZWxkbWFuQGNocm9taXVtLm9yZz4KIAorICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkg
KE9PUFMhKS4KKworICAgICAgICBXZWIgSW5zcGVjdG9yOiBbQ1JBU0hdIG9uICJSZXZlcnQgdG8g
dGhpcyByZXZpc2lvbiIgb2Ygc3R5bGUgd2l0aCBpbXBvcnQuCisgICAgICAgIGh0dHBzOi8vYnVn
cy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD01MDI1NgorCisgICAgICAgIFJvbGxlZCBiYWNr
IG9uZSBsaW5lIGZyb20gaHR0cDovL3RyYWMud2Via2l0Lm9yZy9jaGFuZ2VzZXQvMzY5MDQgYXMg
YWdyZWVkIHdpdGgKKyAgICAgICAgRGF2aWQuCisKKyAgICAgICAgKiBjc3MvQ1NTSW1wb3J0UnVs
ZS5jcHA6CisgICAgICAgIChXZWJDb3JlOjpDU1NJbXBvcnRSdWxlOjppbnNlcnRlZEludG9QYXJl
bnQpOgorCisyMDEwLTExLTMwICBQYXZlbCBGZWxkbWFuICA8cGZlbGRtYW5AY2hyb21pdW0ub3Jn
PgorCiAgICAgICAgIFJldmlld2VkIGJ5IFl1cnkgU2VtaWtoYXRza3kuCiAKICAgICAgICA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name="review"
          id="65965"
          type_id="1"
          status="-"
          setter="eric"
    />
          </attachment>
      

    </bug>

</bugzilla>