global.data

Open
#69 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript
Domain
devtools

Research direction

Search the agent for where global.data is created and how the Runtime.evaluate request is handled. Read the surrounding global-state and console integration code, then determine whether the object can be kept private or removed without breaking the agent. Done means global.data is no longer exposed unintentionally and the relevant behavior is verified.

Written by the indexing model from the issue text.

Description

Hi, I was looking at global objects and I've found the global.data object.

{"method":"Runtime.evaluate","params":{"expression":"JSON.stringify(global.data)","objectGroup":"console","includeCommandLineAPI":true,"doNotPauseOnExceptionsAndMuteConsole":false,"returnByValue":false,"generatePreview":true},"id":82}

I suppose it is node-webkit-agent specific. Can't it be kept private?

I have no time now to clean it, but I recommend not to use globals if not strictly necessary.

Do you agree?

Dominant language
JavaScript
Stars
1.1k
Forks
77
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from c4milo/node-webkit-agent

All issues in c4milo/node-webkit-agent

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.