Closed Bug 1359448 Opened 7 years ago Closed 7 years ago

Lock down devtools-core package

Categories

(DevTools :: Netmonitor, defect, P1)

defect

Tracking

(firefox55 fixed)

RESOLVED FIXED
Firefox 55
Iteration:
55.4 - May 1
Tracking Status
firefox55 --- fixed

People

(Reporter: rickychien, Assigned: rickychien)

References

Details

(Whiteboard: [netmonitor])

Attachments

(1 file)

There are a few update and bug fixed in devtools-core recently (export cause, fromCache, fromServiceWorker [1].


[1] https://github.com/devtools-html/devtools-core/pull/344
Flags: qe-verify?
qe-verify-
Flags: needinfo?(mmucci)
Latest change of devtools-connection module in https://github.com/devtools-html/devtools-core/pull/344 hasn't published to NPM yet at the time. Let's wait for devtools-connection version bump and review again.
Flags: qe-verify?
Flags: qe-verify-
Flags: needinfo?(mmucci)
Comment on attachment 8862694 [details]
Bug 1359448 - Lock down devtools-core package

https://reviewboard.mozilla.org/r/134564/#review137556

r+ after nit fixed

::: devtools/client/netmonitor/index.js:16
(Diff revision 1)
>   */
>  const React = require("react");
>  const ReactDOM = require("react-dom");
>  const { bindActionCreators } = require("redux");
>  const { bootstrap, renderRoot } = require("devtools-launchpad");
> -const { EventEmitter } = require("devtools-modules");
> +const EventEmitter = require("devtools-connection/src/utils/event-emitter");

do we need to include `devtools-connection` module if we use it?

::: devtools/client/netmonitor/package.json:10
(Diff revision 1)
>      "node": ">=6.9.0"
>    },
>    "description": "Network monitor in developer tools",
>    "dependencies": {
>      "codemirror": "^5.24.2",
>      "devtools-config": "=0.0.12",

add "devtools-connection": "
0.04",
Attachment #8862694 - Flags: review?(gasolin) → review+
Comment on attachment 8862694 [details]
Bug 1359448 - Lock down devtools-core package

https://reviewboard.mozilla.org/r/134564/#review137556

> add "devtools-connection": "
> 0.04",

And we should update the README.md accordingly when add a new dependency
Comment on attachment 8862694 [details]
Bug 1359448 - Lock down devtools-core package

https://reviewboard.mozilla.org/r/134564/#review137556

> do we need to include `devtools-connection` module if we use it?

Good catch! 

After investigating, I think we are no longer to depend on devtools-connection since it's part of nested dependency of devtools-launchpad.

EventEmitter can also be accessed from devtools-module, as a result, we can get rid of it.

Thanks for spotting the issue!

> And we should update the README.md accordingly when add a new dependency

Likewise above. The netmonitor is no longer necessarily to depend on devtools-connection anymore, READMD.md update will not be needed.
Comment on attachment 8862694 [details]
Bug 1359448 - Lock down devtools-core package

https://reviewboard.mozilla.org/r/134564/#review137568
Pushed by rchien@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2e7660e83f7d
Lock down devtools-core package r=gasolin
https://hg.mozilla.org/mozilla-central/rev/2e7660e83f7d
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: