<?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>33916</bug_id>
          
          <creation_ts>2010-01-20 12:33:00 -0800</creation_ts>
          <short_desc>openDatabase should throw exception if database access is disallowed</short_desc>
          <delta_ts>2010-04-12 19:59:24 -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>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>P4</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric U.">ericu</reporter>
          <assigned_to name="Dumitru Daniliuc">dumi</assigned_to>
          <cc>abarth</cc>
    
    <cc>dglazkov</cc>
    
    <cc>dimich</cc>
    
    <cc>dumi</cc>
    
    <cc>eric</cc>
    
    <cc>fishd</cc>
    
    <cc>patrik.j.persson</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>182884</commentid>
    <comment_count>0</comment_count>
    <who name="Eric U.">ericu</who>
    <bug_when>2010-01-20 12:33:00 -0800</bug_when>
    <thetext>From the spec [http://dev.w3.org/html5/webdatabase/ section 4.1.1]: &quot;The user agent may raise a SECURITY_ERR exception instead of returning a Database object if the request violates a policy decision (e.g. if the user agent is configured to not allow the page to open databases).&quot;  We&apos;re just returning null, which isn&apos;t an option offered by the specification.

The current behavior is enforced by LayoutTests/fast/frames/sandboxed-iframe-storage.html.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>210348</commentid>
    <comment_count>1</comment_count>
      <attachid>52889</attachid>
    <who name="Dumitru Daniliuc">dumi</who>
    <bug_when>2010-04-08 13:19:11 -0700</bug_when>
    <thetext>Created attachment 52889
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>210349</commentid>
    <comment_count>2</comment_count>
      <attachid>52889</attachid>
    <who name="Dimitri Glazkov (Google)">dglazkov</who>
    <bug_when>2010-04-08 13:25:06 -0700</bug_when>
    <thetext>Comment on attachment 52889
patch

ok. Can you reference a layout test that enforces it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>210588</commentid>
    <comment_count>3</comment_count>
    <who name="Patrik Persson">patrik.j.persson</who>
    <bug_when>2010-04-09 00:02:33 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; From the spec [http://dev.w3.org/html5/webdatabase/ section 4.1.1]: &quot;The user
&gt; agent may raise a SECURITY_ERR exception instead of returning a Database object
&gt; if the request violates a policy decision (e.g. if the user agent is configured
&gt; to not allow the page to open databases).&quot;  We&apos;re just returning null, which
&gt; isn&apos;t an option offered by the specification.
&gt; 
&gt; The current behavior is enforced by
&gt; LayoutTests/fast/frames/sandboxed-iframe-storage.html.

FYI: that particular layout test was revised in bug 32369. However, that change was specific to sandboxed iframes. Other database policy decisions were not addressed by bug 32369.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>211789</commentid>
    <comment_count>4</comment_count>
    <who name="Dumitru Daniliuc">dumi</who>
    <bug_when>2010-04-12 17:26:18 -0700</bug_when>
    <thetext>Do we have a way to turn on/off DB support in tests? If not, then I&apos;m not sure how to write a test for this patch, because DB support is enabled by default.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>211796</commentid>
    <comment_count>5</comment_count>
    <who name="Dumitru Daniliuc">dumi</who>
    <bug_when>2010-04-12 18:08:42 -0700</bug_when>
    <thetext>Landed as r57492.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>211801</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2010-04-12 18:35:38 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/57492 might have broken SnowLeopard Intel Release (Tests)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>211818</commentid>
    <comment_count>7</comment_count>
    <who name="Dumitru Daniliuc">dumi</who>
    <bug_when>2010-04-12 19:59:24 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; http://trac.webkit.org/changeset/57492 might have broken SnowLeopard Intel
&gt; Release (Tests)

Fixed storage/open-database-over-quota.html in r57493.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>52889</attachid>
            <date>2010-04-08 13:19:11 -0700</date>
            <delta_ts>2010-04-08 13:25:06 -0700</delta_ts>
            <desc>patch</desc>
            <filename>patch</filename>
            <type>text/plain</type>
            <size>2092</size>
            <attacher name="Dumitru Daniliuc">dumi</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiA1NzI4OSkKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTYgQEAKKzIwMTAtMDQtMDggIER1bWl0cnUgRGFuaWxpdWMgIDxkdW1pQGNocm9t
aXVtLm9yZz4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAg
ICBUaHJvd2luZyBhIFNFQ1VSSVRZX0VSUiB3aGVuIG9wZW5EYXRhYmFzZSgpIGNhbm5vdCBvcGVu
IGEgZGF0YWJhc2UKKyAgICAgICAgZm9yIHdo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z
RW1wdHkoKSkKKyAgICAgICAgZWMgPSBTRUNVUklUWV9FUlI7CisKICAgICBWOFByb3h5OjpzZXRE
T01FeGNlcHRpb24oZWMpOwogICAgIHJldHVybiByZXN1bHQ7CiB9Cg==
</data>
<flag name="review"
          id="36492"
          type_id="1"
          status="+"
          setter="dglazkov"
    />
    <flag name="commit-queue"
          id="36493"
          type_id="3"
          status="-"
          setter="dumi"
    />
          </attachment>
      

    </bug>

</bugzilla>