<?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>56536</bug_id>
          
          <creation_ts>2011-03-16 22:36:01 -0700</creation_ts>
          <short_desc>[Qt] console.log not being exposed to QmlViewer</short_desc>
          <delta_ts>2011-03-18 08:27:35 -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>New Bugs</component>
          <version>420+</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>Qt, QtTriaged</keywords>
          <priority>P5</priority>
          <bug_severity>Minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Damian Jansen">damian.jansen</reporter>
          <assigned_to name="Alexis Menard (darktears)">menard</assigned_to>
          <cc>benjamin</cc>
    
    <cc>commit-queue</cc>
    
    <cc>menard</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>368826</commentid>
    <comment_count>0</comment_count>
    <who name="Damian Jansen">damian.jansen</who>
    <bug_when>2011-03-16 22:36:01 -0700</bug_when>
    <thetext>In the QML WebView documentation (http://doc.qt.nokia.com/main-snapshot/qml-webview.html), for the javaScriptWindowObjects property there is the following snippet:

WebView {
     javaScriptWindowObjects: QtObject {
         WebView.windowObjectName: &quot;qml&quot;

         function qmlCall() {
             console.log(&quot;This call is in QML!&quot;);
         }
     }

     html: &quot;&lt;script&gt;console.log(\&quot;This is in WebKit!\&quot;); window.qml.qmlCall();&lt;/script&gt;&quot;
}

According to the documentation, the output of this snippet should be:

This is in WebKit!
This call is in QML!
Trying the example in qmlviewer.exe, with a recent git checkout of Qt gives only the second line. The first line &quot;This is in WebKit!&quot; is not being displayed.

Relocated from http://bugreports.qt.nokia.com/browse/QTBUG-15729</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>368966</commentid>
    <comment_count>1</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2011-03-17 03:51:09 -0700</bug_when>
    <thetext>That looks like bogus documentation to me. Alexis, do you know if we are exposing the inspector console to QML?

Damian, is it on device or on desktop? Device build don&apos;t have the inspector...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>369479</commentid>
    <comment_count>2</comment_count>
    <who name="Damian Jansen">damian.jansen</who>
    <bug_when>2011-03-17 20:25:12 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; That looks like bogus documentation to me. Alexis, do you know if we are exposing the inspector console to QML?
&gt; 
&gt; Damian, is it on device or on desktop? Device build don&apos;t have the inspector...

Reproduced on multiple platforms, including Linux desktop and Symbian devices.

Though I have a feeling that this output is not something one should be able to see without some kind of javascript debugger running for the given browser.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>369596</commentid>
    <comment_count>3</comment_count>
      <attachid>86156</attachid>
    <who name="Alexis Menard (darktears)">menard</who>
    <bug_when>2011-03-18 04:47:00 -0700</bug_when>
    <thetext>Created attachment 86156
Fix for the doc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>369636</commentid>
    <comment_count>4</comment_count>
      <attachid>86156</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-03-18 08:27:30 -0700</bug_when>
    <thetext>Comment on attachment 86156
Fix for the doc.

Clearing flags on attachment: 86156

Committed r81471: &lt;http://trac.webkit.org/changeset/81471&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>369638</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-03-18 08:27:35 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>86156</attachid>
            <date>2011-03-18 04:47:00 -0700</date>
            <delta_ts>2011-03-18 08:27:30 -0700</delta_ts>
            <desc>Fix for the doc.</desc>
            <filename>patch.diff</filename>
            <type>text/plain</type>
            <size>1301</size>
            <attacher name="Alexis Menard (darktears)">menard</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJLaXQvcXQvQ2hhbmdlTG9nIGIvU291cmNlL1dlYktpdC9x
dC9DaGFuZ2VMb2cKaW5kZXggM2NiY2ViMy4uMmVjNjYxZCAxMDA2NDQKLS0tIGEvU291cmNlL1dl
YktpdC9xdC9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYktpdC9xdC9DaGFuZ2VMb2cKQEAgLTEs
MyArMSwxNCBAQAorMjAxMS0wMy0xOCAgQWxleGlzIE1lbmFyZCAgPGFsZXhpcy5tZW5hcmRAb3Bl
bmJvc3NhLm9yZz4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAg
ICAgICBbUXRdIGNvbnNvbGUubG9nIG5vdCBiZWluZyBleHBvc2VkIHRvIFFtbFZpZXdlcgorICAg
ICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9NTY1MzYKKworICAg
ICAgICBUaGUgZG9jdW1lbnRhdGlvbiBpcyBib2d1cyB0aGUgZmVhdHVyZSBkb2VzIG5vdCBleGlz
dC4KKworICAgICAgICAqIGRlY2xhcmF0aXZlL3FkZWNsYXJhdGl2ZXdlYnZpZXcuY3BwOgorCiAy
MDExLTAzLTE2ICBKb3NlcGggUGVjb3Jhcm8gIDxqb2VwZWNrQHdlYmtpdC5vcmc+CiAKICAgICAg
ICAgUmV2aWV3ZWQgYnkgS2VubmV0aCB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