zap-hud icon indicating copy to clipboard operation
zap-hud copied to clipboard

HUD chokes sometimes when going to previous page

Open thc202 opened this issue 6 years ago • 3 comments

Sometimes when going back to a previous page (browser's back button) the HUD takes a while to load, once finished the HUD error counter shows hundreds (if not thousands) of errors, mostly Could not find any clients for frameId:

DEBUG utils.loadPanelTools: Panel leftPanel
DEBUG utils.loadPanelTools: Tool break: {}
DEBUG utils.loadPanelTools: Tool showEnable: {}
DEBUG utils.loadPanelTools: Tool page-alerts-medium: {}
DEBUG utils.loadPanelTools: Tool page-alerts-high: {}
DEBUG utils.loadPanelTools: Tool page-alerts-low: {}
DEBUG utils.loadPanelTools: Tool page-alerts-informational: {}
DEBUG utils.loadPanelTools: Tool hudErrors: {}
DEBUG utils.loadPanelTools: Panel rightPanel
ERROR errorHandler: Problem loading Alertify. Alertify is undefined.: "Problem loading Alertify. Alertify is undefined."
ERROR errorHandler: Error: Could not find a ClientId for tabId: 3543, frameId: leftPanel NoClientIdError@https:    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 14:4 messageFrame    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 434:1: {}
DEBUG utils.messageAllTabs: Could not find any clients for frameId: leftPanel: {"action":"broadcastUpdate","context":{"url":"https://example.com/"},"tool":{"name":"page-alerts-informational","data":0}}
ERROR errorHandler: Error: Could not find any clients for frameId: leftPanel NoClientIdError@https:    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 14:4 messageAllTabs    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 473:1: {}
DEBUG utils.messageAllTabs: Could not find any clients for frameId: leftPanel: {"action":"broadcastUpdate","context":{"url":"https://example.com/"},"tool":{"name":"page-alerts-medium","data":0}}
DEBUG utils.messageAllTabs: Could not find any clients for frameId: leftPanel: {"action":"broadcastUpdate","context":{"url":"https://example.com/"},"tool":{"name":"page-alerts-low","data":0}}
DEBUG AlertEventPublisher eventListener: dispatchEvent commonAlerts.Informational: {"count":0,"url":"https://example.com/","risk":"Informational","domain":"example.com"}
DEBUG utils.messageAllTabs: Could not find any clients for frameId: leftPanel: {"action":"broadcastUpdate","context":{"url":"https://example.com/"},"tool":{"name":"page-alerts-high","data":0}}
ERROR errorHandler: Error: Could not find any clients for frameId: leftPanel NoClientIdError@https:    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 14:4 messageAllTabs    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 473:1: {}
DEBUG AlertEventPublisher eventListener: dispatchEvent commonAlerts.Medium: {"count":0,"url":"https://example.com/","risk":"Medium","domain":"example.com"}
DEBUG utils.messageAllTabs: Could not find any clients for frameId: leftPanel: {"action":"broadcastUpdate","tool":{"name":"hudErrors","data":840,"icon":"bug-red.png","label":"HUD Errors"}}
DEBUG utils.messageAllTabs: Could not find any clients for frameId: leftPanel: {"action":"broadcastUpdate","tool":{"name":"hudErrors","data":839,"icon":"bug-red.png","label":"HUD Errors"}}
ERROR errorHandler: Error: Could not find any clients for frameId: leftPanel NoClientIdError@https:    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 14:4 messageAllTabs    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 473:1: {}
ERROR errorHandler: Error: Could not find any clients for frameId: leftPanel NoClientIdError@https:    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 14:4 messageAllTabs    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 473:1: {}
ERROR errorHandler: Error: Could not find any clients for frameId: leftPanel NoClientIdError@https:    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 14:4 messageAllTabs    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 473:1: {}
ERROR errorHandler: Error: Could not find any clients for frameId: leftPanel NoClientIdError@https:    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 14:4 messageAllTabs    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 473:1: {}
ERROR errorHandler: Error: Could not find any clients for frameId: leftPanel NoClientIdError@https:    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 14:4 messageAllTabs    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 473:1: {}
DEBUG AlertEventPublisher eventListener: dispatchEvent commonAlerts.Low: {"count":0,"url":"https://example.com/","risk":"Low","domain":"example.com"}
DEBUG AlertEventPublisher eventListener: dispatchEvent commonAlerts.High: {"count":0,"url":"https://example.com/","risk":"High","domain":"example.com"}
DEBUG utils.messageAllTabs: Could not find any clients for frameId: leftPanel: {"action":"broadcastUpdate","tool":{"name":"hudErrors","data":842,"icon":"bug-red.png","label":"HUD Errors"}}
ERROR errorHandler: Error: Could not find any clients for frameId: leftPanel NoClientIdError@https:    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 14:4 messageAllTabs    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 473:1: {}
ERROR errorHandler: Error: Could not find any clients for frameId: leftPanel NoClientIdError@https:    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 14:4 messageAllTabs    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 473:1: {}
ERROR errorHandler: Error: Could not find any clients for frameId: leftPanel NoClientIdError@https:    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 14:4 messageAllTabs    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 473:1: {}
DEBUG utils.messageAllTabs: Could not find any clients for frameId: leftPanel: {"action":"broadcastUpdate","tool":{"name":"hudErrors","data":840,"icon":"bug-red.png","label":"HUD Errors"}}
DEBUG utils.messageAllTabs: Could not find any clients for frameId: leftPanel: {"action":"broadcastUpdate","tool":{"name":"hudErrors","data":840,"icon":"bug-red.png","label":"HUD Errors"}}
ERROR errorHandler: Error: Could not find any clients for frameId: leftPanel NoClientIdError@https:    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 14:4 messageAllTabs    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 473:1: {}
DEBUG utils.messageAllTabs: Could not find any clients for frameId: rightPanel: {"action":"broadcastUpdate","context":{"domain":"example.com"},"tool":{"name":"site-alerts-informational","data":0}}
ERROR errorHandler: Error: Could not find any clients for frameId: leftPanel NoClientIdError@https:    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 14:4 messageAllTabs    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 473:1: {}
ERROR errorHandler: Error: Could not find any clients for frameId: rightPanel NoClientIdError@https:    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 14:4 messageAllTabs    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 473:1: {}
DEBUG utils.messageAllTabs: Could not find any clients for frameId: leftPanel: {"action":"broadcastUpdate","tool":{"name":"hudErrors","data":840,"icon":"bug-red.png","label":"HUD Errors"}}
DEBUG utils.messageAllTabs: Could not find any clients for frameId: rightPanel: {"action":"broadcastUpdate","context":{"domain":"example.com"},"tool":{"name":"site-alerts-low","data":0}}
ERROR errorHandler: Error: Could not find any clients for frameId: rightPanel NoClientIdError@https:    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 14:4 messageAllTabs    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 473:1: {}
DEBUG utils.messageAllTabs: Could not find any clients for frameId: rightPanel: {"action":"broadcastUpdate","context":{"domain":"example.com"},"tool":{"name":"site-alerts-medium","data":0}}
DEBUG utils.messageAllTabs: Could not find any clients for frameId: rightPanel: {"action":"broadcastUpdate","context":{"domain":"example.com"},"tool":{"name":"site-alerts-high","data":0}}
ERROR errorHandler: Error: Could not find any clients for frameId: rightPanel NoClientIdError@https:    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 14:4 messageAllTabs    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 473:1: {}
ERROR errorHandler: Error: Could not find any clients for frameId: rightPanel NoClientIdError@https:    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 14:4 messageAllTabs    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 473:1: {}
ERROR errorHandler: Error: Could not find any clients for frameId: leftPanel NoClientIdError@https:    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 14:4 messageAllTabs    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 473:1: {}
DEBUG utils.messageAllTabs: Could not find any clients for frameId: leftPanel: {"action":"broadcastUpdate","tool":{"name":"hudErrors","data":840,"icon":"bug-red.png","label":"HUD Errors"}}
DEBUG utils.messageAllTabs: Could not find any clients for frameId: leftPanel: {"action":"broadcastUpdate","tool":{"name":"hudErrors","data":841,"icon":"bug-red.png","label":"HUD Errors"}}
ERROR errorHandler: Error: Could not find any clients for frameId: leftPanel NoClientIdError@https:    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 14:4 messageAllTabs    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 473:1: {}
ERROR errorHandler: Error: Could not find any clients for frameId: leftPanel NoClientIdError@https:    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 14:4 messageAllTabs    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 473:1: {}
ERROR errorHandler: Error: Could not find any clients for frameId: leftPanel NoClientIdError@https:    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 14:4 messageAllTabs    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 473:1: {}
DEBUG utils.messageAllTabs: Could not find any clients for frameId: leftPanel: {"action":"broadcastUpdate","tool":{"name":"hudErrors","data":841,"icon":"bug-red.png","label":"HUD Errors"}}
ERROR errorHandler: Error: Could not find any clients for frameId: leftPanel NoClientIdError@https:    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 14:4 messageAllTabs    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 473:1: {}
[...]
ERROR errorHandler: Error: Could not find any clients for frameId: leftPanel NoClientIdError@https:    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 14:4 messageAllTabs    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 473:1: {}
ERROR errorHandler: Error: Could not find any clients for frameId: leftPanel NoClientIdError@https:    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 14:4 messageAllTabs    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 473:1: {}
ERROR errorHandler: Error: Could not find any clients for frameId: leftPanel NoClientIdError@https:    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 14:4 messageAllTabs    https://zap//zapCallBackUrl/4709908070288524227?name=utils.js 473:1: {}
DEBUG utils.messageAllTabs: Could not find any clients for frameId: leftPanel: {"action":"broadcastUpdate","tool":{"name":"hudErrors","data":879,"icon":"bug-red.png","label":"HUD Errors"}}
DEBUG utils.messageAllTabs: Could not find any clients for frameId: leftPanel: {"action":"broadcastUpdate","tool":{"name":"hudErrors","data":879,"icon":"bug-red.png","label":"HUD Errors"}}
DEBUG utils.loadPanelTools: Tool site-tree: {}
DEBUG utils.loadPanelTools: Panel leftPanel
DEBUG utils.loadPanelTools: Tool spider: {}
DEBUG utils.loadPanelTools: Tool active-scan: {}
DEBUG utils.loadPanelTools: Tool attack: {}
DEBUG utils.loadPanelTools: Tool site-alerts-high: {}
DEBUG utils.loadPanelTools: Tool site-alerts-medium: {}
DEBUG utils.loadPanelTools: Tool site-alerts-low: {}
DEBUG utils.loadPanelTools: Tool site-alerts-informational: {}
DEBUG utils.loadPanelTools: Tool scope: {}
DEBUG utils.loadPanelTools: Tool showEnable: {}
DEBUG utils.loadPanelTools: Tool break: {}
DEBUG utils.loadPanelTools: Tool page-alerts-high: {}
DEBUG utils.loadPanelTools: Tool page-alerts-medium: {}
DEBUG utils.loadPanelTools: Tool page-alerts-low: {}
DEBUG utils.loadPanelTools: Tool page-alerts-informational: {}
DEBUG utils.loadPanelTools: Tool hudErrors: {}

thc202 avatar Jan 17 '19 14:01 thc202

I've reproduced this by browsing bodgeit and making frequent use of the back button too. Not noticed it before, but I've probably not used the back button much when testing the HUD so far.

psiinon avatar Jan 17 '19 14:01 psiinon

Yeah I've just left this as undefined behaviour so far. Haven't looked into addressing this yet.

dscrobonia avatar Jan 19 '19 16:01 dscrobonia

Removed from 0.4.0, not on the plans for this version.

thc202 avatar May 31 '19 21:05 thc202