Closed Bug 1577179 Opened 5 years ago Closed 5 years ago

Add UA overide for supportforms.embarcadero.com

Categories

(Web Compatibility :: Interventions, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ksenia, Assigned: ksenia)

References

()

Details

Add an override for both mobile and desktop containing AppleWebKit for the following condition:

var lb = navigator.userAgent
          , K = b.Browser = {
            InternetExplorer: {},
            Firefox: {},
            Safari: {},
            Opera: {},
            agent: a,
            hasDebuggerStatement: d,
            name: navigator.appName,
            version: parseFloat(navigator.appVersion),
            documentMode: 0
        };
        if (lb.indexOf(" MSIE ") > y) {
            K.agent = K.InternetExplorer;
            K.version = parseFloat(lb.match(/MSIE (\d+\.\d+)/)[1]);
            if (K.version > 7 && document.documentMode > 6)
                K.documentMode = document.documentMode;
            K.hasDebuggerStatement = c
        } else if (lb.indexOf(" Firefox/") > y) {
            K.agent = K.Firefox;
            K.version = parseFloat(lb.match(/ Firefox\/(\d+\.\d+)/)[1]);
            K.name = S;
            K.hasDebuggerStatement = c
        } else if (lb.indexOf(" AppleWebKit/") > y) {
            K.agent = K.Safari;
            K.version = parseFloat(lb.match(/ AppleWebKit\/(\d+(\.\d+)?)/)[1]);
            K.name = "Safari"
        } else if (lb.indexOf("Opera/") > y)
            K.agent = K.Opera;
Assignee: nobody → kberezina
Status: NEW → ASSIGNED

Merged to master on github

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
See Also: → 1630239
You need to log in before you can comment on or make changes to this bug.