google / google/EarlGrey

GREYUIWebViewDelegate makes all XMLHttpRequests synchronous

Open
#588 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
5.7k
Forks
737
Avg merge
1d 20h
Merged PRs (30d)
5

Description

The GREYUIWebViewDelegate forces all XMLHttpRequests to be synchronous:
grey_ajaxListener.originalOpen.apply(this, [method, url, **false**, user, password]);

This causes failures in some scenarios which the sync api doesn't support, for example setting the responseType will result in the following error: "Synchronous HTTP(S) requests made from the window context cannot have XMLHttpRequest.responseType set".

Is it possible not to force XMLHTTPRequests to be sync? (perhaps adding an event listener tot he 'load' event and then doing grey_ajaxListener.updateStatus('completed'))

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.