WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
205148
Web Inspector: REGRESSION(
r251227
): Uncaught Exception: undefined is not an object (evaluating 'target.DOMAgent.setInspectModeEnabled')
https://bugs.webkit.org/show_bug.cgi?id=205148
Summary
Web Inspector: REGRESSION(r251227): Uncaught Exception: undefined is not an o...
Devin Rousso
Reported
2019-12-11 17:58:23 PST
Uncaught Exception in Web Inspector. Steps to Reproduce: 1. inspect any page 2. Develop > Start Element Selection (⇧⌘C) => element selection doesn't turn on 3. open Web Inspector through some other method => uncaught exception shown 4. Develop > Start Element Selection (⇧⌘C) => element selection turns on as expected I think this is a regression from
r251227
because the connection to the actual `WebCore::Page` target hasn't been established yet, meaning that the `WI.mainTarget` is actually the `WI.MultiplexingBackendTarget`. Uncaught Exceptions: ----------------------- - undefined is not an object (evaluating 'target.DOMAgent.setInspectModeEnabled') (at DOMManager.js:589:24) inspectModeEnabled @ DOMManager.js:589:24 setElementSelectionEnabled @ InspectorFrontendAPI.js:74:22 dispatch @ InspectorFrontendAPI.js:174:54 loadCompleted @ InspectorFrontendAPI.js:182:42 ? @ Main.js:533:43 promiseReactionJob @ [native code] ----------------------- Notes: Inspected URL: (unknown) Loading completed: true Frontend User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko)
Attachments
Patch
(4.42 KB, patch)
2019-12-11 18:04 PST
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Devin Rousso
Comment 1
2019-12-11 18:04:42 PST
Created
attachment 385469
[details]
Patch
Joseph Pecoraro
Comment 2
2019-12-11 18:08:25 PST
Comment on
attachment 385469
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=385469&action=review
r=me
> Source/WebInspectorUI/ChangeLog:22 > + * UserInterface/Base/Main.js: > + Drive-by: remove duplicate function `WI._toggleInspectMode` as it already exists.
!! How did a linter not catch this?
Devin Rousso
Comment 3
2019-12-11 23:40:47 PST
Comment on
attachment 385469
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=385469&action=review
>> Source/WebInspectorUI/ChangeLog:22 >> + Drive-by: remove duplicate function `WI._toggleInspectMode` as it already exists. > > !! How did a linter not catch this?
As we discussed in person, it’s not a function on a class or a variable in a scope, so it’s not as easily statically analyzable :(
WebKit Commit Bot
Comment 4
2019-12-12 00:24:31 PST
Comment on
attachment 385469
[details]
Patch Clearing flags on attachment: 385469 Committed
r253421
: <
https://trac.webkit.org/changeset/253421
>
WebKit Commit Bot
Comment 5
2019-12-12 00:24:33 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 6
2019-12-12 00:25:21 PST
<
rdar://problem/57869541
>
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