Bug 80598 - View source window doesnt' focus the content area when brought up. Patch by bzbarsky@mit.edu (Boris Zbarsky). r=blakeross@telocity.com sr=alecf@netscape.com a=asa@mozilla.org (on behalf of drivers)

git-svn-id: svn://10.0.0.236/trunk@96875 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
stephend%netscape.com 2001-06-11 19:17:56 +00:00
parent 88ef0e46b1
commit b63d5b2731

View File

@ -46,6 +46,7 @@ function viewSource(url)
var loadFlags = Components.interfaces.nsIWebNavigation.LOAD_FLAGS_NONE;
var viewSrcUrl = "view-source:" + url;
getBrowser().webNavigation.loadURI(viewSrcUrl, loadFlags);
window._content.focus();
return true;
}