RESOLVED FIXED 126018
Web Inspector: Uncaught Exception: NavigationSidebarPanel.js: ERROR: TypeError: undefined is not a function (evaluating 'representedObject.saveIdentityToCookie(candidateObjectCookie)')
https://bugs.webkit.org/show_bug.cgi?id=126018
Summary Web Inspector: Uncaught Exception: NavigationSidebarPanel.js: ERROR: TypeErro...
Joseph Pecoraro
Reported 2013-12-19 14:14:06 PST
SUMMARY: file:///Volumes/Data/Build/Debug/WebInspectorUI.framework/Resources/NavigationSidebarPanel.js:582:51:JS ERROR: TypeError: undefined is not a function (evaluating 'representedObject.saveIdentityToCookie(candidateObjectCookie)') STEPS TO REPRODUCE: 1. Open Inspector for <http://bogojoker.com> 2. Inspect the Inspector (I typically do by the Resources Sidebar) => Exception in console, inspector² is broken
Attachments
[PATCH] Proposed Fix (3.89 KB, patch)
2013-12-19 14:53 PST, Joseph Pecoraro
eflews.bot: commit-queue-
[PATCH] Proposed Fix (4.81 KB, patch)
2013-12-19 17:01 PST, Joseph Pecoraro
no flags
Joseph Pecoraro
Comment 1 2013-12-19 14:19:28 PST
Seems like the issue crops up when the item I have selected in the Resources Navigation sidebar is a FolderTreeElement, like "Scripts".
Joseph Pecoraro
Comment 2 2013-12-19 14:23:08 PST
Yes. All new WebInspector.FolderTreeElement's are passed a representedObject of null or undefined. Eventually in TreeElement, that becomes just an empty object: this.representedObject = (representedObject || {}); Which is what I'm seeing here.
Joseph Pecoraro
Comment 3 2013-12-19 14:53:10 PST
Created attachment 219685 [details] [PATCH] Proposed Fix
EFL EWS Bot
Comment 4 2013-12-19 16:56:39 PST
Comment on attachment 219685 [details] [PATCH] Proposed Fix Attachment 219685 [details] did not pass efl-wk2-ews (efl-wk2): Output: http://webkit-queues.appspot.com/results/50568041
Joseph Pecoraro
Comment 5 2013-12-19 17:01:31 PST
Created attachment 219706 [details] [PATCH] Proposed Fix On IRC the feedback was we should still be resilient against a missing representedObject.saveIdentityToCookie. So I added the if check, and console.error warn if it didn't exist.
WebKit Commit Bot
Comment 6 2013-12-19 17:56:56 PST
Comment on attachment 219706 [details] [PATCH] Proposed Fix Clearing flags on attachment: 219706 Committed r160888: <http://trac.webkit.org/changeset/160888>
WebKit Commit Bot
Comment 7 2013-12-19 17:56:58 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.