[RESOLVED] ABE breaks the Fx queries observer

Bug reports and enhancement requests
Post Reply
calj
Posts: 2
Joined: Wed Mar 10, 2010 2:35 pm

[RESOLVED] ABE breaks the Fx queries observer

Post 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 ?
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2) Gecko/20100207 Ant.com Toolbar 2.0 Namoroka/3.6 XPCOMViewer/0.9.2
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: ABE brokes the FF queries observer

Post by Giorgio Maone »

Are you checking also for http-on-examine-merged-response and http-on-examine-cached-response?
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6
calj
Posts: 2
Joined: Wed Mar 10, 2010 2:35 pm

Re: ABE brokes the FF queries observer

Post 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 !
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2) Gecko/20100207 Ant.com Toolbar 2.0 Namoroka/3.6 XPCOMViewer/0.9.2
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: ABE brokes the FF queries observer

Post 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 :)
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6
Post Reply