Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(795)

Unified Diff: ios/web/web_state/js/resources/post_request.js

Issue 2449333002: [ios] Pass more --jscomp_error switches to the closure Compiler. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ios/web/web_state/js/resources/post_request.js
diff --git a/ios/web/web_state/js/resources/post_request.js b/ios/web/web_state/js/resources/post_request.js
index 7f5ff25168fb5eb6528ac66f7de57c6df1b194a8..65afcf490fb6377b7349d5dc34478a440202f776 100644
--- a/ios/web/web_state/js/resources/post_request.js
+++ b/ios/web/web_state/js/resources/post_request.js
@@ -76,9 +76,9 @@ __crPostRequestWorkaround.runPostRequest = function(
document.open();
try {
document.write(createAndSendPostRequest(url, headers, body, contentType));
- window.webkit.messageHandlers.POSTSuccessHandler.postMessage("");
+ window.webkit.messageHandlers['POSTSuccessHandler'].postMessage("");
dpapad 2016/10/26 17:05:24 Can you add externs definitions for those? Then yo
Eugene But (OOO till 7-30) 2016/10/26 17:54:45 I would prefer not to. messageHandlers is an objec
dpapad 2016/10/26 18:18:35 It is a tradeoff between inconvenience and better
Eugene But (OOO till 7-30) 2016/10/26 20:58:53 Acknowledged.
} catch(error) {
- window.webkit.messageHandlers.POSTErrorHandler.postMessage(error);
+ window.webkit.messageHandlers['POSTErrorHandler'].postMessage(error);
}
document.close();
}
« ios/web/web_state/js/resources/message.js ('K') | « ios/web/web_state/js/resources/message.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698