<?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>60391</bug_id>
          
          <creation_ts>2011-05-06 11:44:51 -0700</creation_ts>
          <short_desc>Media Stream no-interface-object test should not have ReferenceError message in expected results</short_desc>
          <delta_ts>2011-06-18 13:18:21 -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>Tools / Tests</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>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>60394</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="Adam Bergkvist">adam.bergkvist</reporter>
          <assigned_to name="Adam Bergkvist">adam.bergkvist</assigned_to>
          <cc>abarth</cc>
    
    <cc>darin</cc>
    
    <cc>dglazkov</cc>
    
    <cc>eric</cc>
    
    <cc>leandrogracia</cc>
    
    <cc>tommyw</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>399679</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Bergkvist">adam.bergkvist</who>
    <bug_when>2011-05-06 11:44:51 -0700</bug_when>
    <thetext>The message for ReferenceError differs between JSC and V8 and having it in the expected results file requires unnecessary platform specific expected results.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>399682</commentid>
    <comment_count>1</comment_count>
      <attachid>92615</attachid>
    <who name="Adam Bergkvist">adam.bergkvist</who>
    <bug_when>2011-05-06 11:48:20 -0700</bug_when>
    <thetext>Created attachment 92615
Proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>401258</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2011-05-10 09:27:18 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; The message for ReferenceError differs between JSC and V8 and having it in the expected results file requires unnecessary platform specific expected results.

Does it have to differ? Can we make the messages the same?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>401871</commentid>
    <comment_count>3</comment_count>
    <who name="Adam Bergkvist">adam.bergkvist</who>
    <bug_when>2011-05-11 02:36:54 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (In reply to comment #0)
&gt; &gt; The message for ReferenceError differs between JSC and V8 and having it in the expected results file requires unnecessary platform specific expected results.
&gt; 
&gt; Does it have to differ? Can we make the messages the same?

I think it would be good to have the same message. The question is which message it should be? The V8 message seems to match the one you get in Firefox (aoeu is not defined), but perhaps the JSC message (Can&apos;t find variable: aoeu) is better since &quot;is not defined&quot; can be confused with undefined (an undefined value of a declared variable).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>402565</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-05-11 19:43:28 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (In reply to comment #0)
&gt; &gt; The message for ReferenceError differs between JSC and V8 and having it in the expected results file requires unnecessary platform specific expected results.
&gt; 
&gt; Does it have to differ? Can we make the messages the same?

:(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>402625</commentid>
    <comment_count>5</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-05-11 20:56:19 -0700</bug_when>
    <thetext>&gt; Does it have to differ? Can we make the messages the same?

I would very much like to make the messages the same.  Historically when I&apos;ve discussed this issue with the V8 team, they haven&apos;t been very receptive.  (I can dig up the bug numbers if you&apos;re interested.)  Some of the messages are generated by the bindings layer, which are easier to synchronize.  Unfortunately, I believe the ReferenceError is generated by the JS engine itself.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>410510</commentid>
    <comment_count>6</comment_count>
    <who name="Leandro Graciá Gil">leandrogracia</who>
    <bug_when>2011-05-26 09:20:00 -0700</bug_when>
    <thetext>This should be fixed by now. Can you please confirm it? All the tests passed in mac using JSC last time I tried.

Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>412226</commentid>
    <comment_count>7</comment_count>
    <who name="Adam Bergkvist">adam.bergkvist</who>
    <bug_when>2011-05-30 07:50:08 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; This should be fixed by now. Can you please confirm it? All the tests passed in mac using JSC last time I tried.
&gt; 
&gt; Thanks.

Still got the same problem with a build from this morning (r87680).

Here&apos;s the diff:

--- /tmp/layout-test-results/fast/dom/MediaStream/no-interface-object-expected.txt	2011-05-30 13:28:59.468002394 +0200
+++ /tmp/layout-test-results/fast/dom/MediaStream/no-interface-object-actual.txt	2011-05-30 13:28:59.468002394 +0200
@@ -4,13 +4,13 @@
 
 
 PASS typeof NavigatorUserMedia is &quot;undefined&quot;
-PASS NavigatorUserMedia.prototype threw exception ReferenceError: NavigatorUserMedia is not defined.
+PASS NavigatorUserMedia.prototype threw exception ReferenceError: Can&apos;t find variable: NavigatorUserMedia.
 PASS typeof NavigatorUserMediaError is &quot;undefined&quot;
-PASS NavigatorUserMediaError.prototype threw exception ReferenceError: NavigatorUserMediaError is not defined.
+PASS NavigatorUserMediaError.prototype threw exception ReferenceError: Can&apos;t find variable: NavigatorUserMediaError.
 PASS typeof NavigatorUserMediaSuccessCallback is &quot;undefined&quot;
-PASS NavigatorUserMediaSuccessCallback.prototype threw exception ReferenceError: NavigatorUserMediaSuccessCallback is not defined.
+PASS NavigatorUserMediaSuccessCallback.prototype threw exception ReferenceError: Can&apos;t find variable: NavigatorUserMediaSuccessCallback.
 PASS typeof NavigatorUserMediaErrorCallback is &quot;undefined&quot;
-PASS NavigatorUserMediaErrorCallback.prototype threw exception ReferenceError: NavigatorUserMediaErrorCallback is not defined.
+PASS NavigatorUserMediaErrorCallback.prototype threw exception ReferenceError: Can&apos;t find variable: NavigatorUserMediaErrorCallback.
 PASS successfullyParsed is true
 
 TEST COMPLETE</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>412562</commentid>
    <comment_count>8</comment_count>
    <who name="Leandro Graciá Gil">leandrogracia</who>
    <bug_when>2011-05-31 05:30:09 -0700</bug_when>
    <thetext>Sorry, I assigned the bug to Tommyw accidentally. I&apos;m resetting it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>412594</commentid>
    <comment_count>9</comment_count>
    <who name="Tommy Widenflycht">tommyw</who>
    <bug_when>2011-05-31 06:59:13 -0700</bug_when>
    <thetext>The patch looks just fine, but just for clarification have you verified it in V8?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>412615</commentid>
    <comment_count>10</comment_count>
    <who name="Adam Bergkvist">adam.bergkvist</who>
    <bug_when>2011-05-31 07:40:10 -0700</bug_when>
    <thetext>(In reply to comment #9)
&gt; The patch looks just fine, but just for clarification have you verified it in V8?

No, but the chromium ews seems happy.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>412640</commentid>
    <comment_count>11</comment_count>
    <who name="Leandro Graciá Gil">leandrogracia</who>
    <bug_when>2011-05-31 08:30:15 -0700</bug_when>
    <thetext>(In reply to comment #10)
&gt; (In reply to comment #9)
&gt; &gt; The patch looks just fine, but just for clarification have you verified it in V8?
&gt; 
&gt; No, but the chromium ews seems happy.

Yes, it looks like. The Chromium ews bot doesn&apos;t seem to turn red when some tests fail (which was the case), but fortunately these were completely unrelated to this. So it seems it&apos;s working fine in V8 too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>419513</commentid>
    <comment_count>12</comment_count>
      <attachid>92615</attachid>
    <who name="Adam Bergkvist">adam.bergkvist</who>
    <bug_when>2011-06-13 05:48:22 -0700</bug_when>
    <thetext>Comment on attachment 92615
Proposed patch

Filed a new bug for the continued discussion about aligning the error messages between JSC and V8: http://webkit.org/b/62540</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>423211</commentid>
    <comment_count>13</comment_count>
      <attachid>92615</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-06-18 13:18:16 -0700</bug_when>
    <thetext>Comment on attachment 92615
Proposed patch

Clearing flags on attachment: 92615

Committed r89203: &lt;http://trac.webkit.org/changeset/89203&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>423212</commentid>
    <comment_count>14</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-06-18 13:18:21 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>92615</attachid>
            <date>2011-05-06 11:48:20 -0700</date>
            <delta_ts>2011-06-18 13:18:16 -0700</delta_ts>
            <desc>Proposed patch</desc>
            <filename>getUserMedia-no-interface-object.patch</filename>
            <type>text/plain</type>
            <size>3244</size>
            <attacher name="Adam Bergkvist">adam.bergkvist</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL0xheW91dFRlc3RzL0NoYW5nZUxvZyBiL0xheW91dFRlc3RzL0NoYW5nZUxv
ZwppbmRleCBjMmFhZjZmLi45M2Q3YjU2IDEwMDY0NAotLS0gYS9MYXlvdXRUZXN0cy9DaGFuZ2VM
b2cKKysrIGIvTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTcgQEAKKzIwMTEtMDUt
MDYgIEFkYW0gQmVyZ2t2aXN0ICA8YWRhbS5iZXJna3Zpc3RAZXJpY3Nzb24uY29tPgorCisgICAg
ICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIE1lZGlhIFN0cmVhbSBu
by1pbnRlcm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oYXQgdGhlIGZvbGxvd2luZyBjbGFzc2VzIGFyZSBub3QgbWFuaXB1
bGFibGUgYnkgSmF2YVNjcmlwdCAoTm9JbnRlcmZhY2VPYmplY3QpLiIpOwogCitmdW5jdGlvbiBz
aG91bGRUaHJvd1JlZmVyZW5jZUVycm9yKGV4cHIpCit7CisgICAgdmFyIGU7CisgICAgdHJ5IHsK
KyAgICAgICAgZXZhbChleHByKTsKKyAgICB9IGNhdGNoIChfZSkgeworICAgICAgICBlID0gX2U7
CisgICAgfQorCisgICAgdmFyIG1zZyA9IGV4cHIgKyAoZSA/ICIgdGhyZXcgZXhjZXB0aW9uICIg
KyBlLm5hbWUgOiAiIGRpZCBub3QgdGhyb3ciKTsKKyAgICBpZiAoZSAmJiBlLm5hbWUgPT0gIlJl
ZmVyZW5jZUVycm9yIikKKyAgICAgICAgdGVzdFBhc3NlZChtc2cpOworICAgIGVsc2UKKyAgICAg
ICAgdGVzdEZhaWxlZChtc2cpOworfQorCiBmdW5jdGlvbiB0ZXN0KG5hbWUpCiB7CiAgICAgc2hv
dWxkQmUoJ3R5cGVvZiAnICsgbmFtZSwgJyJ1bmRlZmluZWQiJyk7Ci0gICAgc2hvdWxkVGhyb3co
bmFtZSArICcucHJvdG90eXBlJyk7CisgICAgc2hvdWxkVGhyb3dSZWZlcmVuY2VFcnJvcihuYW1l
ICsgJy5wcm90b3R5cGUnKTsKIH0KIAogdGVzdCgnTmF2aWdhdG9yVXNlck1lZGlhJyk7Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>