Skip to content

Refactor background script into modules #1

@sliminality

Description

@sliminality

Currently, only pdiff functionality is separated into its own class. Should probably refactor BrowserEndpoint into domains. Maybe something like this:

  • BrowserEndpoint manages connections and interfaces directly with debugger
    • getActiveTab
    • initConnections
    • onRequest
    • debugEventDispatch
    • sendDebugCommand
    • cleanup
    • onSocketDisconnect
    • onDebuggerDetach
  • BrowserAction anything related to the browser action
    • updateIcon
    • TODO: context menu stuff
  • DOM anything to do with querying the DOM
    • getDocumentRoot
    • selectNode
    • highlightNode
    • addParentIds
    • getNodeId
    • getNode
    • searchDocument
    • getOffsetParentId
  • Styles reading and writing styles
    • getStyles
    • refreshStyles
    • toggleStyleAndRefresh
    • toggleStyle
    • isDisabled
    • isDeclaredProperty
    • resolveProp
    • propExists
    • getScreenshotForProperty

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions