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

Issue 2755123002: Fix Find in Page on iOS 10.3. (Closed)

Created:
3 years, 9 months ago by stkhapugin
Modified:
3 years, 9 months ago
CC:
chromium-reviews, ios-reviews+chrome_chromium.org, ios-reviews_chromium.org, pkl (ping after 24h if needed), noyau+watch_chromium.org, marq+watch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix Find in Page on iOS 10.3. In iOS 10.3, an error is generated when trying to find in page on a page with iframe: SecurityError (DOM Exception 18): Blocked a frame with origin "https://w ww.reddit.com" from accessing a frame with origin "https://www.redditmed ia.com". Protocols, domains, and ports must match. As a result, the search results are not highlighted on the page. The fix is wrapping the offending line in try/catch. BUG=702566 TEST=On iOS 10.3 device, open cnn.com, select tools>Find in Page" and type any string that is present on the page. The string should be found and highglighted, and the number of results should be correct, and next/previous buttons should scroll the page to the next/prev result. Review-Url: https://codereview.chromium.org/2755123002 Cr-Commit-Position: refs/heads/master@{#457845} Committed: https://chromium.googlesource.com/chromium/src/+/2991f43a94bbdb2eb798a8f256b67b5b3865f129

Patch Set 1 #

Total comments: 4

Patch Set 2 : comment added #

Patch Set 3 : space #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -3 lines) Patch
M ios/chrome/browser/find_in_page/resources/find_in_page.js View 1 2 1 chunk +15 lines, -3 lines 0 comments Download

Messages

Total messages: 29 (16 generated)
stkhapugin
PTAL
3 years, 9 months ago (2017-03-17 15:04:30 UTC) #5
justincohen
lgtm https://codereview.chromium.org/2755123002/diff/1/ios/chrome/browser/find_in_page/resources/find_in_page.js File ios/chrome/browser/find_in_page/resources/find_in_page.js (right): https://codereview.chromium.org/2755123002/diff/1/ios/chrome/browser/find_in_page/resources/find_in_page.js#newcode956 ios/chrome/browser/find_in_page/resources/find_in_page.js:956: try{ nit space
3 years, 9 months ago (2017-03-17 15:05:34 UTC) #7
justincohen
https://codereview.chromium.org/2755123002/diff/1/ios/chrome/browser/find_in_page/resources/find_in_page.js File ios/chrome/browser/find_in_page/resources/find_in_page.js (right): https://codereview.chromium.org/2755123002/diff/1/ios/chrome/browser/find_in_page/resources/find_in_page.js#newcode961 ios/chrome/browser/find_in_page/resources/find_in_page.js:961: } catch (e) { probably best to explain what ...
3 years, 9 months ago (2017-03-17 15:06:25 UTC) #8
stkhapugin
thanks ptal https://codereview.chromium.org/2755123002/diff/1/ios/chrome/browser/find_in_page/resources/find_in_page.js File ios/chrome/browser/find_in_page/resources/find_in_page.js (right): https://codereview.chromium.org/2755123002/diff/1/ios/chrome/browser/find_in_page/resources/find_in_page.js#newcode956 ios/chrome/browser/find_in_page/resources/find_in_page.js:956: try{ On 2017/03/17 15:05:34, justincohen (OOO until ...
3 years, 9 months ago (2017-03-17 15:20:52 UTC) #11
justincohen
still lgtm
3 years, 9 months ago (2017-03-17 15:25:08 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2755123002/40001
3 years, 9 months ago (2017-03-17 15:27:06 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/388145)
3 years, 9 months ago (2017-03-17 15:34:46 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2755123002/40001
3 years, 9 months ago (2017-03-17 15:44:25 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/388163)
3 years, 9 months ago (2017-03-17 15:53:42 UTC) #20
stkhapugin
+sdefresne for OWNERS, PTAL
3 years, 9 months ago (2017-03-17 15:55:02 UTC) #22
rohitrao (ping after 24h)
lgtm
3 years, 9 months ago (2017-03-17 18:18:29 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2755123002/40001
3 years, 9 months ago (2017-03-17 18:57:31 UTC) #26
commit-bot: I haz the power
3 years, 9 months ago (2017-03-17 19:18:13 UTC) #29
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/2991f43a94bbdb2eb798a8f256b6...

Powered by Google App Engine
This is Rietveld 408576698