Autoplay: move navigation activation propagation logic to browser process. [chromium/src : master]

0 views
Skip to first unread message

Mounir Lamouri (Gerrit)

unread,
Jan 18, 2018, 12:08:48 PM1/18/18
to blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, creis...@chromium.org, feature-me...@chromium.org, gavinp...@chromium.org, ipc-securi...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, nasko+c...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Jochen Eisinger, Camille Lamy, Daniel Cheng, Commit Bot, Aaron Boodman, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek, Nate Chapin

Can you PTAL at:

  • clamy: content/
  • jochen: chrome/
  • dcheng: content/common/ and Blink

Thanks :)

View Change

    To view, visit change 873450. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-MessageType: comment
    Gerrit-Change-Id: I25836f8a4e9aca5a60dc095c6d0a81d480027124
    Gerrit-Change-Number: 873450
    Gerrit-PatchSet: 3
    Gerrit-Owner: Mounir Lamouri <mlam...@chromium.org>
    Gerrit-Reviewer: Camille Lamy <cl...@chromium.org>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Jochen Eisinger <joc...@chromium.org>
    Gerrit-Reviewer: Mounir Lamouri <mlam...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Commit Bot <commi...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
    Gerrit-CC: Nate Chapin <jap...@chromium.org>
    Gerrit-Comment-Date: Thu, 18 Jan 2018 17:08:42 +0000
    Gerrit-HasComments: No
    Gerrit-HasLabels: No

    Daniel Cheng (Gerrit)

    unread,
    Jan 19, 2018, 5:59:56 AM1/19/18
    to Mounir Lamouri, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, creis...@chromium.org, feature-me...@chromium.org, gavinp...@chromium.org, ipc-securi...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, nasko+c...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Jochen Eisinger, Camille Lamy, Commit Bot, Aaron Boodman, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek, Nate Chapin

    View Change

    3 comments:

    To view, visit change 873450. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-MessageType: comment
    Gerrit-Change-Id: I25836f8a4e9aca5a60dc095c6d0a81d480027124
    Gerrit-Change-Number: 873450
    Gerrit-PatchSet: 3
    Gerrit-Owner: Mounir Lamouri <mlam...@chromium.org>
    Gerrit-Reviewer: Camille Lamy <cl...@chromium.org>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Jochen Eisinger <joc...@chromium.org>
    Gerrit-Reviewer: Mounir Lamouri <mlam...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Commit Bot <commi...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
    Gerrit-CC: Nate Chapin <jap...@chromium.org>
    Gerrit-Comment-Date: Fri, 19 Jan 2018 10:59:50 +0000
    Gerrit-HasComments: Yes
    Gerrit-HasLabels: No

    Camille Lamy (Gerrit)

    unread,
    Jan 19, 2018, 8:16:59 AM1/19/18
    to Mounir Lamouri, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, creis...@chromium.org, feature-me...@chromium.org, gavinp...@chromium.org, ipc-securi...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, nasko+c...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Daniel Cheng, Jochen Eisinger, Commit Bot, Aaron Boodman, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek, Nate Chapin

    Thanks! A few comments below, generally the CL looks ok, but it seems you have a few tests failing.

    View Change

    5 comments:

      • Can we create an enum for this arg? A bool param to a method that already takes so many other params […]

        Could we move this param to RequestNavigationParams? This is the struct that takes params initialized in the browser process that the renderer needs to commit the navigation, so it would be a good fit for this member.

    To view, visit change 873450. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-MessageType: comment
    Gerrit-Change-Id: I25836f8a4e9aca5a60dc095c6d0a81d480027124
    Gerrit-Change-Number: 873450
    Gerrit-PatchSet: 3
    Gerrit-Owner: Mounir Lamouri <mlam...@chromium.org>
    Gerrit-Reviewer: Camille Lamy <cl...@chromium.org>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Jochen Eisinger <joc...@chromium.org>
    Gerrit-Reviewer: Mounir Lamouri <mlam...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Commit Bot <commi...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
    Gerrit-CC: Nate Chapin <jap...@chromium.org>
    Gerrit-Comment-Date: Fri, 19 Jan 2018 13:16:54 +0000
    Gerrit-HasComments: Yes
    Gerrit-HasLabels: No

    Mounir Lamouri (Gerrit)

    unread,
    Jan 19, 2018, 11:24:49 AM1/19/18
    to blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, creis...@chromium.org, feature-me...@chromium.org, gavinp...@chromium.org, ipc-securi...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, nasko+c...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Camille Lamy, Daniel Cheng, Jochen Eisinger, Commit Bot, Aaron Boodman, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek, Nate Chapin

    Comments applied.

    I looked into the issues and it is related to the user gesture bit from the browser process now sent to the renderer. That's why I added the #ifdef OS_ANDROID but it's unclear if that's the right fix.

    clamy@, do you have a suggestion that could allow me to use the user gesture bit without changing the current behaviour too much?

    View Change

    7 comments:

      • nit: put this above the if defined.

      • Could we move this param to RequestNavigationParams? This is the struct that takes params initialize […]

        I followed Camille's advice.

    • File content/renderer/render_frame_impl.cc:

      • Patch Set #3, Line 3086: // navigation right away.

        Why Android-specific?

        `has_user_gesture` only works on Android today. I had a few tests failures just because of this. I realise that I might no longer need to expose this to the renderer so I will see if I can simply prevent the bit to be set in the renderer instead of #ifdef this.

    To view, visit change 873450. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-MessageType: comment
    Gerrit-Change-Id: I25836f8a4e9aca5a60dc095c6d0a81d480027124
    Gerrit-Change-Number: 873450
    Gerrit-PatchSet: 4
    Gerrit-Owner: Mounir Lamouri <mlam...@chromium.org>
    Gerrit-Reviewer: Camille Lamy <cl...@chromium.org>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Jochen Eisinger <joc...@chromium.org>
    Gerrit-Reviewer: Mounir Lamouri <mlam...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Commit Bot <commi...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
    Gerrit-CC: Nate Chapin <jap...@chromium.org>
    Gerrit-Comment-Date: Fri, 19 Jan 2018 16:24:43 +0000
    Gerrit-HasComments: Yes
    Gerrit-HasLabels: No

    Daniel Cheng (Gerrit)

    unread,
    Jan 20, 2018, 12:01:18 AM1/20/18
    to Mounir Lamouri, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, creis...@chromium.org, feature-me...@chromium.org, gavinp...@chromium.org, ipc-securi...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, nasko+c...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Camille Lamy, Jochen Eisinger, Commit Bot, Aaron Boodman, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek, Nate Chapin

    View Change

    6 comments:

    To view, visit change 873450. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-MessageType: comment
    Gerrit-Change-Id: I25836f8a4e9aca5a60dc095c6d0a81d480027124
    Gerrit-Change-Number: 873450
    Gerrit-PatchSet: 4
    Gerrit-Owner: Mounir Lamouri <mlam...@chromium.org>
    Gerrit-Reviewer: Camille Lamy <cl...@chromium.org>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Jochen Eisinger <joc...@chromium.org>
    Gerrit-Reviewer: Mounir Lamouri <mlam...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Commit Bot <commi...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
    Gerrit-CC: Nate Chapin <jap...@chromium.org>
    Gerrit-Comment-Date: Sat, 20 Jan 2018 05:01:15 +0000
    Gerrit-HasComments: Yes
    Gerrit-HasLabels: No

    Mounir Lamouri (Gerrit)

    unread,
    Jan 22, 2018, 11:32:20 AM1/22/18
    to blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, creis...@chromium.org, feature-me...@chromium.org, gavinp...@chromium.org, ipc-securi...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, nasko+c...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Daniel Cheng, Camille Lamy, Jochen Eisinger, Commit Bot, Aaron Boodman, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek, Nate Chapin

    PTAL :)

    View Change

    7 comments:

      • Patch Set #4, Line 810: void OpenURLBlockUntilNavigationComplete(Shell* shell, const GURL& url) {

        Just curious: why did we have to write a new test helper for this?

      • Patch Set #4, Line 291:

          // True if a navigation is following the rules of user activation propagation.
        // This is different from |has_user_gesture| (in CommonNavigationParams) as
        // the activation may have happened before the navigation was triggered, for
        // example.
        bool was_activated;

      • Will these continue to remain distinct concepts for the forseeable future? It's not always clear to […]

        I think the distinction here isn't activation vs gesture but whether there was an activation prior to the navigation or to start the navigation. `was_activated` will answer the former question. `user_gesture` will answer the latter. At the moment, `was_activated` is used by autoplay and vibration API I believe.

    • File content/common/navigation_params.cc:

      • Btw, how likely will we be able to implement this? It would be nice to move this over to Document if […]

        I don't think we don't want to implement stickyness on subframes. Either way, I'm not sure we should implement this as part of this CL as I would like to attempt a merge :(

    To view, visit change 873450. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-MessageType: comment
    Gerrit-Change-Id: I25836f8a4e9aca5a60dc095c6d0a81d480027124
    Gerrit-Change-Number: 873450
    Gerrit-PatchSet: 5
    Gerrit-Owner: Mounir Lamouri <mlam...@chromium.org>
    Gerrit-Reviewer: Camille Lamy <cl...@chromium.org>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Jochen Eisinger <joc...@chromium.org>
    Gerrit-Reviewer: Mounir Lamouri <mlam...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Commit Bot <commi...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
    Gerrit-CC: Nate Chapin <jap...@chromium.org>
    Gerrit-Comment-Date: Mon, 22 Jan 2018 16:32:17 +0000
    Gerrit-HasComments: Yes
    Gerrit-HasLabels: No

    Daniel Cheng (Gerrit)

    unread,
    Jan 23, 2018, 5:44:51 AM1/23/18
    to Mounir Lamouri, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, creis...@chromium.org, feature-me...@chromium.org, gavinp...@chromium.org, ipc-securi...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, nasko+c...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Camille Lamy, Jochen Eisinger, Commit Bot, Aaron Boodman, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek, Nate Chapin

    View Change

    6 comments:

      • I've added a comment explaining. […]

        IIRC, we have an initiator origin on BeginNavigationParams, which is set if it's a renderer-initiated navigation (which ought to cover middle-click and ctrl+click). I think it's not on navigation handle atm, but I don't think it would be unreasonable to add it if clamy@ is OK with it. Then we'd only need to fall back to referrer for the context menu, or find some other way of plumbing it.

        I feel a bit uncomfortable with the current approach, because it seems like referrer is something that's easy for the page to inadvertently affect.

    • File content/common/navigation_params.h:

      • Patch Set #4, Line 291:

          // True if a navigation is following the rules of user activation propagation.
        // This is different from |has_user_gesture| (in CommonNavigationParams) as
        // the activation may have happened before the navigation was triggered, for
        // example.
        bool was_activated;

      • I think the distinction here isn't activation vs gesture but whether there was an activation prior t […]

        Can you update this comment to include the explanation you just gave me? =)

        I'm still a bit confused about when one might want to use one vs the other, but it still helps.

    • File content/common/navigation_params.cc:

      • Wouldn't it be better to have all the members in-class or none instead of a mix? I also usually avoi […]

        I don't feel strongly about this (and I'm not an OWNER of this particular code), but I think it's OK to have internal inconsistency as we incrementally migrate over =)

    • File third_party/WebKit/Source/core/loader/DocumentLoader.cpp:

      • I don't think we don't want to implement stickyness on subframes. […]

        Fair enough—to be clear, I wasn't asking for changes in this CL, just trying to get an overall feeling of where these patches will go.

    To view, visit change 873450. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-MessageType: comment
    Gerrit-Change-Id: I25836f8a4e9aca5a60dc095c6d0a81d480027124
    Gerrit-Change-Number: 873450
    Gerrit-PatchSet: 5
    Gerrit-Owner: Mounir Lamouri <mlam...@chromium.org>
    Gerrit-Reviewer: Camille Lamy <cl...@chromium.org>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Jochen Eisinger <joc...@chromium.org>
    Gerrit-Reviewer: Mounir Lamouri <mlam...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Commit Bot <commi...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
    Gerrit-CC: Nate Chapin <jap...@chromium.org>
    Gerrit-Comment-Date: Tue, 23 Jan 2018 10:44:47 +0000
    Gerrit-HasComments: Yes
    Gerrit-HasLabels: No

    Mounir Lamouri (Gerrit)

    unread,
    Jan 23, 2018, 6:04:25 AM1/23/18
    to blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, creis...@chromium.org, feature-me...@chromium.org, gavinp...@chromium.org, ipc-securi...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, nasko+c...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Daniel Cheng, Camille Lamy, Jochen Eisinger, Commit Bot, Aaron Boodman, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek, Nate Chapin

    View Change

    9 comments:

      • Hmm, this is `has_user_gesture` (markdown format, so `foo` instead of |foo|). Do you want me to remove the marker?

      • What sort of confusion does it create? Does it cause tests that assume no user gesture due to a test […]

        clamy@, you told me this is something your team was looking into. Can I assign a TODO on your name or is there a bug I can link to?

    • File content/browser/frame_host/navigation_request.cc:

      • IIRC, we have an initiator origin on BeginNavigationParams, which is set if it's a renderer-initiate […]

        I agree, and that's why I wanted to use the `frame_tree_node_` URL when possible. For the sake of landing quickly and because it will most likely be fine in 99% of cases, can we stick with this and I will do the changes in a follow-up? I feel that the longer we wait, the harder it will be to merge and today middle click will never work as expected instead of not working in rare edge cases.

    • File content/browser/site_per_process_browsertest.cc:

      • Patch Set #4, Line 291:

          // True if a navigation is following the rules of user activation propagation.
        // This is different from |has_user_gesture| (in CommonNavigationParams) as
        // the activation may have happened before the navigation was triggered, for
        // example.
        bool was_activated;

      • I don't feel strongly about this (and I'm not an OWNER of this particular code), but I think it's OK […]

        Will do a follow-up to move all of this as in-class initialized. Hopefully, that's the best compromise :)

    • File content/renderer/render_frame_impl.cc:

      • Fair enough—to be clear, I wasn't asking for changes in this CL, just trying to get an overall feeli […]

        Ack

    To view, visit change 873450. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-MessageType: comment
    Gerrit-Change-Id: I25836f8a4e9aca5a60dc095c6d0a81d480027124
    Gerrit-Change-Number: 873450
    Gerrit-PatchSet: 5
    Gerrit-Owner: Mounir Lamouri <mlam...@chromium.org>
    Gerrit-Reviewer: Camille Lamy <cl...@chromium.org>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Jochen Eisinger <joc...@chromium.org>
    Gerrit-Reviewer: Mounir Lamouri <mlam...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Commit Bot <commi...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
    Gerrit-CC: Nate Chapin <jap...@chromium.org>
    Gerrit-Comment-Date: Tue, 23 Jan 2018 11:04:20 +0000
    Gerrit-HasComments: Yes
    Gerrit-HasLabels: No

    Daniel Cheng (Gerrit)

    unread,
    Jan 23, 2018, 6:54:51 AM1/23/18
    to Mounir Lamouri, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, creis...@chromium.org, feature-me...@chromium.org, gavinp...@chromium.org, ipc-securi...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, nasko+c...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Camille Lamy, Jochen Eisinger, Commit Bot, Aaron Boodman, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek, Nate Chapin

    View Change

    4 comments:

      • I agree, and that's why I wanted to use the `frame_tree_node_` URL when possible. […]

        Well, it's because this is going to M65 that I'm nervous though. =) I guess this is OK, but we should try to clean it up. It's a bit messy and hard to understand down the road.

      • Patch Set #4, Line 816:

          //    have to follow the referrer. It means that the activation might not be
        // transmitted if it should have.
        request_params_.was_activated = false;
        if (ShouldPropagateUserActivation(
        frame_tree_node_->current_origin(),
        url::Origin::Create(navigation_ha

        Similarly, I'd suggest checking (navigation_handle_->HasUserGesture() && navigation_handle_->IsRendererInitiated()) || handle_navigation_->WasStartedFromContextMenu() in the outer if, and then check the origin in the inner if.

    To view, visit change 873450. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-MessageType: comment
    Gerrit-Change-Id: I25836f8a4e9aca5a60dc095c6d0a81d480027124
    Gerrit-Change-Number: 873450
    Gerrit-PatchSet: 6
    Gerrit-Owner: Mounir Lamouri <mlam...@chromium.org>
    Gerrit-Reviewer: Camille Lamy <cl...@chromium.org>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Jochen Eisinger <joc...@chromium.org>
    Gerrit-Reviewer: Mounir Lamouri <mlam...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Commit Bot <commi...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
    Gerrit-CC: Nate Chapin <jap...@chromium.org>
    Gerrit-Comment-Date: Tue, 23 Jan 2018 11:54:45 +0000
    Gerrit-HasComments: Yes
    Gerrit-HasLabels: No

    Mounir Lamouri (Gerrit)

    unread,
    Jan 23, 2018, 7:32:46 AM1/23/18
    to blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, creis...@chromium.org, feature-me...@chromium.org, gavinp...@chromium.org, ipc-securi...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, nasko+c...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Daniel Cheng, Camille Lamy, Jochen Eisinger, Commit Bot, Aaron Boodman, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek, Nate Chapin

    PTAL

    View Change

    4 comments:

      • I would suggest ordering these checks so the origin check (which is more expensive, since it require […]

        Done

      • Well, it's because this is going to M65 that I'm nervous though. […]

        Ack

      • Patch Set #4, Line 816:

          //    have to follow the referrer. It means that the activation might not be
        // transmitted if it should have.
        request_params_.was_activated = false;
        if (ShouldPropagateUserActivation(
        frame_tree_node_->current_origin(),
        url::Origin::Create(navigation_ha

      • Similarly, I'd suggest checking (navigation_handle_->HasUserGesture() && navigation_handle_->IsRende […]

        Done

    To view, visit change 873450. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-MessageType: comment
    Gerrit-Change-Id: I25836f8a4e9aca5a60dc095c6d0a81d480027124
    Gerrit-Change-Number: 873450
    Gerrit-PatchSet: 6
    Gerrit-Owner: Mounir Lamouri <mlam...@chromium.org>
    Gerrit-Reviewer: Camille Lamy <cl...@chromium.org>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Jochen Eisinger <joc...@chromium.org>
    Gerrit-Reviewer: Mounir Lamouri <mlam...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Commit Bot <commi...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
    Gerrit-CC: Nate Chapin <jap...@chromium.org>
    Gerrit-Comment-Date: Tue, 23 Jan 2018 12:32:39 +0000
    Gerrit-HasComments: Yes
    Gerrit-HasLabels: No

    Mounir Lamouri (Gerrit)

    unread,
    Jan 24, 2018, 7:36:38 AM1/24/18
    to blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, creis...@chromium.org, feature-me...@chromium.org, gavinp...@chromium.org, ipc-securi...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, nasko+c...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Daniel Cheng, Camille Lamy, Jochen Eisinger, Commit Bot, Aaron Boodman, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek, Nate Chapin

    sending again to try as it seems to be a network problem with goma

    Patch set 9:Commit-Queue +1

    View Change

      To view, visit change 873450. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: chromium/src
      Gerrit-Branch: master
      Gerrit-MessageType: comment
      Gerrit-Change-Id: I25836f8a4e9aca5a60dc095c6d0a81d480027124
      Gerrit-Change-Number: 873450
      Gerrit-PatchSet: 9
      Gerrit-Owner: Mounir Lamouri <mlam...@chromium.org>
      Gerrit-Reviewer: Camille Lamy <cl...@chromium.org>
      Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
      Gerrit-Reviewer: Jochen Eisinger <joc...@chromium.org>
      Gerrit-Reviewer: Mounir Lamouri <mlam...@chromium.org>
      Gerrit-CC: Aaron Boodman <a...@chromium.org>
      Gerrit-CC: Commit Bot <commi...@chromium.org>
      Gerrit-CC: Darin Fisher <da...@chromium.org>
      Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
      Gerrit-CC: Nate Chapin <jap...@chromium.org>
      Gerrit-Comment-Date: Wed, 24 Jan 2018 12:36:36 +0000
      Gerrit-HasComments: No
      Gerrit-HasLabels: Yes

      Mounir Lamouri (Gerrit)

      unread,
      Jan 24, 2018, 8:34:13 AM1/24/18
      to blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, creis...@chromium.org, feature-me...@chromium.org, gavinp...@chromium.org, ipc-securi...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, nasko+c...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Daniel Cheng, Camille Lamy, Jochen Eisinger, Commit Bot, Aaron Boodman, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek, Nate Chapin

      clamy@, dcheng@, jochen@, PTAL :)

      View Change

        To view, visit change 873450. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: master
        Gerrit-MessageType: comment
        Gerrit-Change-Id: I25836f8a4e9aca5a60dc095c6d0a81d480027124
        Gerrit-Change-Number: 873450
        Gerrit-PatchSet: 9
        Gerrit-Owner: Mounir Lamouri <mlam...@chromium.org>
        Gerrit-Reviewer: Camille Lamy <cl...@chromium.org>
        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
        Gerrit-Reviewer: Jochen Eisinger <joc...@chromium.org>
        Gerrit-Reviewer: Mounir Lamouri <mlam...@chromium.org>
        Gerrit-CC: Aaron Boodman <a...@chromium.org>
        Gerrit-CC: Commit Bot <commi...@chromium.org>
        Gerrit-CC: Darin Fisher <da...@chromium.org>
        Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
        Gerrit-CC: Nate Chapin <jap...@chromium.org>
        Gerrit-Comment-Date: Wed, 24 Jan 2018 13:34:11 +0000
        Gerrit-HasComments: No
        Gerrit-HasLabels: No

        Jochen Eisinger (Gerrit)

        unread,
        Jan 24, 2018, 1:55:29 PM1/24/18
        to Mounir Lamouri, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, creis...@chromium.org, feature-me...@chromium.org, gavinp...@chromium.org, ipc-securi...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, nasko+c...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Daniel Cheng, Camille Lamy, Commit Bot, Aaron Boodman, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek, Nate Chapin

        waiting for dcheng/clamy, as they know this code better

        Gerrit-Comment-Date: Wed, 24 Jan 2018 18:55:24 +0000
        Gerrit-HasComments: No
        Gerrit-HasLabels: No

        Daniel Cheng (Gerrit)

        unread,
        Jan 25, 2018, 3:19:55 AM1/25/18
        to Mounir Lamouri, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, creis...@chromium.org, feature-me...@chromium.org, gavinp...@chromium.org, ipc-securi...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, nasko+c...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Jochen Eisinger, Camille Lamy, Commit Bot, Aaron Boodman, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek, Nate Chapin

        View Change

        3 comments:

        • File content/browser/frame_host/navigation_request.cc:

          • Patch Set #9, Line 798: // A navigation is user activated if it contains a user gesture or the frame

            clamy: just to double check, at the point this function is called, we're certain of what the URL we're going to commit to is right?

          • Patch Set #9, Line 820: url::Origin::Create(navigation_handle_->GetURL())

            clamy: Something to consider for a followup: maybe we could consider caching this on NavigationHandle itself. There's already a few places that construct a temporary origin out of this—and if it's going to happen on many navigations, then we may as well just eat the cost once in NavigationHandle?

          • Patch Set #9, Line 822: } else if (((navigation_handle_->HasUserGesture() &&

            Please file a bug and add a TODO here to follow up with a better way of doing this. We could plumb the window disposition on the navigation handle or include it with the initiator info, et cetera.

        To view, visit change 873450. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: master
        Gerrit-MessageType: comment
        Gerrit-Change-Id: I25836f8a4e9aca5a60dc095c6d0a81d480027124
        Gerrit-Change-Number: 873450
        Gerrit-PatchSet: 9
        Gerrit-Owner: Mounir Lamouri <mlam...@chromium.org>
        Gerrit-Reviewer: Camille Lamy <cl...@chromium.org>
        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
        Gerrit-Reviewer: Jochen Eisinger <joc...@chromium.org>
        Gerrit-Reviewer: Mounir Lamouri <mlam...@chromium.org>
        Gerrit-CC: Aaron Boodman <a...@chromium.org>
        Gerrit-CC: Commit Bot <commi...@chromium.org>
        Gerrit-CC: Darin Fisher <da...@chromium.org>
        Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
        Gerrit-CC: Nate Chapin <jap...@chromium.org>
        Gerrit-Comment-Date: Thu, 25 Jan 2018 08:19:53 +0000
        Gerrit-HasComments: Yes
        Gerrit-HasLabels: No

        Mounir Lamouri (Gerrit)

        unread,
        Jan 25, 2018, 7:45:31 AM1/25/18
        to blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, creis...@chromium.org, feature-me...@chromium.org, gavinp...@chromium.org, ipc-securi...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, nasko+c...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Daniel Cheng, Jochen Eisinger, Camille Lamy, Commit Bot, Aaron Boodman, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek, Nate Chapin

        Unfortunately, clamy@ is OOO until the 29th it seems :(

        View Change

        1 comment:

        To view, visit change 873450. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: master
        Gerrit-MessageType: comment
        Gerrit-Change-Id: I25836f8a4e9aca5a60dc095c6d0a81d480027124
        Gerrit-Change-Number: 873450
        Gerrit-PatchSet: 9
        Gerrit-Owner: Mounir Lamouri <mlam...@chromium.org>
        Gerrit-Reviewer: Camille Lamy <cl...@chromium.org>
        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
        Gerrit-Reviewer: Jochen Eisinger <joc...@chromium.org>
        Gerrit-Reviewer: Mounir Lamouri <mlam...@chromium.org>
        Gerrit-CC: Aaron Boodman <a...@chromium.org>
        Gerrit-CC: Commit Bot <commi...@chromium.org>
        Gerrit-CC: Darin Fisher <da...@chromium.org>
        Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
        Gerrit-CC: Nate Chapin <jap...@chromium.org>
        Gerrit-Comment-Date: Thu, 25 Jan 2018 12:45:28 +0000
        Gerrit-HasComments: Yes
        Gerrit-HasLabels: No

        Camille Lamy (Gerrit)

        unread,
        Jan 29, 2018, 11:32:35 AM1/29/18
        to Mounir Lamouri, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, creis...@chromium.org, feature-me...@chromium.org, gavinp...@chromium.org, ipc-securi...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, nasko+c...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Daniel Cheng, Jochen Eisinger, Commit Bot, Aaron Boodman, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek, Nate Chapin

        Thanks! content/ lgtm with a few nits.

        Patch set 10:Code-Review +1

        View Change

        3 comments:

        To view, visit change 873450. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: master
        Gerrit-MessageType: comment
        Gerrit-Change-Id: I25836f8a4e9aca5a60dc095c6d0a81d480027124
        Gerrit-Change-Number: 873450
        Gerrit-PatchSet: 10
        Gerrit-Owner: Mounir Lamouri <mlam...@chromium.org>
        Gerrit-Reviewer: Camille Lamy <cl...@chromium.org>
        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
        Gerrit-Reviewer: Jochen Eisinger <joc...@chromium.org>
        Gerrit-Reviewer: Mounir Lamouri <mlam...@chromium.org>
        Gerrit-CC: Aaron Boodman <a...@chromium.org>
        Gerrit-CC: Commit Bot <commi...@chromium.org>
        Gerrit-CC: Darin Fisher <da...@chromium.org>
        Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
        Gerrit-CC: Nate Chapin <jap...@chromium.org>
        Gerrit-Comment-Date: Mon, 29 Jan 2018 16:32:29 +0000
        Gerrit-HasComments: Yes
        Gerrit-HasLabels: Yes

        Daniel Cheng (Gerrit)

        unread,
        Jan 29, 2018, 1:18:06 PM1/29/18
        to Mounir Lamouri (slow), blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, creis...@chromium.org, feature-me...@chromium.org, gavinp...@chromium.org, ipc-securi...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, nasko+c...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Camille Lamy, Jochen Eisinger, Commit Bot, Aaron Boodman, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek, Nate Chapin

        Patch set 10:Code-Review +1

        View Change

          To view, visit change 873450. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-Project: chromium/src
          Gerrit-Branch: master
          Gerrit-MessageType: comment
          Gerrit-Change-Id: I25836f8a4e9aca5a60dc095c6d0a81d480027124
          Gerrit-Change-Number: 873450
          Gerrit-PatchSet: 10
          Gerrit-Owner: Mounir Lamouri (slow) <mlam...@chromium.org>
          Gerrit-Reviewer: Camille Lamy <cl...@chromium.org>
          Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
          Gerrit-Reviewer: Jochen Eisinger <joc...@chromium.org>
          Gerrit-Reviewer: Mounir Lamouri (slow) <mlam...@chromium.org>
          Gerrit-CC: Aaron Boodman <a...@chromium.org>
          Gerrit-CC: Commit Bot <commi...@chromium.org>
          Gerrit-CC: Darin Fisher <da...@chromium.org>
          Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
          Gerrit-CC: Nate Chapin <jap...@chromium.org>
          Gerrit-Comment-Date: Mon, 29 Jan 2018 18:18:02 +0000
          Gerrit-HasComments: No
          Gerrit-HasLabels: Yes

          Mounir Lamouri (slow) (Gerrit)

          unread,
          Jan 30, 2018, 9:45:51 AM1/30/18
          to blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, creis...@chromium.org, feature-me...@chromium.org, gavinp...@chromium.org, ipc-securi...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, nasko+c...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Daniel Cheng, Camille Lamy, Jochen Eisinger, Commit Bot, Aaron Boodman, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek, Nate Chapin

          jochen@, PTAL at chrome/browser/ :)

          View Change

          3 comments:

            • Yes, this is the moment where we update our parameters following the reception of the final response […]

              Ack

            • Patch Set #9, Line 820: frame_tree_node_->current_origin(),

            • Yes that's a good idea. Let's add a TODO.

          To view, visit change 873450. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-Project: chromium/src
          Gerrit-Branch: master
          Gerrit-MessageType: comment
          Gerrit-Change-Id: I25836f8a4e9aca5a60dc095c6d0a81d480027124
          Gerrit-Change-Number: 873450
          Gerrit-PatchSet: 11
          Gerrit-Owner: Mounir Lamouri (slow) <mlam...@chromium.org>
          Gerrit-Reviewer: Camille Lamy <cl...@chromium.org>
          Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
          Gerrit-Reviewer: Jochen Eisinger <joc...@chromium.org>
          Gerrit-Reviewer: Mounir Lamouri (slow) <mlam...@chromium.org>
          Gerrit-CC: Aaron Boodman <a...@chromium.org>
          Gerrit-CC: Commit Bot <commi...@chromium.org>
          Gerrit-CC: Darin Fisher <da...@chromium.org>
          Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
          Gerrit-CC: Nate Chapin <jap...@chromium.org>
          Gerrit-Comment-Date: Tue, 30 Jan 2018 14:45:48 +0000
          Gerrit-HasComments: Yes
          Gerrit-HasLabels: No

          Jochen Eisinger (Gerrit)

          unread,
          Jan 30, 2018, 10:53:57 AM1/30/18
          to Mounir Lamouri (slow), blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, creis...@chromium.org, feature-me...@chromium.org, gavinp...@chromium.org, ipc-securi...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, nasko+c...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Daniel Cheng, Camille Lamy, Commit Bot, Aaron Boodman, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek, Nate Chapin

          Patch set 11:Code-Review +1

          View Change

            To view, visit change 873450. To unsubscribe, or for help writing mail filters, visit settings.

            Gerrit-Project: chromium/src
            Gerrit-Branch: master
            Gerrit-MessageType: comment
            Gerrit-Change-Id: I25836f8a4e9aca5a60dc095c6d0a81d480027124
            Gerrit-Change-Number: 873450
            Gerrit-PatchSet: 11
            Gerrit-Owner: Mounir Lamouri (slow) <mlam...@chromium.org>
            Gerrit-Reviewer: Camille Lamy <cl...@chromium.org>
            Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
            Gerrit-Reviewer: Jochen Eisinger <joc...@chromium.org>
            Gerrit-Reviewer: Mounir Lamouri (slow) <mlam...@chromium.org>
            Gerrit-CC: Aaron Boodman <a...@chromium.org>
            Gerrit-CC: Commit Bot <commi...@chromium.org>
            Gerrit-CC: Darin Fisher <da...@chromium.org>
            Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
            Gerrit-CC: Nate Chapin <jap...@chromium.org>
            Gerrit-Comment-Date: Tue, 30 Jan 2018 15:53:55 +0000
            Gerrit-HasComments: No
            Gerrit-HasLabels: Yes

            Mounir Lamouri (slow) (Gerrit)

            unread,
            Jan 30, 2018, 12:10:12 PM1/30/18
            to blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, creis...@chromium.org, feature-me...@chromium.org, gavinp...@chromium.org, ipc-securi...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, nasko+c...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Jochen Eisinger, Daniel Cheng, Camille Lamy, Commit Bot, Aaron Boodman, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek, Nate Chapin

            Patch set 11:Commit-Queue +2

            Gerrit-Comment-Date: Tue, 30 Jan 2018 17:10:07 +0000
            Gerrit-HasComments: No
            Gerrit-HasLabels: Yes

            Commit Bot (Gerrit)

            unread,
            Jan 30, 2018, 1:16:37 PM1/30/18
            to Mounir Lamouri (slow), blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, creis...@chromium.org, feature-me...@chromium.org, gavinp...@chromium.org, ipc-securi...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, nasko+c...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Jochen Eisinger, Daniel Cheng, Camille Lamy, Aaron Boodman, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek, Nate Chapin

            Commit Bot merged this change.

            View Change

            Approvals: Daniel Cheng: Looks good to me Camille Lamy: Looks good to me Jochen Eisinger: Looks good to me Mounir Lamouri (slow): Commit
            Autoplay: move navigation activation propagation logic to browser process.

            This is also allowing navigations with gesture to carry the flag such as
            middle click on links and CTRL+click. A side effect is to be able to
            prevent non-renderer initiated navigations to carry the flag such as
            reloads.

            Bug: 799136, 759448
            Change-Id: I25836f8a4e9aca5a60dc095c6d0a81d480027124
            Reviewed-on: https://chromium-review.googlesource.com/873450
            Reviewed-by: Jochen Eisinger <joc...@chromium.org>
            Reviewed-by: Camille Lamy <cl...@chromium.org>
            Reviewed-by: Daniel Cheng <dch...@chromium.org>
            Commit-Queue: Mounir Lamouri (slow) <mlam...@chromium.org>
            Cr-Commit-Position: refs/heads/master@{#532949}
            ---
            M chrome/browser/media/unified_autoplay_browsertest.cc
            M chrome/browser/ui/browser_navigator.cc
            M content/browser/frame_host/frame_tree_node.h
            M content/browser/frame_host/navigation_controller_impl.cc
            M content/browser/frame_host/navigation_entry_impl.cc
            M content/browser/frame_host/navigation_entry_impl.h
            M content/browser/frame_host/navigation_request.cc
            M content/browser/site_per_process_browsertest.cc
            M content/common/frame_messages.h
            M content/common/navigation_params.cc
            M content/common/navigation_params.h
            M content/public/browser/navigation_controller.cc
            M content/public/browser/navigation_controller.h
            M content/renderer/render_frame_impl.cc
            M third_party/WebKit/Source/core/exported/WebDocumentLoaderImpl.cpp
            M third_party/WebKit/Source/core/frame/FrameTest.cpp
            M third_party/WebKit/Source/core/loader/DocumentLoader.cpp
            M third_party/WebKit/public/web/WebDocumentLoader.h
            18 files changed, 188 insertions(+), 112 deletions(-)


            To view, visit change 873450. To unsubscribe, or for help writing mail filters, visit settings.

            Gerrit-Project: chromium/src
            Gerrit-Branch: master
            Gerrit-MessageType: merged
            Gerrit-Change-Id: I25836f8a4e9aca5a60dc095c6d0a81d480027124
            Gerrit-Change-Number: 873450
            Gerrit-PatchSet: 12
            Gerrit-Owner: Mounir Lamouri (slow) <mlam...@chromium.org>
            Gerrit-Reviewer: Camille Lamy <cl...@chromium.org>
            Gerrit-Reviewer: Commit Bot <commi...@chromium.org>
            Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
            Gerrit-Reviewer: Jochen Eisinger <joc...@chromium.org>
            Gerrit-Reviewer: Mounir Lamouri (slow) <mlam...@chromium.org>
            Gerrit-CC: Aaron Boodman <a...@chromium.org>
            Reply all
            Reply to author
            Forward
            0 new messages