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:
parent
88ef0e46b1
commit
b63d5b2731
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user