Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is "Show page source" not available in (my) WebKit?

Tags:

webkit

I've downloaded v. 537.6+ of WebKit for Mac OS, and am running it on 10.8. (No programming here, just being a web developer looking for the WebKit web inspector.) Everything's fine, except the "Show page source" option in the Develop menu is grayed out when I'm on even the most, and I can't find any way to enable it. I"m very puzzled -- is there something else I need to do to get it enabled? Is there something else going on? Is this how it's supposed to be?

Developer Menu

enter image description here

The contextual menu:

enter image description here

like image 902
Jim Miller Avatar asked Aug 15 '12 15:08

Jim Miller


2 Answers

WebKit is not a full browser - only a rendering engine. Typically things like "view source", the back/forward buttons, address bar, preferences menus etc. are implemented at the browser level, outside of WebKit. However WebKit probably provides a minimum implementation of these for testing purposes, which presumably excludes 'view source' (which I can imagine isn't really essential for testing).

If you want to play with a full browser, you can't compile all of Safari, but you could try compiling Chromium instead which provides all that stuff. Note however Chromium is now using Blink instead of WebKit.

like image 97
AshleysBrain Avatar answered Nov 15 '22 17:11

AshleysBrain


You can enable WebInspector to view the source.

like image 1
h4ck3r Avatar answered Nov 15 '22 18:11

h4ck3r