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

Unified Diff: ios/chrome/browser/passwords/resources/password_controller.js

Issue 2646733007: Fix unhandled SecurityException in iOS password_controller (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/passwords/resources/password_controller.js
diff --git a/ios/chrome/browser/passwords/resources/password_controller.js b/ios/chrome/browser/passwords/resources/password_controller.js
index 6599b257827cc6c490f1cc3509579003eab5709a..7c4b8b9c65b8ce48f47c57169444776e78348760 100644
--- a/ios/chrome/browser/passwords/resources/password_controller.js
+++ b/ios/chrome/browser/passwords/resources/password_controller.js
@@ -214,7 +214,12 @@ if (__gCrWeb && !__gCrWeb['fillPasswordForm']) {
*/
__gCrWeb.fillPasswordFormWithData =
function(formData, username, password, win, opt_normalizedOrigin) {
- var doc = win.document;
+ var doc = null;
+
+ try {
+ doc = win.document;
+ } catch(e) {
+ }
// If unable to read the 'document' property from a frame in a different
// origin, do nothing.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698