DevTools tab for debugging - #79
Conversation
|
Usability suggestions from chrome testing: Events tab: Reloading the page does not clear the events. There is no button for clearing them (also tested that clearing log does not clear events). Log tab: Even though there is clear button, the chrome console, network tools etc is cleared each time page is reloaded. I suggest we follow that principle. Please also consider, If we clear the log tab on reload, then chrome console has a setting preserve log. Should we have similar setting? |
|
Hi @svenzik! Good point about not having the ability to clear the events! I'll add it as soon as I have a moment. However, not clearing the logs on page reload was intentional. Thank you for taking the time to test it! |
Signed-off-by: Tanel Metsar <taneltm@users.noreply.github.com>
Signed-off-by: Tanel Metsar <taneltm@users.noreply.github.com>
Signed-off-by: Tanel Metsar <taneltm@users.noreply.github.com>
…vity WE2-967 Includes minor cleanup for DevTools related files Signed-off-by: Tanel Metsar <taneltm@users.noreply.github.com>
WE2-967 Signed-off-by: Sven Mitt <svenzik@users.noreply.github.com>
…pening Web-eID tab WE2-967 Signed-off-by: Sven Mitt <svenzik@users.noreply.github.com>
…r during loading WE2-967 Signed-off-by: Sven Mitt <svenzik@users.noreply.github.com>
WE2-967 Signed-off-by: Sven Mitt <svenzik@users.noreply.github.com>
WE2-967 Signed-off-by: Sven Mitt <svenzik@users.noreply.github.com>
WE2-967 Signed-off-by: Sven Mitt <svenzik@users.noreply.github.com>
WE2-967 Signed-off-by: Sven Mitt <svenzik@users.noreply.github.com> Co-authored-by: Sten Anderson <scopuli-dev@users.noreply.github.com>
WE2-967 Signed-off-by: Sven Mitt <svenzik@users.noreply.github.com>
WE2-967 Signed-off-by: Sven Mitt <svenzik@users.noreply.github.com>
WE2-967 Signed-off-by: Sven Mitt <svenzik@users.noreply.github.com>
…lar to devtools.js WE2-967 Signed-off-by: Sven Mitt <svenzik@users.noreply.github.com>
…urning optional_permissions -> devtools on WE2-967 Signed-off-by: Sven Mitt <svenzik@users.noreply.github.com>
Signed-off-by: Mart Somermaa <mrts@users.noreply.github.com>
| @@ -0,0 +1,70 @@ | |||
| /* | |||
There was a problem hiding this comment.
This is unused and does not have .ts extension. It should be used in Browser.ts, see comment below.
| * | ||
| * @see https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/onInstalled | ||
| */ | ||
| onInstalled: { |
There was a problem hiding this comment.
2b8fabb removed the consent page and added Firefox data_collection_permissions in the manifest instead, so
the runtime onInstalled type became unused and was removed. As onInstalled is not used anywhere in the current branch either, I did not restore onInstalled, OnInstallReason, OnInstalledDetails, and OnInstalledCallback in #102.
| /** | ||
| * | ||
| */ | ||
| storage: Storage; |
There was a problem hiding this comment.
Storage resolves to the DOM localStorage/
sessionStorage type, not the WebExtension storage API. So it compiles, but it is the wrong type. In #102, I added the ExtensionStorage import and changed it from the
DOM Storage type to ExtensionStorage.
|
Superseded by #102. |
Adds the "Web eID" tab to the browser's DevTools.
Features:
The developer tool is disabled by default and needs to be enabled before it can be used.
Firefox
or navigate to the address
about:addonsChrome
or navigate to the address
chrome://extensions/Screenshots:

Viewing event sequence and the event objects:
Viewing the extension's internal log messages:

Overriding the extension settings:

Resolves WE2-967
Resolves #40