Components.WebView: Check for pass up exceptions when calling JS code

Update web extension to check for errors when invoking page state
methods and pass a message back if found. Check for this, decode and
throw a vala error in the WebView if found.
This commit is contained in:
Michael Gratton 2020-08-27 16:18:45 +10:00 committed by Michael James Gratton
parent ff565bc6ef
commit c813aa5707
4 changed files with 146 additions and 13 deletions

View file

@ -194,5 +194,9 @@ PageState.prototype = {
testReturn: function(value) {
this.testResult = value;
return value;
},
testThrow: function(value) {
this.testResult = value;
throw this.testResult;
}
};