<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong>
<ul dir="auto">
<li>all</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>ubuntu 19.04</li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong>
<ul dir="auto">
<li>none</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">The webview 'console-message' event doesn't have an 'args'</p>
<p dir="auto"><a href="https://electronjs.org/docs/api/webview-tag#event-console-message" rel="nofollow">https://electronjs.org/docs/api/webview-tag#event-console-message</a></p>
<p dir="auto">If you want to listen to what's happening in a webview you can only get the message.</p>
<p dir="auto">For example if you do:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="log.info(&quot;hello: &quot;, &quot;electron&quot;); "><pre class="notranslate"><span class="pl-s1">log</span><span class="pl-kos">.</span><span class="pl-en">info</span><span class="pl-kos">(</span><span class="pl-s">"hello: "</span><span class="pl-kos">,</span> <span class="pl-s">"electron"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> </pre></div>
<p dir="auto">You can only get 'hello: ' not the "electron" string because there isn't an args.</p>
<p dir="auto">This makes it very very difficult to debug what's happening in a webview.</p>
<p dir="auto">Normally what I do is forward the console message from the child webview to the parent console so I can see what's happening there but I can't get 'args' which really breaks things.</p>
<p dir="auto">I can fix my own code but I can't fix the code of others.</p>
<ul dir="auto">
<li>Electron version:  1.4.2<br>
electron-builder@5.35.0<br>
electron-packager@7.7.0<br>
electron-prebuilt@1.3.9<br>
electron-rebuild@1.4.0</li>
<li>Operating system: Windows 10</li>
</ul>
<h3 dir="auto">Expected behavior</h3>

<p dir="auto">In Javascript you can chain messages together in the console.log function by adding multiple arguments.  I would like to be able to capture this functionality in the webview 'console-message' listener.</p>
<p dir="auto"><i>console.log("testing",4,new Object());</i></p>
<h3 dir="auto">Actual behavior</h3>

<p dir="auto">When re-directing messages to the webview like so...</p>
<p dir="auto"><i>webview.addEventListener('console-message', function(e) { console.log(e.message); });</i></p>
<p dir="auto">The listener event message only gets the first argument sent from the console.log in the webview. From my example, it would only print "testing".</p>
<h3 dir="auto">Things I have tried</h3>
<ul dir="auto">
<li>
I looked around inside the event object to see if the other arguments had been captured in another part of the object (outside of e.message), but I didn't see anything. 
</li>
<li>
I tried sending, <i>webview.addEventListener('console-message', function(a,b,c...) </i> the extra arguments were undefined.
</li>
</ul>
<h3 dir="auto">Note</h3>
<p dir="auto">I could use the + operator instead of sending multiple arguments, but the results would not be the same. For instance, sending an Object allows you to expand the Object.</p>