User:GijsKruitbosch/JS Debugging/DocumentFromException

From MozillaWiki
Jump to navigation Jump to search

Main aim

Be able to determine the document an error came off from within chrome js/extension/etc.

We'll use plan A unless we run out of time to do this on branch, in which case we have plan B for backup..

Plan A

  • Make nsIConsoleMessage implement nsIException
  • Make nsIException have useful stuff in its data field that can be used to determine the document that the message came off. Note: what? (as in, exactly)


Plan B

Discussion