Page 1 of 1

[RESOLVED] ABE breaks the Fx queries observer

Posted: Wed Mar 10, 2010 3:08 pm
by calj
Hi,

I am a FF addon developer and I have an issue due to ABE.

I use the "nsIObserverService" to get the events "http-on-examine-response" in order to get the list of all http queries made by Flash applications.

The fact is when I active the ABE option, on some websites I don't see the requests done by Flash anymore (ABE do not block requests because the Flash still works well),

here is an example of page where my application does not work anymore without ABE :
http://www.wat.tv/video/chloe-atom-egoy ... 5jm3_.html

In the console I have only this message (7 times) :
"Security Error: Content at http://googleads.g.doubleclick.net/ may not load data from http://www.wat.tv/video/chloe-atom-egoy ... 5jm3_.html.

Something strange is I don't have this issue on every sites, for example on youtube it's still works well:
http://www.youtube.com/watch?v=MXhhXXsx ... e=featured

Maybe it's a feature of ABE that I don't understand ?

Re: ABE brokes the FF queries observer

Posted: Wed Mar 10, 2010 9:37 pm
by Giorgio Maone
Are you checking also for http-on-examine-merged-response and http-on-examine-cached-response?

Re: ABE brokes the FF queries observer

Posted: Thu Mar 11, 2010 9:25 am
by calj
Actually I made a mistake in the observer when I tried to get the document from which the request was done.
I checked the type of requests before trying to get the document, and as ABE changed the type of the request my type checking didn't work anymore.
I fixed that and now it's working well.

Thank you for your quick answer !

Re: ABE brokes the FF queries observer

Posted: Thu Mar 11, 2010 9:53 am
by Giorgio Maone
calj wrote:I checked the type of requests before trying to get the document, and as ABE changed the type of the request
Ah yes, if the request is for a resource whose DNS translation is not cached yet, ABE is forced to turn it into an internal redirection in order to wait for DNS resolution, hence the confusion.

Glad you solved your mystery :)