Make Webkit fingerprinting more explicit.
Copied common code from /isS\d\>/ functions into isWebKitBased
modified: core/main/client/browser.js
This commit is contained in:
@@ -648,11 +648,15 @@ beef.browser = {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true if Webkit based
|
* Returns true if Webkit based
|
||||||
|
*
|
||||||
|
* **** DUPLICATE WARNING **** Changes here may aldo need addressed in /isS\d+/ functions.
|
||||||
*/
|
*/
|
||||||
isWebKitBased: function () {
|
isWebKitBased: function () {
|
||||||
// Currently, [2018-01-08], safari checks isS* provide evidence of webkit
|
return (!window.opera && !window.chrome
|
||||||
// to avoid duplicating code and hence bugs, use the existing checks for Safari.
|
&& window.navigator.userAgent.match(/ Version\/\d/) != null
|
||||||
return this.isS4() || this.isS5() || this.isS6() || this.isS7() || this.isS8();
|
&& !window.globalStorage
|
||||||
|
&& !!window.getComputedStyle
|
||||||
|
&& !("MozWebSocket" in window));
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user