Giter Club home page Giter Club logo

Comments (2)

Rayquaza01 avatar Rayquaza01 commented on July 21, 2024 1

The notifications are mainly there for debugging purposes (also in an attempt to see if I can reproduce #5.) Because clearing history is done silently in the background, it's hard to tell exactly when (or if) it's working. The notifications make it much more obvious when the extension triggers. The notifications are disabled by default and require an optional permission because they are very intrusive for normal use.

The notification triggers every time it attempts to clear history, regardless of if anything was cleared. The extension can't tell if it cleared anything or how much it cleared because history.deleteRange() does not provide this information. It simply requests that the browser delete history, but gives no feedback on what was deleted.

The date shouldn't be displayed in UTC unless your device has UTC as local time. In deleteHistory(), the time is set using the local methods (e.g. Date.setHours() instead of Date.setUTCHours()) and the date string in the notification is made with Date.toLocaleString(), so the date in the notification should display in your locale.

from historycleaner.

R-Adrian avatar R-Adrian commented on July 21, 2024

image

even though the timezone of my system is correctly set, Firefox Date.setHours() seems to report the timezone as UTC ... hmmmm...

i looked further into why is this happening ... and it seems to be caused by the browser preference privacy.resistFingerprinting being set to true. For testing, i set it to false and tried running that testing script again and this time it produced the expected result with timezone.

https://wiki.mozilla.org/Security/Fingerprinting
and here it says Timezone is spoofed to 'UTC'

Since timezone info can be used for fingerprinting a browser/user i can see now why it returns UTC as timezone when the resistFingerprinting preference is set, so i'll close this ticket - getting UTC time is expected behaviour in this mode.

from historycleaner.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.