Skip to content

Commit

Permalink
call asynchronous event handlers after parsing 'data:' URI
Browse files Browse the repository at this point in the history
  • Loading branch information
warren-bank committed Nov 17, 2024
1 parent 4e25f28 commit eae48ed
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,14 @@ public void run() {
private WebViewXmlHttpResponse executeHttpRequestSync() {
WebViewXmlHttpResponse response = parseDataUri();

if (response != null)
if (response != null) {
response.setReadyState(WebViewXmlHttpResponse.READY_STATE_DONE);
executeOnReadyStateChangeCallback(response);

executeOnLoadCallback(response);

return response;
}

response = new WebViewXmlHttpResponse(this.context);
StringBuilder out = new StringBuilder();
Expand Down

0 comments on commit eae48ed

Please sign in to comment.