Dnia piątek, 7 października 2011 o 12:22:18 aslan napisał(a):
> 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:
> ------------------------------
I am sorry, your code does not make any sense.
> var XMLHttpRequestWrapper = function(activeXObject){
And the purpose of the parameter is?
> console.log("xhr!!!!!!!!!!!");
> new XMLHttpRequest();
You create a new request and immediately drop it
> }
>
> var _XMLHttpRequest = XMLHttpRequest;
> window.XMLHttpRequest = function()
> {
> return new XMLHttpRequestWrapper();
The value returned from the constructor is dropped, so this line is void too.
> };
> -------------------------------
> it only fires on my own xhrs not on those from website.
>
> Maybe You know why?
> Great thanks for help. I really appreciate.
>
>
--
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.