livemarks
livemarks copied to clipboard
Fix view-source URL to stop triggering preview
Add-on version Add-on version: 3.0, Firefox 84
Describe the bug Clicking "view source" twice on any feed viewing page crashes the tab.
To Reproduce Steps to reproduce the behavior:
- Go to https://feeds.bbci.co.uk/news/rss.xml
- Click on 'view source'
- Click back
- Click on 'view source'
Expected behavior It should not crash.
Pasting "view-source:https://feeds.bbci.co.uk/news/rss.xml" into the URL bar has the same effect. This only happens if livemarks plugin is enabled.
Thanks for reporting. This is a Firefox issue. https://bugzilla.mozilla.org/show_bug.cgi?id=1678734
We might have to make some adjustments so we don't handle view-source URLs. Right now that is sadly impossible to detect in the webRequest.onHeadersReceived listener.
Right now detecting those view-source requests is seemingly impossible in the webRequest listener. I opened a bug to make that possible https://bugzilla.mozilla.org/show_bug.cgi?id=1683646
I decided to hide the view-source link for now, because it doesn't work anyway.