surrogate problem due to possible bfcache bug
Posted: Sun Oct 30, 2011 11:54 am
NS 2.1.8, Fx 8.0b5, new profile
test surrogate:
test surrogate:
Code: Select all
user_pref("noscript.surrogate.google_preview.sources", "@^https?://www\.google\.com/search\?(?!(?:.*&)?tbm=[^&]+)");
user_pref("noscript.surrogate.google_preview.replacement", "console.log('@ surrogate: ' + document.URL); addEventListener('DOMContentLoaded', function(e) {console.log(e.type + ' : ' + e.target.location);}, true); addEventListener('load', function(e) {console.log(e.type + ' : ' + e.target.location); document.body.insertBefore(document.createElement('IMG'), document.body.firstChild).src = 'http://www.google.com/images/nav_logo91.png';}, false); addEventListener('pageshow', function(e) console.log(e.type + (e.persisted ? ' : cached : ' : ' : uncached : ') + e.target.location), false);");
- open web console, turn off net and css logging
- load http://www.google.com/search?q=whatever
- click on maps
- go back, the first time only "pageshow : cached" is logged, everything is fine
Code: Select all
pageshow : cached : http://www.google.com/search?q=whatever
- go forward
- back again (quickly, as soon as the maps page appears loaded, before the secondary load restarts the spinner)
when the maps page loads, the progress spinner stops, then briefly restarts again as the map iframe (or whatever) seems to refresh. If you let the maps page do it's full load/paint the problem does not manifest.- now the following is logged:
Code: Select all
load : http://www.google.com/search?q=whatever pageshow : uncached : http://www.google.com/search?q=whatever
- another "load" inserted image is added
- now the following is logged: