password_controller.js relies on old non-standard DOM behavior |
|||||||||
Issue description
password_controller.js has this code:
__gCrWeb.fillPasswordFormWithData =
function(formData, username, password, win, opt_normalizedOrigin) {
var doc = win.document;
// If unable to read the 'document' property from a frame in a different
// origin, do nothing.
if (!doc) {
return false;
}
But by spec, invoking win.document on a cross-origin iframe is supposed to throw a SecurityException, not return undefined. This was fixed in WebKit 5 months ago: https://trac.webkit.org/changeset/205136
I'll put up a trivial patch to attempt to fix this.
,
Jan 20 2017
https://codereview.chromium.org/2646733007/
,
Jan 25 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/e5222b703090cfb4e426db7c384a0fd47c980474 commit e5222b703090cfb4e426db7c384a0fd47c980474 Author: rbyers <rbyers@chromium.org> Date: Wed Jan 25 19:34:02 2017 Fix unhandled SecurityException in iOS password_controller BUG= 683385 Review-Url: https://codereview.chromium.org/2646733007 Cr-Commit-Position: refs/heads/master@{#446086} [modify] https://crrev.com/e5222b703090cfb4e426db7c384a0fd47c980474/ios/chrome/browser/passwords/resources/password_controller.js
,
Jan 25 2017
Thank you for fixing this.
,
Jan 27 2017
,
Jan 27 2017
Thank you for fixing this!
,
Jan 27 2017
Since this WebKit change is in iOS 10.3 beta, let's merge to M57 to ensure the fix is out in stable in time.
,
Jan 27 2017
Your change meets the bar and is auto-approved for M57. Please go ahead and merge the CL to branch 2987 manually. Please contact milestone owner if you have questions. Owners: amineer@(clank), cmasso@(bling), ketakid@(cros), govind@(desktop) For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jan 27 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/a849bed81fd7ca725791f96f74a48fdb0984a85f commit a849bed81fd7ca725791f96f74a48fdb0984a85f Author: Rick Byers <rbyers@chromium.org> Date: Fri Jan 27 17:32:50 2017 Fix unhandled SecurityException in iOS password_controller BUG= 683385 Review-Url: https://codereview.chromium.org/2646733007 Cr-Commit-Position: refs/heads/master@{#446086} (cherry picked from commit e5222b703090cfb4e426db7c384a0fd47c980474) Review-Url: https://codereview.chromium.org/2664493003 . Cr-Commit-Position: refs/branch-heads/2987@{#149} Cr-Branched-From: ad51088c0e8776e8dcd963dbe752c4035ba6dab6-refs/heads/master@{#444943} [modify] https://crrev.com/a849bed81fd7ca725791f96f74a48fdb0984a85f/ios/chrome/browser/passwords/resources/password_controller.js
,
Jan 27 2017
,
Nov 29
|
|||||||||
►
Sign in to add a comment |
|||||||||
Comment 1 by rbyers@chromium.org
, Jan 20 2017