oddsdk / odd-devtools

An extension to help developers use the Webnative SDK
Apache License 2.0
2 stars 1 forks source link

Add build and tooling #7

Closed bgins closed 1 year ago

bgins commented 1 year ago

Description

The PR implements the following features:

Note that it was necessary to upgrade to Manifest V3 to properly test the build across browser targets. The Manifest V3 changes were primarily adding support for service workers and non-persistent background scripts.

The counter boilerplate was also removed because we probably won't need communication in the devtools panel -> background -> content script direction.

Link to issue

Closes #5. Closes #6.

Type of change

Test plan (required)

Build the project and load it into Chrome (chrome://extensions) and Firefox (about:debugging > This Firefox). Select the Webnative devtools panel in the devtools and select "Start Tracking" to track mouse movement in the page.

In Chrome, leave the page for five minutes to let the service worker deactivate. Then mouse over the page and the service worker should be reactivated as a result of messages sent through the content script.

In Firefox, terminate the background script in about:debugging. The mouse over the page and it should reactivate. Note that in Firefox you must grant the "Access your data for all websites" for the extension in about:addons.

Screenshots/Screencaps

CleanShot 2023-01-23 at 11 11 12@2x