Skip to content

Google Chrome deprecated nacl_arch in runtime.getPlatformInfo() #294

Description

@bershanskiy

Describe the bug
A clear and concise description of what the bug is.s

js/popup.js calls for nacl_arch, which is already undefined in Firefox and will soon be undefined in Chrome.

To Reproduce
Steps to reproduce the behavior.

1 .Install extension on Firefox.
2. Open popup and see version string v5.2.0 (win undefined) - undefined.

On Google Chrome:

  1. Enable Chrome experiment removing nacl_arch in runtime.getPlatformInfo().
  2. Install extension on Chrome.
  3. Open popup and see version string v5.2.0 (win undefined) - en.

Expected behavior
A clear and concise description of what you expected to happen.

Popup does not display undefined. Instead, it falls back to arch if no nacl_arch is available. Or to web-exposed navigator.userAgentData.getHighEntropyValues(['bitness']).

Screenshots
If applicable, add screenshots to help explain your problem.

Image

System Information

  • Browser Firefox
  • Version - 153.0.4

Additional context
Add any other context about the problem here.

This attribute is deprecated: https://developer.chrome.com/docs/extensions/reference/api/runtime#type-PlatformInfo
Chromium issue tracker (see the most recent comments): https://issues.chromium.org/issues/40511454

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions