Is it possible to change Chrome's view-source behaviour to use the current request instead of starting a new one?

I like Firefox's behaviour of loading the source from the currently loaded webpage. Chrome, instead, starts a new request. This makes it especially hard to view source of POST-requests, for example, since every view-source request utilizes GET.

Is there a way to change the way Google Chrome's view-source works, so that it does not initialize a new request?

EDIT, little bit of clarification regarding the way Firefox works:

Firefox does not initiate a new request when viewing the source. It does only after refreshing the page while viewing the source. It then respects the GET/POST of the request as well. When viewing the source of a page that is already loaded, it does not seem to initiate a new request.


Is there a way to change the way Google Chrome's view-source works, so that it does not initialize a new request?

No, this is the way Chrome works by design.

When you "view source", you're really opening a new tab that opens the page again and displays the source rather than renders the page. Many web pages are dynamic and modify their HTML content (eg. using JavaScript/XMLHttpRequest) so we cannot display the current HTML - this is why a new request is made.

If you want to view the current state of a dynamic page, you should use the inspector. "File icon -> Developer -> JavaScript console"

I don't see how this is a security bug or a bug at all - the behavior is by design - closing as such.


I don't think you can change the behavior of view-source: URLs, or the View page source command, you can get to the source as received for this page: first, open the Developer tools (WebKit's "Web Inspector"), found at Wrench > Tools > Developer tools. Now click on Resources and (if necessary) scroll down the list on the left until you find the resource of interest. And there you go: the source as it was transmitted in the original HTTP response.