cancel
Showing results for 
Search instead for 
Did you mean: 

The ui5 device.js calculates wrong browser for Motorola Edge phones.

amidev2023
Newcomer
0 Kudos

So the device.js gives us valuable Information regarding the Device on which the App is running,

but it makes a mistake at calculation the right browser for Motorola Edge phones.

Since the userAgent data of the phon looks like:

"Mozilla/5.0 (Linux; Android 13; motorola edge 40 Build/T2TL33.3-62-3; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/122.0.6261.119 Mobile Safari/537.36"

It calculates (regex) the browser unfortunatly as EDGE instead of Chrome,

which in turn is bad as in the openWindow.js it does not the right thing in the openWindow function:):

    // ensure that, in IE11 or Edge, opener cannot be accessed by early code
    if (Device.browser.msie || Device.browser.edge) {
      var oNewWindow = window.open("about:blank", sWindowName, sWindowFeatures);

                      ...
    }

    return window.open(sUrl, sWindowName, sWindowFeatures);
  };

 

  return fnOpenWindow;
});

 

 

Accepted Solutions (0)

Answers (0)