[Project_owners] HTTP Auth's opening URL

Eric Jung grimholtz at yahoo.com
Wed Sep 28 13:33:36 EDT 2005


OK, in FF I did the following:

onOpenWindow: function(aXULWindow) {
  var docShell = aXULWindow.docShell;
  var requestor = docShell
  var chromeWindow = requestor
  var url = chromeWindow.document.location;
  dump("url=" + url + "\n");

chrome.document is an HTMLDocument instance, so I thought just output
chromeWindow.document.location or

chromeWindow.document.location is "about:blank" no matter how I open
the URL which requires HTTP Auth (from bookmark, from ALT-Enter, from
blank tab, etc.)

--- Michael Vincent <mv_van_rantwijk at yahoo.com> wrote:

> Eric Jung wrote:
> > Thanks, I'll try that and see what happens. But I was thinking:
> in FF
> > if you navigate to, say, google.com and in the address bar type a
> > site which requires HTTP Auth (e.g, passwordmaker.org:2082) and
> press
> > ALT-Enter, the HTTP Auth dialog appears before a new tab even
> opens.
> Not in my build, only when I use Ctrl instead of Alt, or something
> is 
> broken in your copy, or some other extension is causing it.
> > In fact, I checked the URI of the window.opener property of the
> > dialog in this case, and it is http://www.google.com, not
> > http://passwordmaker.org:2082
> That should only happen without Alt+Enter.
> Michael
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners

Yahoo! Mail - PC Magazine Editors' Choice 2005 

More information about the Project_owners mailing list