Mozilla/mozilla/suite/browser/viewsource.js
tbogard%aol.net d11a018f3f Brought the viewSource.xul back to life. It now uses the docShell viewMode to specify that the iframe is in viewSource mode.
git-svn-id: svn://10.0.0.236/trunk@210269 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-14 05:49:25 +00:00

11 lines
328 B
JavaScript

function onLoadViewSource()
{
var docShellElement = document.getElementById("content-frame");
var docShell = docShellElement.docShell;
docShell.viewMode = Components.interfaces.nsIDocShell.viewSource;
var webNav = docShell.QueryInterface(Components.interfaces.nsIWebNavigation);
webNav.loadURI(window.arguments[0]);
}