Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • T Tor Browser
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,317
    • Issues 1,317
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • The Tor Project
  • Applications
  • Tor Browser
  • Issues
  • #30802
Closed
Open
Created Jun 07, 2019 by Alex Catarineu@acat

DOMParser errors leak locale

While writing a test for legacy/trac#30304 (moved) I found (yet) another way to get browser locale:

const doc = (new DOMParser).parseFromString('getyourlocale', 'application/xhtml+xml');
alert(doc.getElementsByTagName('parsererror')[0].firstChild.textContent);

test: https://acatarineu.github.io/fp/locale_domparser_error.html

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking