[Project_owners] Observer Q?

Adam Judson adamsplugins at gmail.com
Wed Jun 13 11:08:52 PDT 2007


At the point when on-modify-request fires the URI is immutable.

You won't be able to change the address (or GET parameters) using this
technique.

The tamperdata source may be a useful example of using the observer
service though.

Adam

http://www.mozdev.org/source/browse/tamperdata/src/chrome/content/tamperdata.js?rev=1.14&content-type=text/x-cvsweb-markup



On 13/06/07, Amin Eft... <amin.eft at gmail.com> wrote:
> hi
>
> i add a observer in my extension:
>
> var observerService =
> Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService
> );
>
> observerService.addObserver(MyObserver, "http-on-modify-request", false);
> .....
> observe: function(aSubject, aTopic, aData)
>
>
> any body can help me find aSubject properties like:.cancle .URI  .loadFlags
> ,....
>
>
> i want to change url of specific site.
>
> if(aSubject.URI.spec='www.mysite.com') change url
>
>
>
>
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners
>
>


More information about the Project_owners mailing list