<?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>37681</bug_id>
          
          <creation_ts>2010-04-15 16:11:49 -0700</creation_ts>
          <short_desc>Remove the main frame check when injecting v8 extensions into a script context</short_desc>
          <delta_ts>2010-04-15 23:20:44 -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>WebKit API</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows Vista</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="Matt Perry">mpcomplete</reporter>
          <assigned_to name="Matt Perry">mpcomplete</assigned_to>
          <cc>commit-queue</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>213096</commentid>
    <comment_count>0</comment_count>
    <who name="Matt Perry">mpcomplete</who>
    <bug_when>2010-04-15 16:11:49 -0700</bug_when>
    <thetext>Previously we had restricted v8 extensions to script contexts where both the frame and its main frame had matched that extension&apos;s scheme restriction. I want to remove the main frame check. Chromium can make this check elsewhere, which gives us finer-grained control over what extensions run and what APIs are exposed to web content.

This is related to Chromium bug http://code.google.com/p/chromium/issues/detail?id=37920 .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>213102</commentid>
    <comment_count>1</comment_count>
      <attachid>53486</attachid>
    <who name="Matt Perry">mpcomplete</who>
    <bug_when>2010-04-15 16:35:46 -0700</bug_when>
    <thetext>Created attachment 53486
simple patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>213121</commentid>
    <comment_count>2</comment_count>
      <attachid>53486</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-04-15 17:08:11 -0700</bug_when>
    <thetext>Comment on attachment 53486
simple patch

Ok.  I never liked that check.  :)

Grabbing the URL off the activeDocumentLoader is kind of scary, but is probably ok.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>213203</commentid>
    <comment_count>3</comment_count>
      <attachid>53486</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-04-15 23:20:39 -0700</bug_when>
    <thetext>Comment on attachment 53486
simple patch

Clearing flags on attachment: 53486

Committed r57715: &lt;http://trac.webkit.org/changeset/57715&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>213204</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-04-15 23:20:44 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>53486</attachid>
            <date>2010-04-15 16:35:46 -0700</date>
            <delta_ts>2010-04-15 23:20:39 -0700</delta_ts>
            <desc>simple patch</desc>
            <filename>iframe.patch</filename>
            <type>text/plain</type>
            <size>1802</size>
            <attacher name="Matt Perry">mpcomplete</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nDQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQotLS0gV2ViQ29yZS9DaGFuZ2VM
b2cJKHJldmlzaW9uIDU3NjgzKQorKysgV2ViQ29yZS9DaGFuZ2VMb2cJKHdvcmtpbmcgY29weSkK
QEAgLTEsMyArMSwxNiBAQAorMjAxMC0wNC0xNSAgTWF0dCBQZ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