Chromium Code Reviews
DescriptionUpdated remoting.xhr API to use promises.
Removed access to the native XHR object used by the API.
This is a larger change than one might expect for two reasons: First,
because the native XHR object only allows the response content to be
retrieved while the onreadystatechange handler is executing, and
second, because the unit test for dns_blackhole_checker.js relied on
synchronous semantics which cannot be duplicated with promises because
when a promise is resolved, its "then" handlers are not called until
the next event cycle.
Committed: https://crrev.com/5b7c9e08d4e50f577eb7e058c21ef2f897cfbef1
Cr-Commit-Position: refs/heads/master@{#321608}
Patch Set 1 #
Total comments: 16
Patch Set 2 : #
Total comments: 5
Patch Set 3 : #Patch Set 4 : #
Total comments: 13
Patch Set 5 : #Patch Set 6 : #
Total comments: 4
Patch Set 7 : #Patch Set 8 : #
Total comments: 18
Patch Set 9 : #Patch Set 10 : #Patch Set 11 : #Patch Set 12 : #Messages
Total messages: 33 (11 generated)
|