opentip icon indicating copy to clipboard operation
opentip copied to clipboard

In Safari and Firefox, tooltip on a link fails to hide after after clicking link, then back button in

Open kcrwfrd opened this issue 12 years ago • 3 comments

See https://dl.dropboxusercontent.com/u/27984093/tooltip.html

To reproduce:

  1. Hover over link, showing tooltip. Click the link.
  2. After landing on Google, press the browser's back button with a mouse. Keyboard shortcuts also work, but are slightly less consistent
  3. The tooltip now refuses to hide

kcrwfrd avatar Aug 02 '13 18:08 kcrwfrd

Wow... that is weird... Apparently Safari and Firefox try to keep some kind of JS (and or HTML?) state. I'll try to figure out how to fix that... Seems like a very strange feature to me.

enyo avatar Aug 06 '13 13:08 enyo

Thanks for the test page and the detailed bug report.

enyo avatar Aug 06 '13 13:08 enyo

Yep, I noticed browsers starting to do that some time ago. A bit of googling turned up some interesting tidbits, this "frozen state" of the DOM and JS execution is called the "BFCache" (Back-forward cache):

http://stackoverflow.com/a/1195934/193494 https://developer.mozilla.org/en-US/docs/Working_with_BFCache

kcrwfrd avatar Aug 07 '13 01:08 kcrwfrd