| Index: safari/ext/popup.js |
| =================================================================== |
| --- a/safari/ext/popup.js |
| +++ b/safari/ext/popup.js |
| @@ -13,3 +13,11 @@ |
| document.documentElement.style.display = "none"; |
| document.location.reload(); |
| }, true); |
| + |
| +// Safari doesn't hide popovers automatically, when we change the active tab |
| +// programmatically, like when the options link is clicked. So we add an event |
| +// listener to do so. |
| +safari.application.addEventListener("activate", function() |
| + safari.self.hide(); |
| +}, true); |
| + |