litejs / json-lite

Fast non-blocking JSON viewer for Chrome and Firefox
195 stars 16 forks source link

Does not work anymore for applicaiton/hal+json #47

Closed sabi0 closed 5 years ago

sabi0 commented 5 years ago

I had everything working fine in Firefox 66.0.5 for our internal service that returns application/hal+json. Then I upgraded to Firefox 67. And of course did not make a backup of the profile.

The add-on stopped working. And I cannot get it working again even after downgrading Firefox back to 66.0.5. I just see JSON in plain text.

When I refresh the tab where the add-on is supposed to kick in I get this error message in the browser console: Error: WebExtension context not found! Other JSON viewers (JSONView, MJsonViewer) have no problem displaying this tab's application/hal+json content.

P.S. I am going to stay with Firefox 66 for now. As 67 introduced a couple of backward incompatibilities I cannot put up with.

sabi0 commented 5 years ago

I also have json-mime-type-override add-on installed. Can't remember if it was needed for JSON Lite. Or if I installed it for some other purpose. But the two do not seem to work together anymore.

lauriro commented 5 years ago

I am not able to reproduce any error in Firefox 67.0, everything works fine. json-content-type-override is not needed for this extension, although I installed it and they worked together.

lauriro commented 5 years ago

Try to change the auto-format documents setting as in #48

sabi0 commented 5 years ago

I can't check it right now. I could only let you know if it helped in a couple of weeks.

Feel free to close the ticket if you prefer not to keep it open for so long.

On Fri, May 31, 2019, 03:23 Lauri Rooden notifications@github.com wrote:

Try to change the auto-format documents setting

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lauriro/json-lite/issues/47?email_source=notifications&email_token=ACX2A475ZFBL3PGLVLJLAKLPYDG6ZA5CNFSM4HPOT4UKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWUNT7A#issuecomment-497605116, or mute the thread https://github.com/notifications/unsubscribe-auth/ACX2A444JBEZJIGXO6T3D5DPYDG6ZANCNFSM4HPOT4UA .

sabi0 commented 5 years ago

Changing the "Auto-format documents" option did help. Thank you. It was blank. And after I set it to "under 1 MB" everything works fine again.