Bug 158808 - Uncaught Exception: TypeError: undefined is not an object (evaluating 'imageElement.classList')
Summary: Uncaught Exception: TypeError: undefined is not an object (evaluating 'imageE...
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: Joseph Pecoraro
URL: http://www.apple.com/watch/
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-06-15 13:36 PDT by Joseph Pecoraro
Modified: 2016-06-15 14:15 PDT (History)
7 users (show)

See Also:


Attachments
[PATCH] Proposed Fix (1.91 KB, patch)
2016-06-15 13:42 PDT, Joseph Pecoraro
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2016-06-15 13:36:52 PDT
I see this occasionally.

-------
Auto-generated details:

Inspected URL:        http://www.apple.com/watch/
Uncaught exceptions:
 - TypeError: undefined is not an object (evaluating 'imageElement.classList') (at HeapAllocationsTimelineOverviewGraph.js:112:21)
    _updateSnapshotMarkers @ HeapAllocationsTimelineOverviewGraph.js:112:21
    updateSelectedRecord @ HeapAllocationsTimelineOverviewGraph.js:95:36
    ? @ TimelineOverviewGraph.js:248:38
-------

* STEPS TO REPRODUCE
1. Inspect apple.com/watch/
2. Start a timeline recording and stop
3. Add Allocations timeline
4. Wait 10 seconds so a new recording would be offscreen of the overview graph
5. Take a heap snapshot
6. Go into that heap snapshot
  => Exception

* NOTES
I think the issue here is that the snapshot doesn't have an image element in the overview graph, so we should have bailed earlier.
Comment 1 Radar WebKit Bug Importer 2016-06-15 13:38:54 PDT
<rdar://problem/26821034>
Comment 2 Joseph Pecoraro 2016-06-15 13:42:35 PDT
Created attachment 281385 [details]
[PATCH] Proposed Fix
Comment 3 BJ Burg 2016-06-15 13:54:42 PDT
Comment on attachment 281385 [details]
[PATCH] Proposed Fix

r=me
Comment 4 WebKit Commit Bot 2016-06-15 14:15:12 PDT
Comment on attachment 281385 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 281385

Committed r202106: <http://trac.webkit.org/changeset/202106>
Comment 5 WebKit Commit Bot 2016-06-15 14:15:16 PDT
All reviewed patches have been landed.  Closing bug.