Closed Bug 947629 Opened 8 years ago Closed 7 years ago

[secure.handelsbanken.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])

This bug is filed as requested from bug 942587
The url: https://secure.handelsbanken.se/bb/glss/servlet/ssco_auth2?appAction=doAuthentication&path=ssse&entryId=privsignelegse&language=sv&country=SE

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

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

Script section:
23: NexusUtil._isExist = 
24:    navigator.plugins &&
25:    navigator.plugins.length > 0 &&
26:    navigator.mimeTypes &&
27:    navigator.mimeTypes["application/x-personal-version"] &&
28:    navigator.mimeTypes["application/x-personal-version"].enabledPlugin;
Summary: [secure.handelsbanken.se] Remove use of plugin enumeration → [secure.handelsbanken.se] Remove use of navigator.plugins.length
When accessing this URL, I get

> Säkerhetsprogram saknas
> För att använda Internettjänsten krävs att säkerhetsprogrammet 
> är installerat. Du kan ladda ner och installera programmet på 
> vår installationssida.
Assignee: swedish → nobody
Component: Swedish → Desktop
Whiteboard: [country-se] [js]
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.