<?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>70953</bug_id>
          <alias>crbug.com/101665</alias>
          <creation_ts>2011-10-26 11:44:04 -0700</creation_ts>
          <short_desc>Chromium ui_tests WorkerTest.WorkerMessagePort[GC] were broken by https://bugs.webkit.org/attachment.cgi?id=112342</short_desc>
          <delta_ts>2011-10-27 15:40:22 -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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://crbug.com/101665</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="Dave Michael">dmichael</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dslomov</cc>
    
    <cc>levin</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>491058</commentid>
    <comment_count>0</comment_count>
    <who name="Dave Michael">dmichael</who>
    <bug_when>2011-10-26 11:44:04 -0700</bug_when>
    <thetext>In http://trac.webkit.org/changeset/98381, I changed PlatformMessagePortChannel::hasPendingActivity thusly:
 bool PlatformMessagePortChannel::hasPendingActivity()
 {
     MutexLocker lock(m_mutex);
-    return m_localPort;
+    return m_localPort &amp;&amp; m_localPort-&gt;hasPendingActivity();
 }

I suspect the new code is &apos;right&apos; (in that I think it provides the originally _intended_ behavior), but existing code elsewhere must depend on the previous behavior.

I&apos;m planning to undo this part of CS 98381, and hoping that somebody else more familiar with existing PlatformMessagePortChannels can fix the problem with this function and its caller(s) (if there is a problem).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>491068</commentid>
    <comment_count>1</comment_count>
      <attachid>112572</attachid>
    <who name="Dave Michael">dmichael</who>
    <bug_when>2011-10-26 11:53:52 -0700</bug_when>
    <thetext>Created attachment 112572
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>491071</commentid>
    <comment_count>2</comment_count>
    <who name="Dave Michael">dmichael</who>
    <bug_when>2011-10-26 11:55:45 -0700</bug_when>
    <thetext>I verified locally that these ui tests pass with this change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>491072</commentid>
    <comment_count>3</comment_count>
      <attachid>112572</attachid>
    <who name="David Levin">levin</who>
    <bug_when>2011-10-26 11:55:52 -0700</bug_when>
    <thetext>Comment on attachment 112572
Patch

hmm. I missed that change somehow. It is best not to do unrelated changes in your patch and it is also good to explain why a change was necessary in the changelog where the function is listed.

I should have mentioned this in your previous change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>491073</commentid>
    <comment_count>4</comment_count>
    <who name="David Levin">levin</who>
    <bug_when>2011-10-26 11:57:27 -0700</bug_when>
    <thetext>Please re-enable the disabled tests where this gets into chromium.

(Also for changes of this sort, there should be some test to verify that the change is correct and stays in place, but that was for the last patch.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>491538</commentid>
    <comment_count>5</comment_count>
      <attachid>112572</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-10-27 07:03:47 -0700</bug_when>
    <thetext>Comment on attachment 112572
Patch

Clearing flags on attachment: 112572

Committed r98566: &lt;http://trac.webkit.org/changeset/98566&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>491539</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-10-27 07:03:51 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>112572</attachid>
            <date>2011-10-26 11:53:52 -0700</date>
            <delta_ts>2011-10-27 07:03:47 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-70953-20111026125351.patch</filename>
            <type>text/plain</type>
            <size>1552</size>
            <attacher name="Dave Michael">dmichael</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogOTgzODEKZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJLaXQvY2hy
b21pdW0vQ2hhbmdlTG9nIGIvU291cmNlL1dlYktpdC9jaHJvbWl1bS9DaGFuZ2VMb2cKaW5kZXgg
ODAzODA5Yzc2MGIyMjY2Njg0MjMzZDQ4MGY0ZjlkYzZjNDgyMjFlOS4uODYzZmI2MDQzMDM5ODM2
NDFmMmNjMGZmNDUwMDdhMDEyZjg2MWM4NyAxMDA2NDQKLS0tIGEvU291cmNlL1dlYktpdC9jaHJv
bWl1bS9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYktpdC9jaHJvbWl1bS9DaGFuZ2VMb2cKQEAg
LTEsMyArMSwxMyBAQAorMjAxMS0xMC0yNiAgRGF2ZSBNaWNoYWVsICA8ZG1pY2hhZWxAY2hyb21p
dW0ub3JnPgorCisgICAgICAgIENocm9taXVtIHVpX3Rlc3RzIFdvcmtlclRlc3QuV29ya2VyTWVz
c2FnZVBvcnRbR0NdIHdlcmUgYnJva2VuIGJ5IGh0dHBzOi8vYnVncy53ZWJraXQub3JnL2F0dGFj
aG1lbnQuY2dpP2lkPTExMjM0MgorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93
X2J1Zy5jZ2k/aWQ9NzA5NTMKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4K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