Sfoglia il codice sorgente

Add a commented test to Utils.isWebKit()

customisations
alemart 1 anno fa
parent
commit
047e7b26ea
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. 6
    1
      src/utils/utils.ts

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

@@ -141,10 +141,15 @@ export class Utils
141 141
     static isWebKit(): boolean
142 142
     {
143 143
         // note: navigator.vendor is deprecated.
144
-        // Alternatively, test GL_RENDERER == "Apple GPU" (valid since Feb 2020)
145 144
         if(/Apple/.test(navigator.vendor))
146 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 153
         // Desktop and Mobile Safari, Epiphany on Linux
149 154
         if(/AppleWebKit\/.* Version\//.test(navigator.userAgent))
150 155
             return true;

Loading…
Annulla
Salva