<?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>52283</bug_id>
          
          <creation_ts>2011-01-12 02:15:35 -0800</creation_ts>
          <short_desc>Remove premature optimization from SchemeRegistry</short_desc>
          <delta_ts>2011-01-12 17:40:11 -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>Platform</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Other</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adam Barth">abarth</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>darin</cc>
    
    <cc>eric</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>332973</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-01-12 02:15:35 -0800</bug_when>
    <thetext>Remove premature optimization from SchemeRegistry</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>332975</commentid>
    <comment_count>1</comment_count>
      <attachid>78666</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-01-12 02:18:38 -0800</bug_when>
    <thetext>Created attachment 78666
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>332993</commentid>
    <comment_count>2</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-01-12 02:59:52 -0800</bug_when>
    <thetext>This code looks to have been added in http://trac.webkit.org/changeset/19952, which doesn&apos;t explain why this optimization is necessary.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>332995</commentid>
    <comment_count>3</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-01-12 03:00:18 -0800</bug_when>
    <thetext>There might be more information in rdar://problem/4922454, but I can&apos;t see it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>333284</commentid>
    <comment_count>4</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2011-01-12 14:12:07 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; There might be more information in rdar://problem/4922454, but I can&apos;t see it.

That’s a security bug, so I can give some details here, but probably best to do so in a security-sensitive bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>333343</commentid>
    <comment_count>5</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-01-12 15:13:35 -0800</bug_when>
    <thetext>I&apos;m marking this bug as security sensitive, not because this issue reflects a security issue but so we can discuss the original motivation for the code we&apos;re changing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>333400</commentid>
    <comment_count>6</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2011-01-12 16:21:49 -0800</bug_when>
    <thetext>Radar bug 4922454 was about http-protocol HTML files being able to load file-protocol scripts. The information in Radar does not any insight into why the fix included the optimized path.

Sorry, didn’t mean to be a tease. I suppose this really isn’t all that security-sensitive. I was rushing and doing multiple things at once and really noticed only that the classification was security.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>333407</commentid>
    <comment_count>7</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-01-12 16:25:14 -0800</bug_when>
    <thetext>Thanks for looking in rdar.  I&apos;m going to move this back to non-sensitive so the commit-queue can land the patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>333461</commentid>
    <comment_count>8</comment_count>
      <attachid>78666</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-01-12 17:40:06 -0800</bug_when>
    <thetext>Comment on attachment 78666
Patch

Clearing flags on attachment: 78666

Committed r75664: &lt;http://trac.webkit.org/changeset/75664&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>333462</commentid>
    <comment_count>9</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-01-12 17:40:11 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>78666</attachid>
            <date>2011-01-12 02:18:38 -0800</date>
            <delta_ts>2011-01-12 17:40:06 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-52283-20110112021833.patch</filename>
            <type>text/plain</type>
            <size>1790</size>
            <attacher name="Adam Barth">abarth</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDc1NTk0KQorKysgU291cmNlL1dlYkNvcmUvQ2hhbmdl
TG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTggQEAKKzIwMTEtMDEtMTIgIEFkYW0gQmFy
dGggIDxhYmFydGhAd2Via2l0Lm9yZz4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9P
UFMhKS4KKworICAgICAgICBSZW1vdmUgcHJlbWF0dXJlIG9wdGltaXphdGlvbiBmcm9tIFNjaGVt
ZVJlZ2lzdHJ5CisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9p
ZD01MjI4MworCisgICAgICAgIEFzIGZhciBhcyBJIGNhbiB0ZW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