WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
80585
Web Inspector: Unable to inspect the inspector in Safari
https://bugs.webkit.org/show_bug.cgi?id=80585
Summary
Web Inspector: Unable to inspect the inspector in Safari
Nikita Vasilyev
Reported
2012-03-08 02:54:56 PST
There was a context menu with a "Inspect Element" item
http://trac.webkit.org/attachment/wiki/HackingWebInspector/inspect.png
There is no context menu any more. Alt+Cmd+I works in Chromium, but not in Safari.
Attachments
Add attachment
proposed patch, testcase, etc.
Timothy Hatcher
Comment 1
2012-03-08 07:44:45 PST
We only show the context menu item in Debug and Release builds — not shipping Safari versions. It confuses users when it is there. And soon Command-Option-I will toggle the Inspector in Safari, so that isn't suitable.
Timothy Hatcher
Comment 2
2012-03-08 07:45:21 PST
Basically only developers need to do this, and showing it in Debug and Release builds is the right answer.
Nikita Vasilyev
Comment 3
2012-03-08 11:57:44 PST
Although I agree the context menu item shouldn’t be in shipping Safari version, I don’t see it in neither WebKit nightly nor ToT build that I run via Tools/Scripts/run-safari.
Timothy Hatcher
Comment 4
2012-03-08 12:11:34 PST
Ah, I was wrong. It is only allowed in Debug builds. Here is the code:
http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/WebInspectorProxy.cpp#L53
To enable it locally, do this in Terminal and relaunch Safari: defaults write com.apple.Safari "__WebInspectorPageGroup__.WebKit2DeveloperExtrasEnabled" -bool true
Nikita Vasilyev
Comment 5
2012-03-08 12:34:36 PST
It works, thanks! I didn’t know there is such a difference between debug and release builds.
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