You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 15, 2017. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 15, 2017. It is now read-only.
CSS/img pulled from browser cache won't be reported in matrix #93
I started a fix for this, and now one of the side effect of the solution is that requests might be reported twice in the log, because one request might have been recorded through onBeforeRequest() and another through DOM analysis.
Alright, I am losing track of, and forgetting earlier findings and now I am back to square one.
webRequest.onResponseStarted/details.fromCache is no good, it works for objects pulled from the on-disk cache, not the in-memory cache. This bug here causes the following scenario to happen, which I should have documented first time I entered this bug:
Wait for HTTPSB's "garbage collector" to kick in -- around 10 minutes (all recorded requests for http://arstechnica.com/ are flushed since the page hasn't been used for a while)
Activity
gorhill commentedon Jan 17, 2014
I started a fix for this, and now one of the side effect of the solution is that requests might be reported twice in the log, because one request might have been recorded through
onBeforeRequest()and another through DOM analysis.Need to find a way to mitigate this.
gorhill commentedon Jan 18, 2014
I should give a try to
webRequest.onResponseStartedorwebRequest.onCompletedand check thedetails.fromCacheflag, looks promising.gorhill commentedon Jan 18, 2014
By the way, a good way to verify the bug is:
http://arstechnica.com/main_frameevent.To confirm any fix works, check that all items on the page are logged, not just those items outside the cache.
gorhill commentedon Jan 18, 2014
Alright, I am losing track of, and forgetting earlier findings and now I am back to square one.
webRequest.onResponseStarted/details.fromCacheis no good, it works for objects pulled from the on-disk cache, not the in-memory cache. This bug here causes the following scenario to happen, which I should have documented first time I entered this bug:This is the bug. Still no solution.
my-password-is-password commentedon Jan 19, 2014
What about using DOM Mutation Observers?
Found this https://code.google.com/p/mutation-summary/