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

Issue 2707263013: Don't recreate feature policy on fragment navigation (Closed)

Created:
3 years, 10 months ago by iclelland
Modified:
3 years, 9 months ago
Reviewers:
alexmos
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't recreate feature policy on fragment navigation. This looks like just an optimization for now: the policy is currently recreated on every navigation from the parent policy and the document's own headers, and this eliminates that work when the navigation is just within the page. It will be more important soon, though, once per-frame policies are implemented. At that point, this also will prevent the policy from changing, if the embedding iframe attributes have been updated since the document became active. BUG=698481 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix condition, add tests #

Total comments: 2

Patch Set 3 : Simplify test navigation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -1 line) Patch
M content/browser/frame_host/navigator_impl.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/frame_host/navigator_impl_unittest.cc View 1 2 1 chunk +45 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (18 generated)
iclelland
3 years, 10 months ago (2017-02-24 19:22:04 UTC) #6
alexmos
https://codereview.chromium.org/2707263013/diff/1/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://codereview.chromium.org/2707263013/diff/1/content/browser/frame_host/navigator_impl.cc#newcode688 content/browser/frame_host/navigator_impl.cc:688: if (!did_navigate) A couple of concerns with this. First, ...
3 years, 10 months ago (2017-02-24 21:21:12 UTC) #9
iclelland
On 2017/02/24 21:21:12, alexmos wrote: > https://codereview.chromium.org/2707263013/diff/1/content/browser/frame_host/navigator_impl.cc > File content/browser/frame_host/navigator_impl.cc (right): > > https://codereview.chromium.org/2707263013/diff/1/content/browser/frame_host/navigator_impl.cc#newcode688 > ...
3 years, 9 months ago (2017-02-28 23:57:43 UTC) #10
iclelland
alexmos, can you PTAL again? https://codereview.chromium.org/2707263013/diff/1/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://codereview.chromium.org/2707263013/diff/1/content/browser/frame_host/navigator_impl.cc#newcode688 content/browser/frame_host/navigator_impl.cc:688: if (!did_navigate) On 2017/02/24 ...
3 years, 9 months ago (2017-03-03 15:26:31 UTC) #13
alexmos
LGTM, thanks for adding these tests! Is there a more general feature policy bug number ...
3 years, 9 months ago (2017-03-04 01:33:25 UTC) #16
iclelland
https://codereview.chromium.org/2707263013/diff/20001/content/browser/frame_host/navigator_impl_unittest.cc File content/browser/frame_host/navigator_impl_unittest.cc (right): https://codereview.chromium.org/2707263013/diff/20001/content/browser/frame_host/navigator_impl_unittest.cc#newcode1260 content/browser/frame_host/navigator_impl_unittest.cc:1260: main_test_rfh()->SendNavigate(0, true, kUrl2); On 2017/03/04 01:33:25, alexmos wrote: > ...
3 years, 9 months ago (2017-03-04 05:43:10 UTC) #18
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/2707263013/40001
3 years, 9 months ago (2017-03-04 05:43:37 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/131049)
3 years, 9 months ago (2017-03-04 07:05:17 UTC) #23
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/2707263013/40001
3 years, 9 months ago (2017-03-04 13:24:37 UTC) #25
commit-bot: I haz the power
Prior attempt to commit was detected, but we were not able to check whether the ...
3 years, 9 months ago (2017-03-04 14:06:04 UTC) #28
iclelland
3 years, 9 months ago (2017-03-05 03:57:50 UTC) #29
Message was sent while issue was closed.
On 2017/03/04 14:06:04, commit-bot: I haz the power wrote:
> Prior attempt to commit was detected, but we were not able to check whether
the
> issue was successfully committed. Please check Git history manually and
re-check
> CQ or close this issue as needed.

Closing issue, patch appears to have been successfully committed as
https://crrev.com/f46f88a56a012c3633a76662cc2f1735c42d9174

Powered by Google App Engine
This is Rietveld 408576698