WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
150913
Web Inspector: Uncaught Exception opening inspector - TypeError: Attempted to assign to readonly property.
https://bugs.webkit.org/show_bug.cgi?id=150913
Summary
Web Inspector: Uncaught Exception opening inspector - TypeError: Attempted to...
Joseph Pecoraro
Reported
2015-11-04 17:04:36 PST
* SUMMARY Uncaught Exception opening inspector - TypeError: Attempted to assign to readonly property. * EXCEPTION TypeError: Attempted to assign to readonly property. replaceContentView — ContentViewContainer.js:229 _resourceTypeDidChange — ResourceClusterContentView.js:248 dispatch — Object.js:155 dispatchEventToListeners — Object.js:162 associateWithScript — Resource.js:653 Script — Script.js:42 scriptDidParse — DebuggerManager.js:531 scriptParsed — DebuggerObserver.js:37 dispatchEvent — InspectorBackend.js:382 _dispatchEvent — InspectorBackend.js:281 dispatch — InspectorBackend.js:89 dispatchNextQueuedMessageFromBackend — MessageDispatcher.js:42 * NOTES BackForwardEntry.js has a "get contentView()" but no "set contentView(x)" so this looks legit. // Replace all occurrences of oldContentView with newContentView in the back/forward list. for (var i = 0; i < this._backForwardList.length; ++i) { if (this._backForwardList[i].contentView === oldContentView) this._backForwardList[i].contentView = newContentView; // <-- attempting to set content view. }
Attachments
[Patch] Proposed Fix
(2.11 KB, patch)
2015-11-04 19:18 PST
,
Matt Baker
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2015-11-04 17:05:27 PST
<
rdar://problem/23404728
>
Matt Baker
Comment 2
2015-11-04 18:12:08 PST
A BackForwardEntry associates a ContentView with a cookie, so having a contentView setter seems like the wrong thing to do. What we probably want is: // Replace all occurrences of oldContentView with newContentView in the back/forward list. for (var i = 0; i < this._backForwardList.length; ++i) { if (this._backForwardList[i].contentView === oldContentView) this._backForwardList[i] = new WebInspector.BackForwardEntry(newContentView, newCookie); }
Timothy Hatcher
Comment 3
2015-11-04 19:09:11 PST
Looks right to me. Good catch.
Matt Baker
Comment 4
2015-11-04 19:18:22 PST
Created
attachment 264836
[details]
[Patch] Proposed Fix
WebKit Commit Bot
Comment 5
2015-11-04 20:08:46 PST
Comment on
attachment 264836
[details]
[Patch] Proposed Fix Clearing flags on attachment: 264836 Committed
r192049
: <
http://trac.webkit.org/changeset/192049
>
WebKit Commit Bot
Comment 6
2015-11-04 20:08:50 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.
Top of Page
Format For Printing
XML
Clone This Bug