mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-24 17:37:30 +09:00
Issue #1517 - Remove dom.event.highrestimestamp.enabled pref
This resolves #1517
This commit is contained in:
parent
0c44ae0a30
commit
d62f0a0dd2
6 changed files with 14 additions and 59 deletions
|
|
@ -45,9 +45,6 @@ extern bool IsCurrentThreadRunningChromeWorker();
|
|||
|
||||
static char *sPopupAllowedEvents;
|
||||
|
||||
static bool sReturnHighResTimeStamp = false;
|
||||
static bool sReturnHighResTimeStampIsSet = false;
|
||||
|
||||
Event::Event(EventTarget* aOwner,
|
||||
nsPresContext* aPresContext,
|
||||
WidgetEvent* aEvent)
|
||||
|
|
@ -68,13 +65,6 @@ Event::ConstructorInit(EventTarget* aOwner,
|
|||
SetOwner(aOwner);
|
||||
mIsMainThreadEvent = NS_IsMainThread();
|
||||
|
||||
if (mIsMainThreadEvent && !sReturnHighResTimeStampIsSet) {
|
||||
Preferences::AddBoolVarCache(&sReturnHighResTimeStamp,
|
||||
"dom.event.highrestimestamp.enabled",
|
||||
sReturnHighResTimeStamp);
|
||||
sReturnHighResTimeStampIsSet = true;
|
||||
}
|
||||
|
||||
mPrivateDataDuplicated = false;
|
||||
mWantsPopupControlCheck = false;
|
||||
|
||||
|
|
@ -1093,10 +1083,6 @@ Event::TimeStamp() const
|
|||
double
|
||||
Event::TimeStampImpl() const
|
||||
{
|
||||
if (!sReturnHighResTimeStamp) {
|
||||
return static_cast<double>(mEvent->mTime);
|
||||
}
|
||||
|
||||
if (mEvent->mTimeStamp.IsNull()) {
|
||||
return 0.0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,12 +35,6 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=77992
|
|||
SimpleTest.waitForExplicitFinish();
|
||||
SimpleTest.requestFlakyTimeout("untriaged");
|
||||
|
||||
// We don't use SpecialPowers.pushPrefEnv since it can delay the test
|
||||
// function until after the load event has fired which means we can't
|
||||
// test the timestamp of the load event.
|
||||
const kPrefName = "dom.event.highrestimestamp.enabled";
|
||||
var prevPrefValue = SpecialPowers.getBoolPref(kPrefName);
|
||||
SpecialPowers.setBoolPref(kPrefName, true);
|
||||
testRegularEvents();
|
||||
|
||||
// Event.timeStamp should be relative to the time origin which is:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue