[Project_owners] Hooking HTTP Basic Authentication dialog

Philip Chee philip.chee at gmail.com
Sat Sep 17 15:22:23 EDT 2005

On Fri, 16 Sep 2005 22:19:37 -0700 (PDT), Eric Jung wrote:

> observe : function(domWindow, topic, data) {
>   if (topic == "domwindowopened") {
>     domWindow = 
>       domWindow.QueryInterface(Components.interfaces.nsIDOMWindow);
>       var user = domWindow.document.getElementById("loginTextbox");
>       var pw = domWindow.document.getElementById("password1Textbox");
>       dump(user + "\n");
>       dump(pw + "\n");
>     }
>   },

Shouldn't that be dump(user.value) and dump(pw.value)?

> This dumps null and null to the console.... :(
> FWIW, I can't find commonDialog.xul/commonDialog.js in FF (but maybe
> I missed it?), just Mozilla.

Doing a local search on my hard drive pulls up:


Don't you have a desktop search tool?

lxr: aviary101branch:
lxr: whole CVS:

Doesn't lxr work for you?

Philip Chee <philip at aleytys.pc.my>, <philip.chee at gmail.com>
Guard us from the she-wolf and the wolf, and guard us from the thief,
oh Night, and so be good for us to pass.
[ ]Bad Command or Filename.  Or maybe you screwed up.
* TagZilla 0.059

More information about the Project_owners mailing list