Bug 160187 - Regression(r203535): Uncaught Exception: TypeError: Not enough arguments at LayerTreeDataGridNode.js:47
Summary: Regression(r203535): Uncaught Exception: TypeError: Not enough arguments at L...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: BJ Burg
URL: http://cookingaddict.net/
Keywords: InRadar
: 160250 (view as bug list)
Depends on:
Blocks: 160047
  Show dependency treegraph
 
Reported: 2016-07-25 23:20 PDT by Benjamin Poulain
Modified: 2016-07-27 09:15 PDT (History)
9 users (show)

See Also:


Attachments
Proposed Fix (1.94 KB, patch)
2016-07-26 12:41 PDT, BJ Burg
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Poulain 2016-07-25 23:20:50 PDT
-------
Inspected URL:        http://cookingaddict.net/
Loading completed:    true
Frontend User Agent:  Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/603.1.1+ (KHTML, like Gecko)

Uncaught Exceptions:
 - TypeError: Not enough arguments (at LayerTreeDataGridNode.js:47:131)
    createTextNode @ [native code]
    createCellContent @ LayerTreeDataGridNode.js:47:131
    createCell @ DataGridNode.js:361:45
    createCells @ DataGridNode.js:111:54
    createCells @ LayerTreeDataGridNode.js:40:26
    element @ DataGridNode.js:104:25
    _updateVisibleRows @ DataGrid.js:1070:47
    layout @ DataGrid.js:852:32
    _layoutSubtree @ View.js:250:20
    updateLayout @ View.js:147:28
    updateLayoutIfNeeded @ View.js:155:26
    _sortNodesCallback @ DataGrid.js:1344:38
    _sortNodesCallback @ [native code]
-------

* STEPS TO REPRODUCE
1. What were you doing? Include setup or other preparations to reproduce the exception.
2. Include explicit, accurate, and minimal steps taken. Do not include extraneous or irrelevant steps.

* NOTES
Document any additional information that might be useful in resolving the problem, such as screen shots or other included attachments.
Comment 1 Radar WebKit Bug Importer 2016-07-25 23:21:19 PDT
<rdar://problem/27540435>
Comment 2 Benjamin Poulain 2016-07-25 23:23:19 PDT
To reproduce:
-Open http://cookingaddict.net
-Right click on the slider->Inspect
-Click on the div with id="defilhor"
Comment 3 Chris Dumez 2016-07-26 09:31:51 PDT
var cell = columnIdentifier === "name" ? this._makeNameCell() : this._makeOutlet(columnIdentifier, document.createTextNode());

Parameter to createTextNode() is mandatory after:
http://trac.webkit.org/changeset/203535

document.createTextNode() was identical to calling document.createTextNode("undefined") :/
Comment 4 BJ Burg 2016-07-26 09:54:18 PDT
(In reply to comment #3)
> var cell = columnIdentifier === "name" ? this._makeNameCell() :
> this._makeOutlet(columnIdentifier, document.createTextNode());
> 
> Parameter to createTextNode() is mandatory after:
> http://trac.webkit.org/changeset/203535
> 
> document.createTextNode() was identical to calling
> document.createTextNode("undefined") :/

Oops! This is in view code so we didn't have any coverage for that change.
Comment 5 BJ Burg 2016-07-26 12:41:39 PDT
Created attachment 284619 [details]
Proposed Fix
Comment 6 Nikita Vasilyev 2016-07-26 13:09:34 PDT
Comment on attachment 284619 [details]
Proposed Fix

View in context: https://bugs.webkit.org/attachment.cgi?id=284619&action=review

Looks good, but I'm not a reviewer to r+ it.

> Source/WebInspectorUI/UserInterface/Views/LayerTreeDataGridNode.js:47
> +        cell = columnIdentifier === "name" ? this._makeNameCell() : this._makeOutlet(columnIdentifier, document.createTextNode("â"));

â is an em dash. Our bugzilla doesn't handle unicode that well, apparently.
Comment 7 Nikita Vasilyev 2016-07-27 08:33:17 PDT
*** Bug 160250 has been marked as a duplicate of this bug. ***
Comment 8 WebKit Commit Bot 2016-07-27 09:15:36 PDT
Comment on attachment 284619 [details]
Proposed Fix

Clearing flags on attachment: 284619

Committed r203778: <http://trac.webkit.org/changeset/203778>
Comment 9 WebKit Commit Bot 2016-07-27 09:15:41 PDT
All reviewed patches have been landed.  Closing bug.