Browse Source

Add a commented test to Utils.isWebKit()

customisations
alemart 1 year ago
parent
commit
047e7b26ea
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      src/utils/utils.ts

+ 6
- 1
src/utils/utils.ts View File

141
     static isWebKit(): boolean
141
     static isWebKit(): boolean
142
     {
142
     {
143
         // note: navigator.vendor is deprecated.
143
         // note: navigator.vendor is deprecated.
144
-        // Alternatively, test GL_RENDERER == "Apple GPU" (valid since Feb 2020)
145
         if(/Apple/.test(navigator.vendor))
144
         if(/Apple/.test(navigator.vendor))
146
             return true;
145
             return true;
147
 
146
 
147
+        // Can a non WebKit-based browser pass this test?
148
+        // Test masked GL_RENDERER == "Apple GPU" (valid since Feb 2020)
149
+        // https://bugs.webkit.org/show_bug.cgi?id=207608
150
+        /*if(Speedy.Platform.renderer == 'Apple GPU' && Speedy.Platform.vendor == 'Apple Inc.')
151
+            return true;*/
152
+
148
         // Desktop and Mobile Safari, Epiphany on Linux
153
         // Desktop and Mobile Safari, Epiphany on Linux
149
         if(/AppleWebKit\/.* Version\//.test(navigator.userAgent))
154
         if(/AppleWebKit\/.* Version\//.test(navigator.userAgent))
150
             return true;
155
             return true;

Loading…
Cancel
Save