Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

navigator.javaEnabled is not implemented #1467

Closed
ekamgit opened this issue Apr 29, 2016 · 0 comments · Fixed by #1469
Closed

navigator.javaEnabled is not implemented #1467

ekamgit opened this issue Apr 29, 2016 · 0 comments · Fixed by #1469

Comments

@ekamgit
Copy link

ekamgit commented Apr 29, 2016

When processing a segment of javascript, i get the following error;

TypeError: navigator.javaEnabled is not a function

It would appear that this function has not been implemented.

domenic added a commit that referenced this issue Apr 30, 2016
Adds a variety of missing properties to Navigator:

- appCodeName, product, productSub, vendor, and vendorSub from NavigatorID
- language and languages from NavigatorLanguage
- onLine from NavigatorOnLine
- javaEnabled() from NavigatorPlugins (fixes #1467)

We now emulate Chrome a bit more closely: we follow the spec with "navigator compatibility mode" of Chrome, which locks down appName, platform, and version to be more browser-like instead of Node.js-like. The default userAgent similarly gains a suffix "AppleWebKit/537.36 (KHTML, like Gecko)".
domenic added a commit that referenced this issue May 7, 2016
Adds a variety of missing properties to Navigator:

- appCodeName, product, productSub, vendor, and vendorSub from NavigatorID
- language and languages from NavigatorLanguage
- onLine from NavigatorOnLine
- javaEnabled() from NavigatorPlugins (fixes #1467)

Also removes the nonstandard navigator.noUI property.

We now emulate Chrome a bit more closely: we follow the spec with "navigator compatibility mode" of Chrome, which locks down appName, platform, and version to be more browser-like instead of Node.js-like. The default userAgent similarly gains a suffix "AppleWebKit/537.36 (KHTML, like Gecko)".
domenic added a commit that referenced this issue May 7, 2016
Adds a variety of missing properties to Navigator:

- appCodeName, product, productSub, vendor, and vendorSub from NavigatorID
- language and languages from NavigatorLanguage
- onLine from NavigatorOnLine
- javaEnabled() from NavigatorPlugins (fixes #1467)

Also removes the nonstandard navigator.noUI property.

We now emulate Chrome a bit more closely: we follow the spec with "navigator compatibility mode" of Chrome, which locks down appName, platform, and version to be more browser-like instead of Node.js-like. The default userAgent similarly gains a suffix "AppleWebKit/537.36 (KHTML, like Gecko)".
nhunzaker pushed a commit to nhunzaker/jsdom that referenced this issue Dec 22, 2016
Adds a variety of missing properties to Navigator:

- appCodeName, product, productSub, vendor, and vendorSub from NavigatorID
- language and languages from NavigatorLanguage
- onLine from NavigatorOnLine
- javaEnabled() from NavigatorPlugins (fixes jsdom#1467)

Also removes the nonstandard navigator.noUI property.

We now emulate Chrome a bit more closely: we follow the spec with "navigator compatibility mode" of Chrome, which locks down appName, platform, and version to be more browser-like instead of Node.js-like. The default userAgent similarly gains a suffix "AppleWebKit/537.36 (KHTML, like Gecko)".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants