<?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>56354</bug_id>
          
          <creation_ts>2011-03-14 19:14:34 -0700</creation_ts>
          <short_desc>Web Inspector: empty, non-functional window</short_desc>
          <delta_ts>2011-03-28 22:09:01 -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>Web Inspector (Deprecated)</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.6</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>0</everconfirmed>
          <reporter name="Jeff Johnson">opendarwin</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>apavlov</cc>
    
    <cc>bweinstein</cc>
    
    <cc>commit-queue</cc>
    
    <cc>joepeck</cc>
    
    <cc>keishi</cc>
    
    <cc>loislo</cc>
    
    <cc>pfeldman</cc>
    
    <cc>pmuellr</cc>
    
    <cc>rik</cc>
    
    <cc>timothy</cc>
    
    <cc>yurys</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>367442</commentid>
    <comment_count>0</comment_count>
    <who name="Jeff Johnson">opendarwin</who>
    <bug_when>2011-03-14 19:14:34 -0700</bug_when>
    <thetext>I&apos;m using a Debug build of WebKit svn r81082 on Mac OS X 10.6.6, Safari 5.0.4.

When I load a web page and open the web inspector, the inspector is just an empty window. There&apos;s a search field and buttons, but nothing does anything.

When I open &quot;WebKit/WebKitBuild/Debug/WebCore.framework/Versions/A/Resources/inspector/inspector.html&quot; in Safari running the system WebKit, Safari&apos;s normal web inspector Console gives this error:

TypeError: Result of expression &apos;this.classList&apos; [undefined] is not an object.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>367443</commentid>
    <comment_count>1</comment_count>
    <who name="Jeff Johnson">opendarwin</who>
    <bug_when>2011-03-14 19:15:09 -0700</bug_when>
    <thetext>Joe Peck said it&apos;s probably the result of https://bugs.webkit.org/show_bug.cgi?id=56096</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>367495</commentid>
    <comment_count>2</comment_count>
    <who name="Jeff Johnson">opendarwin</who>
    <bug_when>2011-03-14 21:35:01 -0700</bug_when>
    <thetext>Actually, I can reproduce this bug with svn r80830, so it wasn&apos;t broken in 80831.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>367507</commentid>
    <comment_count>3</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2011-03-14 22:15:14 -0700</bug_when>
    <thetext>Oh, that makes sense if classList was not available in Safari 5.0.4. I thought it was.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>367531</commentid>
    <comment_count>4</comment_count>
    <who name="Jeff Johnson">opendarwin</who>
    <bug_when>2011-03-14 23:21:51 -0700</bug_when>
    <thetext>The cause is actually http://trac.webkit.org/changeset/70622/trunk along with associated build fixes http://trac.webkit.org/changeset/70623/trunk and http://trac.webkit.org/changeset/70633/trunk

To reproduce:
defaults write com.apple.Safari WebKitLocalStorageEnabledPreferenceKey -bool false

The file &quot;WebKit/Source/WebCore/inspector/front-end/Settings.js&quot; needs to check &quot;window.localStorage != null&quot; before using it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>367533</commentid>
    <comment_count>5</comment_count>
    <who name="Pavel Feldman">pfeldman</who>
    <bug_when>2011-03-14 23:24:37 -0700</bug_when>
    <thetext>&gt; To reproduce:
&gt; defaults write com.apple.Safari WebKitLocalStorageEnabledPreferenceKey -bool false

why would you do this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>367631</commentid>
    <comment_count>6</comment_count>
    <who name="Jeff Johnson">opendarwin</who>
    <bug_when>2011-03-15 05:49:08 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; &gt; To reproduce:
&gt; &gt; defaults write com.apple.Safari WebKitLocalStorageEnabledPreferenceKey -bool false
&gt; 
&gt; why would you do this?

LOL. Why wouldn&apos;t I do it? Why do people disable cookies? :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>372753</commentid>
    <comment_count>7</comment_count>
      <attachid>86759</attachid>
    <who name="Jeff Johnson">opendarwin</who>
    <bug_when>2011-03-24 05:38:24 -0700</bug_when>
    <thetext>Created attachment 86759
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>372956</commentid>
    <comment_count>8</comment_count>
      <attachid>86759</attachid>
    <who name="Pavel Feldman">pfeldman</who>
    <bug_when>2011-03-24 11:17:54 -0700</bug_when>
    <thetext>Comment on attachment 86759
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=86759&amp;action=review

Thanks for fixing this. I have to put r- for the poor email in the changelog + nit on the null comparison.

&gt; Source/WebCore/ChangeLog:1
&gt; +2011-03-24  Jeff Johnson  &lt;lapcatsoftware.com&gt;

This should contain your email.

&gt; Source/WebCore/inspector/front-end/Settings.js:117
&gt; +        if (window.localStorage === null)

I&apos;d rather use window.localStorage == null in order to allow undefined value. Have you checked that localStorage is null both for v8 and jsc bindings?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>373103</commentid>
    <comment_count>9</comment_count>
    <who name="Jeff Johnson">opendarwin</who>
    <bug_when>2011-03-24 14:31:55 -0700</bug_when>
    <thetext>(In reply to comment #8)
&gt; (From update of attachment 86759 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=86759&amp;action=review
&gt; 
&gt; Thanks for fixing this. I have to put r- for the poor email in the changelog + nit on the null comparison.
&gt; 
&gt; &gt; Source/WebCore/ChangeLog:1
&gt; &gt; +2011-03-24  Jeff Johnson  &lt;lapcatsoftware.com&gt;
&gt; 
&gt; This should contain your email.

I actually left the full address out on purpose, because after my last patch, which did contain an email address, I started receiving a ton of spam at that address, whereas I had never received spam at that address before. Is there some way I can leave out the email? I&apos;d rather be anonymous than spammed. ;-)

&gt; &gt; Source/WebCore/inspector/front-end/Settings.js:117
&gt; &gt; +        if (window.localStorage === null)
&gt; 
&gt; I&apos;d rather use window.localStorage == null in order to allow undefined value. Have you checked that localStorage is null both for v8 and jsc bindings?

I don&apos;t think there would be a difference between V8 and JSC, because the value comes from DOMWindow::sessionStorage():

https://trac.webkit.org/browser/trunk/Source/WebCore/page/DOMWindow.cpp

That said, I&apos;m not opposed to switching operators if you prefer.

I should also note that I&apos;ve filed this related bug:

https://bugs.webkit.org/show_bug.cgi?id=56703

If the linked bug is implemented, then we&apos;d need to wrap a try around the check as opposed to (or in addition to) checking for null. However, I&apos;d rather fix the web inspector now and possibly revise it later if and when the SECURITY_ERR change is implemented. I don&apos;t know how much opposition there would be to throwing a SECURITY_ERR.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>373110</commentid>
    <comment_count>10</comment_count>
    <who name="Jeff Johnson">opendarwin</who>
    <bug_when>2011-03-24 14:43:24 -0700</bug_when>
    <thetext>Typo in the above, I meant DOMWindow::localStorage rather than DOMWindow::sessionStorage.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>373414</commentid>
    <comment_count>11</comment_count>
    <who name="Pavel Feldman">pfeldman</who>
    <bug_when>2011-03-25 02:37:36 -0700</bug_when>
    <thetext>http://www.webkit.org/coding/contributing.html#changelogs claims there should be an email. I&apos;d rather not violate it. I see opendarwin at lapcatsoftware.com in the comments titles, so it is already available to the spammers...

&gt; I don&apos;t think there would be a difference between V8 and JSC, because the value comes from DOMWindow::sessionStorage():
&gt; 
&gt; https://trac.webkit.org/browser/trunk/Source/WebCore/page/DOMWindow.cpp

It is wrapped in the VM-specific JavaScript bindings, but it looks like both engines behave the same way. However, I suspect that compiling WebKit without ENABLE_DOM_STORAGE would result in window.localStorage being undefined, so == is better.

&gt; 
&gt; https://bugs.webkit.org/show_bug.cgi?id=56703
&gt; 
&gt; If the linked bug is implemented, then we&apos;d need to wrap a try around the check as opposed to (or in addition to) checking for null. However, I&apos;d rather fix the web inspector now and possibly revise it later if and when the SECURITY_ERR change is implemented. I don&apos;t know how much opposition there would be to throwing a SECURITY_ERR.

Yes, lets keep them separate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>373476</commentid>
    <comment_count>12</comment_count>
      <attachid>86930</attachid>
    <who name="Jeff Johnson">opendarwin</who>
    <bug_when>2011-03-25 06:28:58 -0700</bug_when>
    <thetext>Created attachment 86930
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>374996</commentid>
    <comment_count>13</comment_count>
      <attachid>86930</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-03-28 22:08:56 -0700</bug_when>
    <thetext>Comment on attachment 86930
Patch

Clearing flags on attachment: 86930

Committed r82191: &lt;http://trac.webkit.org/changeset/82191&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>374997</commentid>
    <comment_count>14</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-03-28 22:09:01 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>86759</attachid>
            <date>2011-03-24 05:38:24 -0700</date>
            <delta_ts>2011-03-25 06:28:54 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-56354-20110324073822.patch</filename>
            <type>text/plain</type>
            <size>2240</size>
            <attacher name="Jeff Johnson">opendarwin</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogODE4NjAKZGlmZiAtLWdpdCBhL1NvdXJjZ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7CiAKICAgICBfZ2V0
OiBmdW5jdGlvbihrZXksIGRlZmF1bHRWYWx1ZSkKICAgICB7Ci0gICAgICAgIGlmIChrZXkgaW4g
d2luZG93LmxvY2FsU3RvcmFnZSkgeworICAgICAgICBpZiAod2luZG93LmxvY2FsU3RvcmFnZSAh
PT0gbnVsbCAmJiBrZXkgaW4gd2luZG93LmxvY2FsU3RvcmFnZSkgewogICAgICAgICAgICAgdHJ5
IHsKICAgICAgICAgICAgICAgICByZXR1cm4gSlNPTi5wYXJzZSh3aW5kb3cubG9jYWxTdG9yYWdl
W2tleV0pOwogICAgICAgICAgICAgfSBjYXRjaChlKSB7CkBAIC0xNDMsNyArMTQ2LDggQEAgV2Vi
SW5zcGVjdG9yLlNldHRpbmdzLnByb3RvdHlwZSA9IHsKIAogICAgIF9zZXQ6IGZ1bmN0aW9uKGtl
eSwgdmFsdWUpCiAgICAgewotICAgICAgICB3aW5kb3cubG9jYWxTdG9yYWdlW2tleV0gPSBKU09O
LnN0cmluZ2lmeSh2YWx1ZSk7CisgICAgICAgIGlmICh3aW5kb3cubG9jYWxTdG9yYWdlICE9PSBu
dWxsKQorICAgICAgICAgICAgd2luZG93LmxvY2FsU3RvcmFnZVtrZXldID0gSlNPTi5zdHJpbmdp
ZnkodmFsdWUpOwogICAgIH0sCiAKICAgICBfZ2V0UHJvamVjdFNldHRpbmc6IGZ1bmN0aW9uKGtl
eSwgZGVmYXVsdFZhbHVlKQo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>86930</attachid>
            <date>2011-03-25 06:28:58 -0700</date>
            <delta_ts>2011-03-28 22:08:56 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-56354-20110325082857.patch</filename>
            <type>text/plain</type>
            <size>2248</size>
            <attacher name="Jeff Johnson">opendarwin</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogODE4NjAKZGlmZiAtLWdpdCBhL1NvdXJjZS9XZ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ID0gewog
CiAgICAgX2dldDogZnVuY3Rpb24oa2V5LCBkZWZhdWx0VmFsdWUpCiAgICAgewotICAgICAgICBp
ZiAoa2V5IGluIHdpbmRvdy5sb2NhbFN0b3JhZ2UpIHsKKyAgICAgICAgaWYgKHdpbmRvdy5sb2Nh
bFN0b3JhZ2UgIT0gbnVsbCAmJiBrZXkgaW4gd2luZG93LmxvY2FsU3RvcmFnZSkgewogICAgICAg
ICAgICAgdHJ5IHsKICAgICAgICAgICAgICAgICByZXR1cm4gSlNPTi5wYXJzZSh3aW5kb3cubG9j
YWxTdG9yYWdlW2tleV0pOwogICAgICAgICAgICAgfSBjYXRjaChlKSB7CkBAIC0xNDMsNyArMTQ2
LDggQEAgV2ViSW5zcGVjdG9yLlNldHRpbmdzLnByb3RvdHlwZSA9IHsKIAogICAgIF9zZXQ6IGZ1
bmN0aW9uKGtleSwgdmFsdWUpCiAgICAgewotICAgICAgICB3aW5kb3cubG9jYWxTdG9yYWdlW2tl
eV0gPSBKU09OLnN0cmluZ2lmeSh2YWx1ZSk7CisgICAgICAgIGlmICh3aW5kb3cubG9jYWxTdG9y
YWdlICE9IG51bGwpCisgICAgICAgICAgICB3aW5kb3cubG9jYWxTdG9yYWdlW2tleV0gPSBKU09O
LnN0cmluZ2lmeSh2YWx1ZSk7CiAgICAgfSwKIAogICAgIF9nZXRQcm9qZWN0U2V0dGluZzogZnVu
Y3Rpb24oa2V5LCBkZWZhdWx0VmFsdWUpCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>