-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
BugFor errors / faults / flaws / inconsistencies etc.For errors / faults / flaws / inconsistencies etc.duplicateFor issues that already existed in our issue tracker and were reported previously.For issues that already existed in our issue tracker and were reported previously.
Milestone
Description
Problem
In Piwik.js The function beforeUnloadHandler() is entering a semi-infinite loop
Scenario
when the User changes the System Time to some time previous to the current (let's say an hour back in time).
Then the semi-infinite loop starts on the call to beforeUnloadHandler function:
This is due to the part of the code:
do {
now = new Date();
} while (now.getTimeAlias() < expireDateTime);
since the now is not near the expireDateTime, it would take lot's of loops to get to the expireDateTime, mean while the browser is stack.
Metadata
Metadata
Assignees
Labels
BugFor errors / faults / flaws / inconsistencies etc.For errors / faults / flaws / inconsistencies etc.duplicateFor issues that already existed in our issue tracker and were reported previously.For issues that already existed in our issue tracker and were reported previously.