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:
parent
ff565bc6ef
commit
c813aa5707
4 changed files with 146 additions and 13 deletions
|
|
@ -194,5 +194,9 @@ PageState.prototype = {
|
|||
testReturn: function(value) {
|
||||
this.testResult = value;
|
||||
return value;
|
||||
},
|
||||
testThrow: function(value) {
|
||||
this.testResult = value;
|
||||
throw this.testResult;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue