Skip to content

Commit

Permalink
Issue #389 and Issue #310 [integrity] Exclude navigator.userAgentData…
Browse files Browse the repository at this point in the history
… from browser hash generation to avoid unexpected randomness
  • Loading branch information
t2ym committed Sep 4, 2020
1 parent 55aa3d5 commit 64398b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/integrity-js/integrity.js
Original file line number Diff line number Diff line change
Expand Up @@ -1512,6 +1512,7 @@
const volatileObjectsRegExp = new RegExp(
'^(\.navigator:object\.languages:object|' + // language preferences
'\.navigator:object\.serviceWorker:object\.controller:object|' + // Service Worker status
'\.navigator:object\.userAgentData:object|' + // User-Agent Client Hints data
'\.performance:object\.navigation:object|' + // navigation history
'\.screen:object\.orientation:object|' + // screen device
'\.location:object|' + // location object
Expand Down

0 comments on commit 64398b2

Please sign in to comment.