Skip to content

%webkit_ver in "user-agent" has what looks like null pointer address output #8182

Open
@bluthen

Description

@bluthen

Issue Type

Before opening an issue, please search and see if it has already been raised.

  • Bug Report

  • Feature Request

  • Successfully reproduced against the latest version of NW.js?

Please use our mailing list or Gitter chatroom to ask questions. The issue tracker is only for bugs and feature requests, in English only. Please note that issues without a repro or code snippet are less likely to be resolved.

Current/Missing Behavior

Having a package.json of:

{
  "name": "nwjstest",
  "main": "index.html",
  "user-agent": "%webkit_ver"
}

Gives the following in navigator.userAgent:

537.36 (@0000000000000000000000000000000000000000)

Expected/Proposed Behavior

I expect it to show instead:

537.36 (KHTML, like Gecko)

Additional Info

  • Operating System: Linux/MacOS, probably windows but had not tested it.
  • NW.js Version: 0.87
  • Repro Link:
  • Code snippet:
{
  "name": "nwjstest",
  "main": "index.html",
  "user-agent": "%webkit_ver"
}
  • Crash report:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions