On Oct 7, 12:22 pm, aslan <[email protected]> wrote:
> Sounds quite simple but when I try to do that it only works for xhr
> fired from my chrome extension and not from website i am browsing:
> for example i want to report xhr to console:
> ------------------------------
> var XMLHttpRequestWrapper = function(activeXObject){
>     console.log("xhr!!!!!!!!!!!");
>     new XMLHttpRequest();
>
> }
>
> var _XMLHttpRequest = XMLHttpRequest;
> window.XMLHttpRequest = function()
>     {
>         return new XMLHttpRequestWrapper();
>     };
> -------------------------------
> it only fires on my own xhrs not on those from website.
I guess this is not enough, take a look at the entire
XMLHttpRequestWrapper implementation:
http://code.google.com/p/fbug/source/browse/lite/branches/firebug1.5/content/lite/xhr.js#48

Or wait till Pedro (our Firebug Lite lord) is back (next week).
I guess, he knows more details.

Honza

-- 
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en.

Reply via email to