Closed Bug 947631 Opened 8 years ago Closed 7 years ago

[swp5.vv.sebank.se] Remove use of navigator.plugins.length

Categories

(Web Compatibility :: Desktop, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: cork, Unassigned)

References

()

Details

(Whiteboard: [country-se] [js] [contactready])

This bug is filed as requested from bug 942587
The url: https://swp5.vv.sebank.se/cgi-bin/pts3/wow/wow1010b.htm#bankid

Detection script is here: https://secure.handelsbanken.se/bb/glss/sssestatic/js/NexusUtil.js
The problematic line is line 67: if (navigator.plugins.length > 0) {

Breakpointing on the if check and injecting "Object.defineProperty(navigator.plugins, 'length', { value: 1 })" in the page fixes it.

Script section:
66: if (navigator.plugins) {
67:    if (navigator.plugins.length > 0) {
68:       if (navigator.mimeTypes && navigator.mimeTypes["application/x-personal-authentication"]) {
69:          if (navigator.mimeTypes["application/x-personal-authentication"].enabledPlugin) {
70:             installed = true;
71:             var nexusClient = document.getElementById("pluginId");
72:          }
73:       }
74:    }
75: }
Opps the detection script is in the main html file, not in an external script.

Sorry for the miss.
A bit of an update, I still haven't managed to get into contact with this company. Starts to look like I might have to go to there office with a letter...
Assignee: swedish → nobody
Component: Swedish → Desktop
Whiteboard: [country-se] [js] [contactready]
The sites has moved to the new api that doesn't relay on navigator.plugins anymore.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
Product: Tech Evangelism → Web Compatibility
You need to log in before you can comment on or make changes to this bug.