weixin_39605326 2020-11-30 15:19
浏览 0

Adding unload handler in tabWatcher causes reload for pages with iframes.

Originally reported on Google Code with ID 2379


Demo: http://kylescholz.com/projects/firebug/test-unload.html

What steps will reproduce the problem?
1. With Firebug enabled, visit the demo link above.
2. Click "Make Unfresh". (Note change to DOM)
3. Click "Navigate Away".
4. Click browser Back button

What is the expected result? What do you see instead?

Expected Result: Firefox should display the page from bfcache without 
reloading.

Actual Result: Page is reloaded because an unload handler was added to the 
iframe here:

http://code.google.com/p/fbug/source/browse/branches/firebug1.4/content/fir
ebug/tabWatcher.js#354

You can verify the expected result by completely disabling and turning off 
Firebug.

Documentation stating that Firefox does not store pages with an unload 
handler in the bfcache:

https://developer.mozilla.org/en/Using_Firefox_1.5_caching

Which version of Firebug? 1.4.3b1 (offending code is present in 1.5 as 
well)
Which version of Firefox? All
On what operating system? All

Reported by kyle.scholz on 2009-10-13 21:54:44

该提问来源于开源项目:firebug/firebug

  • 写回答

8条回答 默认 最新

  • weixin_39605326 2020-11-30 15:19
    关注
    
    Well we have to have a unload handler so I'm no sure what we can do here.
    
    Boris is this sort of the reverse of 
    342715  Need an API to allow extensions to hook "document load started" events 
    
    If anything ever happens on that bug we need to examine what firebug does with unload
    other than free memory associated with the page.
    

    Reported by johnjbarton.com on 2009-10-14 04:17:18 - Status changed: Triaged - Labels added: Type-Defect, ui, Test-case-available, 1.5, bugzilla

    评论

报告相同问题?