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

Issue 2292773002: Disallow WKBackForwardListItem navigations for pushState pages. (Closed)

Created:
4 years, 3 months ago by kkhorimoto
Modified:
4 years, 3 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Disallow WKBackForwardListItem navigations for pushState pages. The WKWebViewConfiguration's |userScripts| are not injected when navigating via BFLI to a page created using window.history.pushState. This means that calling window.history navigation functions will invoke WKWebView's non-overridden implementations, causing a mismatch between the WKBackForwardList and NavigationManager. BUG=none Committed: https://crrev.com/540983ab54c3259bb9b548bfd8c1d95367fa15f2 Cr-Commit-Position: refs/heads/master@{#415114}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -0 lines) Patch
M ios/web/web_state/ui/crw_web_controller.mm View 1 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
kkhorimoto
This is a fix for b/30315469, which I've cc'd you on.
4 years, 3 months ago (2016-08-29 23:58:24 UTC) #2
Eugene But (OOO till 7-30)
Code lgtm. Are you sure that the comment is accurate? https://codereview.chromium.org/2292773002/diff/1/ios/web/web_state/ui/crw_web_controller.mm File ios/web/web_state/ui/crw_web_controller.mm (right): https://codereview.chromium.org/2292773002/diff/1/ios/web/web_state/ui/crw_web_controller.mm#newcode1858 ...
4 years, 3 months ago (2016-08-30 00:48:57 UTC) #3
kkhorimoto
https://codereview.chromium.org/2292773002/diff/1/ios/web/web_state/ui/crw_web_controller.mm File ios/web/web_state/ui/crw_web_controller.mm (right): https://codereview.chromium.org/2292773002/diff/1/ios/web/web_state/ui/crw_web_controller.mm#newcode1858 ios/web/web_state/ui/crw_web_controller.mm:1858: // injected. As a result, the WKBackForwardList will become ...
4 years, 3 months ago (2016-08-30 00:54:41 UTC) #5
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/2292773002/20001
4 years, 3 months ago (2016-08-30 02:16:50 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-08-30 04:47:12 UTC) #10
commit-bot: I haz the power
4 years, 3 months ago (2016-08-30 04:48:36 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/540983ab54c3259bb9b548bfd8c1d95367fa15f2
Cr-Commit-Position: refs/heads/master@{#415114}

Powered by Google App Engine
This is Rietveld 408576698