<?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>28776</bug_id>
          
          <creation_ts>2009-08-27 10:53:36 -0700</creation_ts>
          <short_desc>[v8] Add support for newly added lowMemoryNotification() API in V8</short_desc>
          <delta_ts>2009-09-01 16:35:43 -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>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>Other</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="Andrei Popescu">andreip</reporter>
          <assigned_to name="Ben Murdoch">benm</assigned_to>
          <cc>abarth</cc>
    
    <cc>benm</cc>
    
    <cc>eric</cc>
    
    <cc>levin</cc>
    
    <cc>mrowe</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>143150</commentid>
    <comment_count>0</comment_count>
    <who name="Andrei Popescu">andreip</who>
    <bug_when>2009-08-27 10:53:36 -0700</bug_when>
    <thetext>V8 added a new API for Android&apos;s benefit.

http://code.google.com/p/v8/source/detail?spec=svn2777&amp;r=2725

We access V8 via the ScriptController class so the new V8 methods need to be proxied through this class, as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143151</commentid>
    <comment_count>1</comment_count>
      <attachid>38674</attachid>
    <who name="Andrei Popescu">andreip</who>
    <bug_when>2009-08-27 10:56:57 -0700</bug_when>
    <thetext>Created attachment 38674
Add &quot;LowMemoryNotification()&quot; method on the ScriptController class.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143562</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2009-08-30 18:10:10 -0700</bug_when>
    <thetext>What is the point of adding ScriptController::lowMemoryNotification given that nothing calls it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143618</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-08-31 03:38:24 -0700</bug_when>
    <thetext>I assume this is called by some other Andriod code?  Why wouldn&apos;t that code just call the v8 API directly?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143658</commentid>
    <comment_count>4</comment_count>
      <attachid>38674</attachid>
    <who name="David Levin">levin</who>
    <bug_when>2009-08-31 09:19:35 -0700</bug_when>
    <thetext>Comment on attachment 38674
Add &quot;LowMemoryNotification()&quot; method on the ScriptController class.

Marking r- based on previous comments in bug that need an answer.

Also, note that chromium has moved past that revision, so there is no need for that if PLATFORM.
   http://src.chromium.org/viewvc/chrome/trunk/src/DEPS?view=markup</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143846</commentid>
    <comment_count>5</comment_count>
    <who name="Andrei Popescu">andreip</who>
    <bug_when>2009-09-01 04:18:10 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; What is the point of adding ScriptController::lowMemoryNotification given that
&gt; nothing calls it?

Android code calls it. We haven&apos;t yet sent the patches that call that code, but we plan to do so very soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143847</commentid>
    <comment_count>6</comment_count>
    <who name="Andrei Popescu">andreip</who>
    <bug_when>2009-09-01 04:20:46 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; I assume this is called by some other Andriod code?  Why wouldn&apos;t that code
&gt; just call the v8 API directly?

Android doesn&apos;t really know anything about V8, we just call methods on the script controller. I am not sure I understand why would we make an exception in this case?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143858</commentid>
    <comment_count>7</comment_count>
      <attachid>38859</attachid>
    <who name="Andrei Popescu">andreip</who>
    <bug_when>2009-09-01 04:58:27 -0700</bug_when>
    <thetext>Created attachment 38859
Add &quot;LowMemoryNotification()&quot; method on the ScriptController class (take 2)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143914</commentid>
    <comment_count>8</comment_count>
      <attachid>38859</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-09-01 09:18:22 -0700</bug_when>
    <thetext>Comment on attachment 38859
Add &quot;LowMemoryNotification()&quot; method on the ScriptController class (take 2)

Rejecting patch 38859 from commit-queue.  This patch will require manual commit.

[&apos;WebKitTools/Scripts/run-webkit-tests&apos;, &apos;--no-launch-safari&apos;, &apos;--quiet&apos;, &apos;--exit-after-n-failures=1&apos;] failed with exit code 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143926</commentid>
    <comment_count>9</comment_count>
    <who name="Ben Murdoch">benm</who>
    <bug_when>2009-09-01 10:05:40 -0700</bug_when>
    <thetext>I will land.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143927</commentid>
    <comment_count>10</comment_count>
    <who name="Andrei Popescu">andreip</who>
    <bug_when>2009-09-01 10:14:35 -0700</bug_when>
    <thetext>(In reply to comment #8)
&gt; (From update of attachment 38859 [details])
&gt; Rejecting patch 38859 from commit-queue.  This patch will require manual
&gt; commit.
&gt; 
&gt; [&apos;WebKitTools/Scripts/run-webkit-tests&apos;, &apos;--no-launch-safari&apos;, &apos;--quiet&apos;,
&gt; &apos;--exit-after-n-failures=1&apos;] failed with exit code 1

Does this mean my patch causes a layout test failure on OSX? That surely can&apos;t be since it only touches two files in bindings/v8... 

Anyway, Ben&apos;s looking at it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143929</commentid>
    <comment_count>11</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2009-09-01 10:19:21 -0700</bug_when>
    <thetext>&gt; Does this mean my patch causes a layout test failure on OSX? That surely can&apos;t
&gt; be since it only touches two files in bindings/v8... 

The commit queue might be horked, or it could be flakiness.  I doubt it&apos;s a problem with your patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143946</commentid>
    <comment_count>12</comment_count>
    <who name="Ben Murdoch">benm</who>
    <bug_when>2009-09-01 11:05:07 -0700</bug_when>
    <thetext>Landed as r47942.

Sending        WebCore/ChangeLog
Sending        WebCore/bindings/v8/ScriptController.cpp
Sending        WebCore/bindings/v8/ScriptController.h
Transmitting file data ...
Committed revision 47942.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>144041</commentid>
    <comment_count>13</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-09-01 16:35:43 -0700</bug_when>
    <thetext>media/video-source-add-src.html -&gt; timed out

Your patch was yet another victim of bug 28845. :(</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>38674</attachid>
            <date>2009-08-27 10:56:57 -0700</date>
            <delta_ts>2009-08-31 09:19:35 -0700</delta_ts>
            <desc>Add &quot;LowMemoryNotification()&quot; method on the ScriptController class.</desc>
            <filename>28776.patch</filename>
            <type>text/plain</type>
            <size>2243</size>
            <attacher name="Andrei Popescu">andreip</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiA0NzgyMykKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTkgQEAKKzIwMDktMDgtMjcgIEFuZHJlaSBQb3Blc2N1ICA8YW5kcmVpcEBnb29n
bGUuY29tPgorCisgICAgIC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C9TY3JpcHRDb250cm9sbGVyLmgJKHdvcmtpbmcgY29weSkKQEAgLTkyLDYgKzky
LDkgQEAgbmFtZXNwYWNlIFdlYkNvcmUgewogCiAgICAgICAgIHZvaWQgY29sbGVjdEdhcmJhZ2Uo
KTsKIAorICAgICAgICAvLyBOb3RpZnkgVjggdGhhdCB0aGUgc3lzdGVtIGlzIHJ1bm5pbmcgbG93
IG9uIG1lbW9yeS4KKyAgICAgICAgdm9pZCBsb3dNZW1vcnlOb3RpZmljYXRpb24oKTsKKwogICAg
ICAgICAvLyBDcmVhdGVzIGEgcHJvcGVydHkgb2YgdGhlIGdsb2JhbCBvYmplY3Qgb2YgYSBmcmFt
ZS4KICAgICAgICAgdm9pZCBiaW5kVG9XaW5kb3dPYmplY3QoRnJhbWUqLCBjb25zdCBTdHJpbmcm
IGtleSwgTlBPYmplY3QqKTsKIAo=
</data>
<flag name="review"
          id="19674"
          type_id="1"
          status="-"
          setter="levin"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>38859</attachid>
            <date>2009-09-01 04:58:27 -0700</date>
            <delta_ts>2009-09-01 09:18:22 -0700</delta_ts>
            <desc>Add &quot;LowMemoryNotification()&quot; method on the ScriptController class (take 2)</desc>
            <filename>28776.patch</filename>
            <type>text/plain</type>
            <size>2034</size>
            <attacher name="Andrei Popescu">andreip</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiA0NzgyMykKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTkgQEAKKzIwMDktMDgtMjcgIEFuZHJlaSBQb3Blc2N1ICA8YW5kcmVpcEBnb29n
bGUuY29tPgorCisgIC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2F0aW9uKCk7CisKICAgICAgICAgLy8gQ3JlYXRlcyBhIHByb3BlcnR5IG9mIHRoZSBnbG9i
YWwgb2JqZWN0IG9mIGEgZnJhbWUuCiAgICAgICAgIHZvaWQgYmluZFRvV2luZG93T2JqZWN0KEZy
YW1lKiwgY29uc3QgU3RyaW5nJiBrZXksIE5QT2JqZWN0Kik7CiAK
</data>
<flag name="review"
          id="19845"
          type_id="1"
          status="+"
          setter="levin"
    />
    <flag name="commit-queue"
          id="19856"
          type_id="3"
          status="-"
          setter="eric"
    />
          </attachment>
      

    </bug>

</bugzilla>