I understand that western powers in China and Japan insisted that there subjects / citizens could not be tried by local courts. There was an incident in 1784 where a British ship firing a salute killed two men on a fishing boat. The Chinese had the gunner executed! Apparently that lead for calls...