sneakypete81 / updatescanner

Firefox addon to monitor web pages for updates.
http://sneakypete81.github.io/updatescanner/
GNU General Public License v3.0
204 stars 31 forks source link

HTML not being saved for OLD or NEW pages when scanned #949

Closed Travellingman closed 2 years ago

Travellingman commented 2 years ago

Thanks for creating a new issue!

Before continuing, please use the search box in the header above to check if someone has already reported it.

To help explain the issue, please include the following:

OS version: Windows 10 all patches
Firefox version: 94 auto update enabled
Update Scanner version: 4.4.0

Steps to reproduce the problem:

[Include webpage URL, if applicable] https://github.com/sneakypete81/updatescanner/issues/new Add Update Scanner to Firefox, select a page to track, scan it. A confirmation will be shown. Try to see the webpage last scanned date or the "old" page or "New" page, etc. Look at the SQLite DB. Watch the "WAL" and "EHM" files come and go, but the data is not retained. What you expected to happen: The scanned page HTML would be retained to be compared with another scan at a future time/date. What actually happened:

[Include a screenshot]

Message "This page was last scanned today at 15:52. The changes are highlighted." There ARE NO OLD, NEW, or CHANGES pages to be seen.

I suspect this is connected to the BACKUP/RESTORE not working problem just reported also.

I found how to run "Browse Console" to get the following error messages:

14:58:41.139 ERROR:PageStore.loadHtml:InvalidStateError: A mutation operation was attempted on a database that did not allow mutations. log.js:7:11 14:58:41.140 Could not load 'epguides.com Main Menu Page' old HTML from storage log.js:7:11 14:58:41.141 ERROR:PageStore.loadHtml:InvalidStateError: A mutation operation was attempted on a database that did not allow mutations. log.js:7:11 14:58:41.141 Could not load 'epguides.com Main Menu Page' new HTML from storage log.js:7:11 14:58:49.553 Element.releaseCapture() is deprecated. Use Element.releasePointerCapture() instead. For more help https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture menupopup.js:163:13 14:58:49.556 ERROR:PageStore.loadHtml:InvalidStateError: A mutation operation was attempted on a database that did not allow mutations. log.js:7:11 14:58:49.557 Could not load 'epguides.com * Main Menu Page' new HTML from storage log.js:7:11

Travellingman commented 2 years ago

Damn! It turns out that if Firefox is running in Private/Incognito mode, scanner data (ALL SQLite data??) can not be stored. Something to do with not having an index in Private mode. This mode is set when History is set to Never.

It took a while, but I got here!