browse by category or date

Yesterday I was editing the data of Complete Ferry Schedule using JSON Table Editor in Chrome. Immediately I found that the “Output to JSON” button is no longer works. I opened JSON Table Editor in other browsers (Firefox, Microsoft Edge, Opera) but found that the button works fine.

Looking into Chrome’s Developer Tools, I found why the button was not working.

json.table.security.error

Alas, it’s an Uncaught Security Exception. This is the offending line:

if (opener && opener.JSONTableEditor)
{
	// ... Snipped ...
}

This part of the code was supposed to check if the current window is actually a child of previous instance of JSON Table Editor (this happens when you edit a cell which has value of a complex JavaScript object). If it does, it will update the cell value in the parent window. If it doesn’t, it will show the formatted JSON on the bottom of the page.

The obvious work around would be putting this checking inside a try-catch:

var checkedOpener;
try {
   if (opener && opener.JSONTableEditor)
      checkedOpener = opener;
}
catch (ex) {
   //Nothing to do here
}
if (checkedOpener)
{
	// ... Snipped ...
}

Problem solved!

Final Thoughts

The error is unique to Google Chrome. This bug is already reported to Chromium team on Feb 2015. Unfortunately, until today the bug’s is not yet resolved.

GD Star Rating
loading...
[Solved] JSON Table Editor not working in Chrome, 3.0 out of 5 based on 1 rating

Possibly relevant:

About Hardono

Howdy! I'm Hardono. I am working as a Software Developer. I am working mostly in Windows, dealing with .NET, conversing in C#. But I know a bit of Linux, mainly because I need to keep this blog operational. I've been working in Logistics/Transport industry for more than 11 years.

Incoming Search

bugs, chrome, google, javascript

No Comment

Add Your Comment