Skip to content
Snippets Groups Projects
Commit 38b9e3bb authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame :jack_o_lantern:
Browse files

keepforreview! Bug 42472: Spoof timezone in XSLT.

ShouldResistFingerprinting-related changes.
parent 36310747
Branches
Tags
1 merge request!1043Bug 42616: Rebased alpha onto Firefox 128.0b1
......@@ -590,11 +590,11 @@ nsresult txEXSLTFunctionCall::evaluate(txIEvalContext* aContext,
// http://exslt.org/date/functions/date-time/
PRExplodedTime prtime;
PR_ExplodeTime(
PR_Now(),
// We are not allowed to access the Document when evaluating this, so
// fall back to the general function.
nsContentUtils::ShouldResistFingerprinting(RFPTarget::Unknown)
PR_ExplodeTime(PR_Now(),
nsContentUtils::ShouldResistFingerprinting(
"We are not allowed to access the document at this "
"stage (we are given a txEarlyEvalContext context).",
RFPTarget::JSDateTimeUTC)
? PR_GMTParameters
: PR_LocalTimeParameters,
&prtime);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment