Open Bug 1461675 Opened 6 years ago Updated 2 years ago

NotificationBox: share also reducer and action modules

Categories

(DevTools :: Shared Components, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: Honza, Unassigned)

Details

(Whiteboard: [boogaloo-reserve])

This is a followup for bug 1425538

The Console panel uses the NotificationBox component to display self-xss notification message. It implements a reducer to provide external state for the component. 

Both, the reducer as well as the action module should be moved to the devtools/client/shared directory to allow other tools to share it (as a little Redux app).

The Toolbox notification message code [1] could be the next consumer (as soon as refactored and more compatible with React & Redux world) of these modules.

Honza

[1] https://searchfox.org/mozilla-central/rev/2b9779c59390ecc47be7a70d99753653d8eb5afc/devtools/client/framework/toolbox.js#1051
Priority: -- → P3
Summary: Notification Box: share also reducer and action modules → NotificationBox: share also reducer and action modules
Product: Firefox → DevTools
Whiteboard: [boogaloo-mvp]
Priority: P3 → P2
Priority: P2 → P3
Whiteboard: [boogaloo-mvp] → [boogaloo-reserve]
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.