|
|
DescriptionFix subframe loads with RenderViewTest when PlzNavigate is enabled.
While main frame loads already disabled the load being handled by the browser (in RenderViewTest::LoadHTML), requests from subframes are created inside Blink and so were missing that flag. Fix this by adding it in TestRenderFrame. Note this only modifies WebURLRequest::setCheckForBrowserSideNavigation, so that the other codepaths that check IsBrowserSideNavigationEnabled don't see any behavior change.
This fixes
ThreatDOMDetailsTest.Everything
with PlzNavigate.
BUG=504347
Committed: https://crrev.com/4a5ed276b2e0cfa9a1d76fa1ca2ea296601837ef
Cr-Commit-Position: refs/heads/master@{#437654}
Patch Set 1 #Patch Set 2 : fix clang #Patch Set 3 : more #Patch Set 4 : fix tests #
Total comments: 1
Patch Set 5 : nit #
Total comments: 2
Messages
Total messages: 43 (35 generated)
Patchset #1 (id:1) has been deleted
The CQ bit was checked by jam@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Fix subframe loads with RenderViewTest when PlzNavigate is enabled. While main frame loads already disabled the load being handled by the browser (in RenderViewTest::LoadHTML), requests from subframes were being created inside Blink and so were missing that flag. Add it in TestRenderFrame. This fixes ThreatDOMDetailsTest.Everything with PlzNavigate. BUG=504347 ========== to ========== Fix subframe loads with RenderViewTest when PlzNavigate is enabled. While main frame loads already disabled the load being handled by the browser (in RenderViewTest::LoadHTML), requests from subframes were being created inside Blink and so were missing that flag. Add it in TestRenderFrame. This fixes ThreatDOMDetailsTest.Everything with PlzNavigate. BUG=504347 ==========
jam@chromium.org changed reviewers: + ananta@chromium.org
Description was changed from ========== Fix subframe loads with RenderViewTest when PlzNavigate is enabled. While main frame loads already disabled the load being handled by the browser (in RenderViewTest::LoadHTML), requests from subframes were being created inside Blink and so were missing that flag. Add it in TestRenderFrame. This fixes ThreatDOMDetailsTest.Everything with PlzNavigate. BUG=504347 ========== to ========== Fix subframe loads with RenderViewTest when PlzNavigate is enabled. While main frame loads already disabled the load being handled by the browser (in RenderViewTest::LoadHTML), requests from subframes were being created inside Blink and so were missing that flag. Add it in TestRenderFrame. Note this only modifies WebURLRequest::setCheckForBrowserSideNavigation, so that the other codepaths that check IsBrowserSideNavigationEnabled don't see any behavior change. This fixes ThreatDOMDetailsTest.Everything with PlzNavigate. BUG=504347 ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_a...) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by jam@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linu...) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by jam@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by jam@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Fix subframe loads with RenderViewTest when PlzNavigate is enabled. While main frame loads already disabled the load being handled by the browser (in RenderViewTest::LoadHTML), requests from subframes were being created inside Blink and so were missing that flag. Add it in TestRenderFrame. Note this only modifies WebURLRequest::setCheckForBrowserSideNavigation, so that the other codepaths that check IsBrowserSideNavigationEnabled don't see any behavior change. This fixes ThreatDOMDetailsTest.Everything with PlzNavigate. BUG=504347 ========== to ========== Fix subframe loads with RenderViewTest when PlzNavigate is enabled. While main frame loads already disabled the load being handled by the browser (in RenderViewTest::LoadHTML), requests from subframes are created inside Blink and so were missing that flag. Fix this by adding it in TestRenderFrame. Note this only modifies WebURLRequest::setCheckForBrowserSideNavigation, so that the other codepaths that check IsBrowserSideNavigationEnabled don't see any behavior change. This fixes ThreatDOMDetailsTest.Everything with PlzNavigate. BUG=504347 ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
jem456.vasishta@gmail.com changed reviewers: + jem456.vasishta@gmail.com
https://codereview.chromium.org/2557223002/diff/80001/content/test/test_rende... File content/test/test_render_frame.cc (right): https://codereview.chromium.org/2557223002/diff/80001/content/test/test_rende... content/test/test_render_frame.cc:82: // will be created inside Blink and it wono't have this flag set. won't *
The CQ bit was checked by jam@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: 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_...)
https://codereview.chromium.org/2557223002/diff/100001/content/test/test_rend... File content/test/test_render_frame.cc (right): https://codereview.chromium.org/2557223002/diff/100001/content/test/test_rend... content/test/test_render_frame.cc:77: info.urlRequest.checkForBrowserSideNavigation() && is this check correct? Should it be !checkforBrowser?
https://codereview.chromium.org/2557223002/diff/100001/content/test/test_rend... File content/test/test_render_frame.cc (right): https://codereview.chromium.org/2557223002/diff/100001/content/test/test_rend... content/test/test_render_frame.cc:77: info.urlRequest.checkForBrowserSideNavigation() && On 2016/12/08 22:57:05, ananta wrote: > is this check correct? Should it be !checkforBrowser? The purpose of this if statement is to disable plznavigate for subframe requests, which is done by setting CheckForBrowserSideNavigation=false. If "!checkforBrowser" is the check, then that's already the case.
jam@chromium.org changed reviewers: - jem456.vasishta@gmail.com
The CQ bit was checked by jam@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
lgtm
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by jam@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 100001, "attempt_start_ts": 1481314675810460, "parent_rev": "8ffedf76b8ce7678b0ba2d72fb29db8ad94e1a6f", "commit_rev": "2cef54680b0033d4fcf357c3b1ccd6d669fcd0d3"}
Message was sent while issue was closed.
Description was changed from ========== Fix subframe loads with RenderViewTest when PlzNavigate is enabled. While main frame loads already disabled the load being handled by the browser (in RenderViewTest::LoadHTML), requests from subframes are created inside Blink and so were missing that flag. Fix this by adding it in TestRenderFrame. Note this only modifies WebURLRequest::setCheckForBrowserSideNavigation, so that the other codepaths that check IsBrowserSideNavigationEnabled don't see any behavior change. This fixes ThreatDOMDetailsTest.Everything with PlzNavigate. BUG=504347 ========== to ========== Fix subframe loads with RenderViewTest when PlzNavigate is enabled. While main frame loads already disabled the load being handled by the browser (in RenderViewTest::LoadHTML), requests from subframes are created inside Blink and so were missing that flag. Fix this by adding it in TestRenderFrame. Note this only modifies WebURLRequest::setCheckForBrowserSideNavigation, so that the other codepaths that check IsBrowserSideNavigationEnabled don't see any behavior change. This fixes ThreatDOMDetailsTest.Everything with PlzNavigate. BUG=504347 Review-Url: https://codereview.chromium.org/2557223002 ==========
Message was sent while issue was closed.
Committed patchset #5 (id:100001)
Message was sent while issue was closed.
Description was changed from ========== Fix subframe loads with RenderViewTest when PlzNavigate is enabled. While main frame loads already disabled the load being handled by the browser (in RenderViewTest::LoadHTML), requests from subframes are created inside Blink and so were missing that flag. Fix this by adding it in TestRenderFrame. Note this only modifies WebURLRequest::setCheckForBrowserSideNavigation, so that the other codepaths that check IsBrowserSideNavigationEnabled don't see any behavior change. This fixes ThreatDOMDetailsTest.Everything with PlzNavigate. BUG=504347 Review-Url: https://codereview.chromium.org/2557223002 ========== to ========== Fix subframe loads with RenderViewTest when PlzNavigate is enabled. While main frame loads already disabled the load being handled by the browser (in RenderViewTest::LoadHTML), requests from subframes are created inside Blink and so were missing that flag. Fix this by adding it in TestRenderFrame. Note this only modifies WebURLRequest::setCheckForBrowserSideNavigation, so that the other codepaths that check IsBrowserSideNavigationEnabled don't see any behavior change. This fixes ThreatDOMDetailsTest.Everything with PlzNavigate. BUG=504347 Committed: https://crrev.com/4a5ed276b2e0cfa9a1d76fa1ca2ea296601837ef Cr-Commit-Position: refs/heads/master@{#437654} ==========
Message was sent while issue was closed.
Patchset 5 (id:??) landed as https://crrev.com/4a5ed276b2e0cfa9a1d76fa1ca2ea296601837ef Cr-Commit-Position: refs/heads/master@{#437654} |