View-source URI scheme

The view-source URI scheme is used by some browsers to construct URLs that refer to a source display for a given resource.[1]

For example, this URI would show the source of the page located at http://www.example.com view-source:http://www.example.com

On 25 May 2011 the 'view-source' URI scheme was officially registered with IANA [2] per RFC 4395.

Browser support

Mozilla Firefox and Internet Explorer both supported the scheme, but support was dropped from Internet Explorer in Windows XP SP2 due to security problems.[3] Firefox also suffered a similar security issue (by combining view-source and javascript URIs[4]), but still supported it in Firefox 1.5[5] after being fixed. In 2009 a new discovered bug was fixed in Firefox 3.0.9.[6]

Browser Supported?
Mozilla Firefox supported[7]
Mozilla SeaMonkey supported
Netscape supported
Internet Explorer 4, 5 and 6 supported
Internet Explorer 6, 7, and 8 not supported after Windows XP SP2
Safari 3.2.1 supported
Safari 5, 6 not supported
Opera 7, 8, 9, 10, 11 not supported
Opera 15 and up supported
Google Chrome supported[8]
Web supported
HP webOS supported in-browser via a homebrew app called Internalz Pro[9]

References

  1. IETF Draft
  2. Yevstifeyev, M. "'view-source' URI scheme registration template". Retrieved 17 July 2011.
  3. "view-source Protocol". MSDN. Retrieved 2009-02-25.
  4. mikx (2005-05-21). "Mozilla Firefox view-source:javascript url Code Execution Exploit". milw0rm. Archived from the original on 2007-08-14. Retrieved 2009-02-25.
  5. jonathan (2005-11-30). "View Source Bug Fixed and a Tip". blogzilla. Retrieved 2009-02-25.
  6. Fleischer, Gregory (April 21, 2009). "MFSA 2009-17: Same-origin violations when Adobe Flash loaded via view-source scheme". Mozilla. Retrieved 2009-04-22.
  7. "View Source - Firefox Developer Tools | MDN".
  8. "Lifehacker - Google Chrome's Full List of Special about: Pages".
  9. Robitaille, Jason (2010-08-28). "Internalz 1.3 brings style with a dark theme and more". PreCentral. Retrieved 2011-02-11.
This article is issued from Wikipedia - version of the 9/28/2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.