[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/tor-browser][tor-browser-115.9.0esr-13.5-1] Bug 42472: Spoof timezone in XSLT.



Title: GitLab

Pier Angelo Vendrame pushed to branch tor-browser-115.9.0esr-13.5-1 at The Tor Project / Applications / Tor Browser

Commits:

  • 570b6c56
    by Pier Angelo Vendrame at 2024-03-26T18:04:32+01:00
    Bug 42472: Spoof timezone in XSLT.
    

1 changed file:

Changes:

  • dom/xslt/xslt/txEXSLTFunctions.cpp
    ... ... @@ -591,7 +591,14 @@ nsresult txEXSLTFunctionCall::evaluate(txIEvalContext* aContext,
    591 591
           // http://exslt.org/date/functions/date-time/
    
    592 592
     
    
    593 593
           PRExplodedTime prtime;
    
    594
    -      PR_ExplodeTime(PR_Now(), PR_LocalTimeParameters, &prtime);
    
    594
    +      PR_ExplodeTime(
    
    595
    +          PR_Now(),
    
    596
    +          // We are not allowed to access the Document when evaluating this, so
    
    597
    +          // fall back to the general function.
    
    598
    +          nsContentUtils::ShouldResistFingerprinting(RFPTarget::Unknown)
    
    599
    +              ? PR_GMTParameters
    
    600
    +              : PR_LocalTimeParameters,
    
    601
    +          &prtime);
    
    595 602
     
    
    596 603
           int32_t offset =
    
    597 604
               (prtime.tm_params.tp_gmt_offset + prtime.tm_params.tp_dst_offset) /
    

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits