-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firefox 52 ESR click handlers do not work #9446
Firefox 52 ESR click handlers do not work #9446
Comments
I have encountered the same problem in my nw.js application (chromium 72). In my case the problem occurs only when a particular vue instance is injected to a document element of a different window of the application. Otherwise it works just fine. This problem persists in these versions : 2.6.0, 2.6.1, 2.6.2. |
@DimPaDev they have the same root cause from what I know. Events in different pages in a multi-page nw.js app would have different timestamp starting points since they are relative to page load. But I would file that as a separate issue. |
For the cause of this issue - FF 52 ESR is providing very weird |
Hey! I'm facing a similiar issue with timestamp in a CEF build for Windows - I have found this ticket on CEF that reports the same issue https://bitbucket.org/chromiumembedded/cef/issues/2749/osr-results-in-weird-eventtimestamp-values Any idea on a possible workaround ? I have something like this:
clicking in Something does not fire the click handler. Looking at
fails in all the conditions. Given the issue with the timestamp, I'm wondering if we can add an extra condition to validate if the |
Version
2.6.2
Reproduction link
https://jsfiddle.net/pzumygcq//
Steps to reproduce
currentFlushTimestamp
is 0).count
variable every time it is clicked, except Firefox52 ESRWhat is expected?
count
variable will incrementWhat is actually happening?
Click handler is not firing. I've done some digging into the vue.js code and it seems due to this part of the code being incorrect, or at least the timestamp Firefox has for the event is incorrect:
handler = original._wrapper = function (e) { if (e.timeStamp >= attachedTimestamp) { return original.apply(this, arguments) } };
On this version of Firefox, e.timeStamp is less than attachedTimestamp
Our application is built on vue.js but we have a lot of users who use Firefox 52 ESR for it's compatibility with Silverlight and upgrading is not an option right now.
Some further things I found when digging:
document.createEvent('Event').timeStamp
returns1549471218936000
which means that vue will think that the event time is based on Date.now() rather than performance.now().The text was updated successfully, but these errors were encountered: