Preserve focus when entering the back-forward cache [chromium/src : main]

1 view
Skip to first unread message

Helmut Januschka (Gerrit)

unread,
May 24, 2026, 7:14:34 PMMay 24
to Helmut Januschka, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, chikamu...@chromium.org, bfcach...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
Attention needed from Joey Arhar

Helmut Januschka added 1 comment

Patchset-level comments
File-level comment, Patchset 2 (Latest):
Helmut Januschka . resolved

@jar...@chromium.org - PTAL, do you have an idea who would be a good reviewer?

thanks in advance, and no time pressure from my end, whenver you have a couple of minutes. thanks!

Open in Gerrit

Related details

Attention is currently required from:
  • Joey Arhar
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Id42617b17da46656f35c855eea02a8df848543e0
Gerrit-Change-Number: 7829940
Gerrit-PatchSet: 2
Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
Gerrit-Attention: Joey Arhar <jar...@chromium.org>
Gerrit-Comment-Date: Sun, 24 May 2026 23:14:14 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Fergal Daly (Gerrit)

unread,
May 24, 2026, 7:55:48 PMMay 24
to Helmut Januschka, Fergal Daly, Fergal Daly, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, chikamu...@chromium.org, bfcach...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
Attention needed from Fergal Daly, Helmut Januschka and Joey Arhar

Fergal Daly added 1 comment

File content/browser/back_forward_cache_browsertest.cc
Line 1879, Patchset 2 (Parent): // 5) Navigating back to |url_1|, we shouldn't restore the focus to the
Fergal Daly . unresolved

Do you know why we were testing for the opposite behaviour? Does the HTML spec have an opinion on this?

Open in Gerrit

Related details

Attention is currently required from:
  • Fergal Daly
  • Helmut Januschka
  • Joey Arhar
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Id42617b17da46656f35c855eea02a8df848543e0
    Gerrit-Change-Number: 7829940
    Gerrit-PatchSet: 2
    Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
    Gerrit-Reviewer: Fergal Daly <fer...@google.com>
    Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
    Gerrit-CC: Fergal Daly <fer...@chromium.org>
    Gerrit-Attention: Fergal Daly <fer...@google.com>
    Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
    Gerrit-Attention: Joey Arhar <jar...@chromium.org>
    Gerrit-Comment-Date: Sun, 24 May 2026 23:55:14 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Fergal Daly (Gerrit)

    unread,
    May 24, 2026, 8:05:15 PMMay 24
    to Helmut Januschka, Fergal Daly, Fergal Daly, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, chikamu...@chromium.org, bfcach...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
    Attention needed from Fergal Daly, Helmut Januschka and Joey Arhar

    Fergal Daly added 1 comment

    File third_party/blink/web_tests/http/tests/back-forward-cache/focus-preserved.html
    Fergal Daly . unresolved

    https://wpt.fyi/results/html/browsers/browsing-the-web/back-forward-cache/focus.html?label=master&label=experimental&aligned&q=html%2Fbrowsers%2Fbrowsing-the-web%2Fback-forward-cache

    already seems to test the same thing (at least by its description). It's also failing on Firefox, so I wonder if there is consensus on the behaviour.

    Gerrit-Comment-Date: Mon, 25 May 2026 00:04:41 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Helmut Januschka (Gerrit)

    unread,
    May 25, 2026, 4:32:42 PMMay 25
    to Helmut Januschka, Zhe Su, Fergal Daly, Fergal Daly, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, nona+...@chromium.org, shuche...@chromium.org, keithle...@chromium.org, creis...@chromium.org, alexmo...@chromium.org, yhanad...@chromium.org, navigation...@chromium.org, tranbaod...@chromium.org, chikamu...@chromium.org, bfcach...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
    Attention needed from Fergal Daly, Fergal Daly and Joey Arhar

    Helmut Januschka added 2 comments

    File content/browser/back_forward_cache_browsertest.cc
    Line 1879, Patchset 2 (Parent): // 5) Navigating back to |url_1|, we shouldn't restore the focus to the
    Fergal Daly . resolved

    Do you know why we were testing for the opposite behaviour? Does the HTML spec have an opinion on this?

    Helmut Januschka

    The opposite expectation (`blurCount == 1`) was added in 2020 by https://crrev.com/c/2362046, intentionally clearing focus + text-input state on BFCache entry so the IME / text-input plumbing matched a normal cross-document navigation. The test was just locking in that implementation choice; not a spec requirement.

    File third_party/blink/web_tests/http/tests/back-forward-cache/focus-preserved.html
    Fergal Daly . unresolved

    https://wpt.fyi/results/html/browsers/browsing-the-web/back-forward-cache/focus.html?label=master&label=experimental&aligned&q=html%2Fbrowsers%2Fbrowsing-the-web%2Fback-forward-cache

    already seems to test the same thing (at least by its description). It's also failing on Firefox, so I wonder if there is consensus on the behaviour.

    Helmut Januschka

    Acknowledged, dropped `third_party/blink/web_tests/http/tests/back-forward-cache/focus-preserved.html`.

    On consensus: Safari already preserves focus across BFCache, so this CL aligns Chromium with WebKit. Firefox is the other outlier then. The HTML spec is silent about it (`reactivate a Document` says nothing about focus).

    I'm happy to file a spec issue to make this explicit. Want me to file it as a follow-up to this CL, or block on it?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Fergal Daly
    • Fergal Daly
    • Joey Arhar
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Id42617b17da46656f35c855eea02a8df848543e0
    Gerrit-Change-Number: 7829940
    Gerrit-PatchSet: 3
    Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
    Gerrit-Reviewer: Fergal Daly <fer...@google.com>
    Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
    Gerrit-CC: Fergal Daly <fer...@chromium.org>
    Gerrit-CC: Zhe Su <su...@chromium.org>
    Gerrit-Attention: Joey Arhar <jar...@chromium.org>
    Gerrit-Attention: Fergal Daly <fer...@chromium.org>
    Gerrit-Comment-Date: Mon, 25 May 2026 20:32:23 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Fergal Daly <fer...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Fergal Daly (Gerrit)

    unread,
    May 25, 2026, 9:00:22 PMMay 25
    to Helmut Januschka, Zhe Su, Fergal Daly, Fergal Daly, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, nona+...@chromium.org, shuche...@chromium.org, keithle...@chromium.org, creis...@chromium.org, alexmo...@chromium.org, yhanad...@chromium.org, navigation...@chromium.org, tranbaod...@chromium.org, chikamu...@chromium.org, bfcach...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
    Attention needed from Fergal Daly, Helmut Januschka and Joey Arhar

    Fergal Daly added 1 comment

    File third_party/blink/web_tests/http/tests/back-forward-cache/focus-preserved.html
    Fergal Daly . unresolved

    https://wpt.fyi/results/html/browsers/browsing-the-web/back-forward-cache/focus.html?label=master&label=experimental&aligned&q=html%2Fbrowsers%2Fbrowsing-the-web%2Fback-forward-cache

    already seems to test the same thing (at least by its description). It's also failing on Firefox, so I wonder if there is consensus on the behaviour.

    Helmut Januschka

    Acknowledged, dropped `third_party/blink/web_tests/http/tests/back-forward-cache/focus-preserved.html`.

    On consensus: Safari already preserves focus across BFCache, so this CL aligns Chromium with WebKit. Firefox is the other outlier then. The HTML spec is silent about it (`reactivate a Document` says nothing about focus).

    I'm happy to file a spec issue to make this explicit. Want me to file it as a follow-up to this CL, or block on it?

    Fergal Daly

    Unfortunately, I think we should block. The focus behaviour was added very intentionally.

    https://crrev.com/c/2362046

    and there's a real question as to what the correct behaviour should be. There's a tension with BFCache between making it seem exactly like a normal navigation just faster and the fact that web pages are stateful and we are restoring that state.

    I'm also hesistant to change focus stuff. I know we already have a mess because input events are not on the same mojo pipe as RFH and other navigation events, including focus. I feel like this has been a source of flakiness, although it was quite a while ago.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Fergal Daly
    • Helmut Januschka
    • Joey Arhar
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Id42617b17da46656f35c855eea02a8df848543e0
    Gerrit-Change-Number: 7829940
    Gerrit-PatchSet: 3
    Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
    Gerrit-Reviewer: Fergal Daly <fer...@google.com>
    Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
    Gerrit-CC: Fergal Daly <fer...@chromium.org>
    Gerrit-CC: Zhe Su <su...@chromium.org>
    Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
    Gerrit-Attention: Fergal Daly <fer...@google.com>
    Gerrit-Attention: Joey Arhar <jar...@chromium.org>
    Gerrit-Comment-Date: Tue, 26 May 2026 00:59:49 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Helmut Januschka <hel...@januschka.com>
    Comment-In-Reply-To: Fergal Daly <fer...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Helmut Januschka (Gerrit)

    unread,
    May 26, 2026, 1:36:52 PMMay 26
    to Helmut Januschka, Rakina Zata Amni, Zhe Su, Fergal Daly, Fergal Daly, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, nona+...@chromium.org, shuche...@chromium.org, keithle...@chromium.org, creis...@chromium.org, alexmo...@chromium.org, yhanad...@chromium.org, navigation...@chromium.org, tranbaod...@chromium.org, chikamu...@chromium.org, bfcach...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
    Attention needed from Fergal Daly, Fergal Daly and Joey Arhar

    Helmut Januschka added 1 comment

    File third_party/blink/web_tests/http/tests/back-forward-cache/focus-preserved.html
    Fergal Daly . unresolved

    https://wpt.fyi/results/html/browsers/browsing-the-web/back-forward-cache/focus.html?label=master&label=experimental&aligned&q=html%2Fbrowsers%2Fbrowsing-the-web%2Fback-forward-cache

    already seems to test the same thing (at least by its description). It's also failing on Firefox, so I wonder if there is consensus on the behaviour.

    Helmut Januschka

    Acknowledged, dropped `third_party/blink/web_tests/http/tests/back-forward-cache/focus-preserved.html`.

    On consensus: Safari already preserves focus across BFCache, so this CL aligns Chromium with WebKit. Firefox is the other outlier then. The HTML spec is silent about it (`reactivate a Document` says nothing about focus).

    I'm happy to file a spec issue to make this explicit. Want me to file it as a follow-up to this CL, or block on it?

    Fergal Daly

    Unfortunately, I think we should block. The focus behaviour was added very intentionally.

    https://crrev.com/c/2362046

    and there's a real question as to what the correct behaviour should be. There's a tension with BFCache between making it seem exactly like a normal navigation just faster and the fact that web pages are stateful and we are restoring that state.

    I'm also hesistant to change focus stuff. I know we already have a mess because input events are not on the same mojo pipe as RFH and other navigation events, including focus. I feel like this has been a source of flakiness, although it was quite a while ago.

    Helmut Januschka

    sorry if that might sound dumb, am i correct (dont want to mess things up), that i should file a spec update? and then we can block on this?

    or as the last part of your reply, which is totally understandable, signalizes, should we abandon this CL and close the issue with wont-fix?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Fergal Daly
    • Fergal Daly
    • Joey Arhar
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Id42617b17da46656f35c855eea02a8df848543e0
    Gerrit-Change-Number: 7829940
    Gerrit-PatchSet: 3
    Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
    Gerrit-Reviewer: Fergal Daly <fer...@google.com>
    Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
    Gerrit-CC: Fergal Daly <fer...@chromium.org>
    Gerrit-CC: Rakina Zata Amni <rak...@chromium.org>
    Gerrit-Attention: Fergal Daly <fer...@google.com>
    Gerrit-Attention: Joey Arhar <jar...@chromium.org>
    Gerrit-Attention: Fergal Daly <fer...@chromium.org>
    Gerrit-Comment-Date: Tue, 26 May 2026 17:36:40 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Fergal Daly (Gerrit)

    unread,
    May 26, 2026, 9:35:38 PMMay 26
    to Helmut Januschka, Rakina Zata Amni, Zhe Su, Fergal Daly, Fergal Daly, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, nona+...@chromium.org, shuche...@chromium.org, keithle...@chromium.org, creis...@chromium.org, alexmo...@chromium.org, yhanad...@chromium.org, navigation...@chromium.org, tranbaod...@chromium.org, chikamu...@chromium.org, bfcach...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
    Attention needed from Fergal Daly, Helmut Januschka and Joey Arhar

    Fergal Daly added 1 comment

    File third_party/blink/web_tests/http/tests/back-forward-cache/focus-preserved.html
    Fergal Daly . unresolved

    https://wpt.fyi/results/html/browsers/browsing-the-web/back-forward-cache/focus.html?label=master&label=experimental&aligned&q=html%2Fbrowsers%2Fbrowsing-the-web%2Fback-forward-cache

    already seems to test the same thing (at least by its description). It's also failing on Firefox, so I wonder if there is consensus on the behaviour.

    Helmut Januschka

    Acknowledged, dropped `third_party/blink/web_tests/http/tests/back-forward-cache/focus-preserved.html`.

    On consensus: Safari already preserves focus across BFCache, so this CL aligns Chromium with WebKit. Firefox is the other outlier then. The HTML spec is silent about it (`reactivate a Document` says nothing about focus).

    I'm happy to file a spec issue to make this explicit. Want me to file it as a follow-up to this CL, or block on it?

    Fergal Daly

    Unfortunately, I think we should block. The focus behaviour was added very intentionally.

    https://crrev.com/c/2362046

    and there's a real question as to what the correct behaviour should be. There's a tension with BFCache between making it seem exactly like a normal navigation just faster and the fact that web pages are stateful and we are restoring that state.

    I'm also hesistant to change focus stuff. I know we already have a mess because input events are not on the same mojo pipe as RFH and other navigation events, including focus. I feel like this has been a source of flakiness, although it was quite a while ago.

    Helmut Januschka

    sorry if that might sound dumb, am i correct (dont want to mess things up), that i should file a spec update? and then we can block on this?

    or as the last part of your reply, which is totally understandable, signalizes, should we abandon this CL and close the issue with wont-fix?

    Fergal Daly

    Sorry if it was unclear. I think we should clarify the spec. The outcome could go either way.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Fergal Daly
    • Helmut Januschka
    • Joey Arhar
    Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
    Gerrit-Attention: Fergal Daly <fer...@google.com>
    Gerrit-Attention: Joey Arhar <jar...@chromium.org>
    Gerrit-Comment-Date: Wed, 27 May 2026 01:35:03 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Helmut Januschka (Gerrit)

    unread,
    May 27, 2026, 4:48:10 PMMay 27
    to Helmut Januschka, Rakina Zata Amni, Zhe Su, Fergal Daly, Fergal Daly, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, nona+...@chromium.org, shuche...@chromium.org, keithle...@chromium.org, creis...@chromium.org, alexmo...@chromium.org, yhanad...@chromium.org, navigation...@chromium.org, tranbaod...@chromium.org, chikamu...@chromium.org, bfcach...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
    Attention needed from Fergal Daly and Fergal Daly

    Helmut Januschka added 1 comment

    File third_party/blink/web_tests/http/tests/back-forward-cache/focus-preserved.html
    File-level comment, Patchset 2:
    Fergal Daly . resolved

    https://wpt.fyi/results/html/browsers/browsing-the-web/back-forward-cache/focus.html?label=master&label=experimental&aligned&q=html%2Fbrowsers%2Fbrowsing-the-web%2Fback-forward-cache

    already seems to test the same thing (at least by its description). It's also failing on Firefox, so I wonder if there is consensus on the behaviour.

    Helmut Januschka

    Acknowledged, dropped `third_party/blink/web_tests/http/tests/back-forward-cache/focus-preserved.html`.

    On consensus: Safari already preserves focus across BFCache, so this CL aligns Chromium with WebKit. Firefox is the other outlier then. The HTML spec is silent about it (`reactivate a Document` says nothing about focus).

    I'm happy to file a spec issue to make this explicit. Want me to file it as a follow-up to this CL, or block on it?

    Fergal Daly

    Unfortunately, I think we should block. The focus behaviour was added very intentionally.

    https://crrev.com/c/2362046

    and there's a real question as to what the correct behaviour should be. There's a tension with BFCache between making it seem exactly like a normal navigation just faster and the fact that web pages are stateful and we are restoring that state.

    I'm also hesistant to change focus stuff. I know we already have a mess because input events are not on the same mojo pipe as RFH and other navigation events, including focus. I feel like this has been a source of flakiness, although it was quite a while ago.

    Helmut Januschka

    sorry if that might sound dumb, am i correct (dont want to mess things up), that i should file a spec update? and then we can block on this?

    or as the last part of your reply, which is totally understandable, signalizes, should we abandon this CL and close the issue with wont-fix?

    Fergal Daly

    Sorry if it was unclear. I think we should clarify the spec. The outcome could go either way.

    Helmut Januschka

    spec issue: https://github.com/whatwg/html/issues/12496 and has a draft-pr, i'll park this CL!

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Fergal Daly
    • Fergal Daly
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Id42617b17da46656f35c855eea02a8df848543e0
      Gerrit-Change-Number: 7829940
      Gerrit-PatchSet: 3
      Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Fergal Daly <fer...@google.com>
      Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
      Gerrit-CC: Fergal Daly <fer...@chromium.org>
      Gerrit-CC: Rakina Zata Amni <rak...@chromium.org>
      Gerrit-CC: Zhe Su <su...@chromium.org>
      Gerrit-Attention: Fergal Daly <fer...@google.com>
      Gerrit-Attention: Fergal Daly <fer...@chromium.org>
      Gerrit-Comment-Date: Wed, 27 May 2026 20:47:47 +0000
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Fergal Daly (Gerrit)

      unread,
      May 27, 2026, 11:50:03 PMMay 27
      to Helmut Januschka, Rakina Zata Amni, Zhe Su, Fergal Daly, Fergal Daly, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, nona+...@chromium.org, shuche...@chromium.org, keithle...@chromium.org, creis...@chromium.org, alexmo...@chromium.org, yhanad...@chromium.org, navigation...@chromium.org, tranbaod...@chromium.org, chikamu...@chromium.org, bfcach...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
      Attention needed from Fergal Daly and Helmut Januschka

      Fergal Daly added 1 comment

      File third_party/blink/web_tests/http/tests/back-forward-cache/focus-preserved.html
      Fergal Daly . resolved

      https://wpt.fyi/results/html/browsers/browsing-the-web/back-forward-cache/focus.html?label=master&label=experimental&aligned&q=html%2Fbrowsers%2Fbrowsing-the-web%2Fback-forward-cache

      already seems to test the same thing (at least by its description). It's also failing on Firefox, so I wonder if there is consensus on the behaviour.

      Helmut Januschka

      Acknowledged, dropped `third_party/blink/web_tests/http/tests/back-forward-cache/focus-preserved.html`.

      On consensus: Safari already preserves focus across BFCache, so this CL aligns Chromium with WebKit. Firefox is the other outlier then. The HTML spec is silent about it (`reactivate a Document` says nothing about focus).

      I'm happy to file a spec issue to make this explicit. Want me to file it as a follow-up to this CL, or block on it?

      Fergal Daly

      Unfortunately, I think we should block. The focus behaviour was added very intentionally.

      https://crrev.com/c/2362046

      and there's a real question as to what the correct behaviour should be. There's a tension with BFCache between making it seem exactly like a normal navigation just faster and the fact that web pages are stateful and we are restoring that state.

      I'm also hesistant to change focus stuff. I know we already have a mess because input events are not on the same mojo pipe as RFH and other navigation events, including focus. I feel like this has been a source of flakiness, although it was quite a while ago.

      Helmut Januschka

      sorry if that might sound dumb, am i correct (dont want to mess things up), that i should file a spec update? and then we can block on this?

      or as the last part of your reply, which is totally understandable, signalizes, should we abandon this CL and close the issue with wont-fix?

      Fergal Daly

      Sorry if it was unclear. I think we should clarify the spec. The outcome could go either way.

      Helmut Januschka

      spec issue: https://github.com/whatwg/html/issues/12496 and has a draft-pr, i'll park this CL!

      Fergal Daly

      Thanks. Great issue, makes things very clear.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Fergal Daly
      • Helmut Januschka
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Id42617b17da46656f35c855eea02a8df848543e0
      Gerrit-Change-Number: 7829940
      Gerrit-PatchSet: 3
      Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Fergal Daly <fer...@google.com>
      Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
      Gerrit-CC: Fergal Daly <fer...@chromium.org>
      Gerrit-CC: Rakina Zata Amni <rak...@chromium.org>
      Gerrit-CC: Zhe Su <su...@chromium.org>
      Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
      Gerrit-Attention: Fergal Daly <fer...@google.com>
      Gerrit-Comment-Date: Thu, 28 May 2026 03:49:41 +0000
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Rakina Zata Amni (Gerrit)

      unread,
      Jun 15, 2026, 5:00:08 AM (14 days ago) Jun 15
      to Helmut Januschka, Zhe Su, Fergal Daly, Fergal Daly, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, nona+...@chromium.org, shuche...@chromium.org, keithle...@chromium.org, creis...@chromium.org, alexmo...@chromium.org, yhanad...@chromium.org, navigation...@chromium.org, tranbaod...@chromium.org, chikamu...@chromium.org, bfcach...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
      Attention needed from Fergal Daly and Helmut Januschka

      Rakina Zata Amni added 1 comment

      File third_party/blink/web_tests/http/tests/back-forward-cache/focus-preserved.html
      File-level comment, Patchset 2:
      Fergal Daly . unresolved

      https://wpt.fyi/results/html/browsers/browsing-the-web/back-forward-cache/focus.html?label=master&label=experimental&aligned&q=html%2Fbrowsers%2Fbrowsing-the-web%2Fback-forward-cache

      already seems to test the same thing (at least by its description). It's also failing on Firefox, so I wonder if there is consensus on the behaviour.

      Helmut Januschka

      Acknowledged, dropped `third_party/blink/web_tests/http/tests/back-forward-cache/focus-preserved.html`.

      On consensus: Safari already preserves focus across BFCache, so this CL aligns Chromium with WebKit. Firefox is the other outlier then. The HTML spec is silent about it (`reactivate a Document` says nothing about focus).

      I'm happy to file a spec issue to make this explicit. Want me to file it as a follow-up to this CL, or block on it?

      Fergal Daly

      Unfortunately, I think we should block. The focus behaviour was added very intentionally.

      https://crrev.com/c/2362046

      and there's a real question as to what the correct behaviour should be. There's a tension with BFCache between making it seem exactly like a normal navigation just faster and the fact that web pages are stateful and we are restoring that state.

      I'm also hesistant to change focus stuff. I know we already have a mess because input events are not on the same mojo pipe as RFH and other navigation events, including focus. I feel like this has been a source of flakiness, although it was quite a while ago.

      Helmut Januschka

      sorry if that might sound dumb, am i correct (dont want to mess things up), that i should file a spec update? and then we can block on this?

      or as the last part of your reply, which is totally understandable, signalizes, should we abandon this CL and close the issue with wont-fix?

      Fergal Daly

      Sorry if it was unclear. I think we should clarify the spec. The outcome could go either way.

      Helmut Januschka

      spec issue: https://github.com/whatwg/html/issues/12496 and has a draft-pr, i'll park this CL!

      Fergal Daly

      Thanks. Great issue, makes things very clear.

      Rakina Zata Amni

      I think the review can continue here. The fact that the note about the behavior is non-normative in the spec might just be because the spec is already in line with the note. It's just a clarification note.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Fergal Daly
      • Helmut Januschka
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement is not satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        • requirement is not satisfiedReview-Enforcement
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: Id42617b17da46656f35c855eea02a8df848543e0
        Gerrit-Change-Number: 7829940
        Gerrit-PatchSet: 3
        Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
        Gerrit-Reviewer: Fergal Daly <fer...@google.com>
        Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
        Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
        Gerrit-CC: Fergal Daly <fer...@chromium.org>
        Gerrit-CC: Rakina Zata Amni <rak...@chromium.org>
        Gerrit-CC: Zhe Su <su...@chromium.org>
        Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
        Gerrit-Attention: Fergal Daly <fer...@google.com>
        Gerrit-Comment-Date: Mon, 15 Jun 2026 08:59:24 +0000
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Helmut Januschka (Gerrit)

        unread,
        Jun 15, 2026, 5:49:52 AM (14 days ago) Jun 15
        to Helmut Januschka, Rakina Zata Amni, Zhe Su, Fergal Daly, Fergal Daly, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, nona+...@chromium.org, shuche...@chromium.org, keithle...@chromium.org, creis...@chromium.org, alexmo...@chromium.org, yhanad...@chromium.org, navigation...@chromium.org, tranbaod...@chromium.org, chikamu...@chromium.org, bfcach...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
        Attention needed from Fergal Daly, Fergal Daly and Rakina Zata Amni

        Helmut Januschka added 1 comment

        File third_party/blink/web_tests/http/tests/back-forward-cache/focus-preserved.html
        File-level comment, Patchset 2:
        Fergal Daly . resolved

        https://wpt.fyi/results/html/browsers/browsing-the-web/back-forward-cache/focus.html?label=master&label=experimental&aligned&q=html%2Fbrowsers%2Fbrowsing-the-web%2Fback-forward-cache

        already seems to test the same thing (at least by its description). It's also failing on Firefox, so I wonder if there is consensus on the behaviour.

        Helmut Januschka

        Acknowledged, dropped `third_party/blink/web_tests/http/tests/back-forward-cache/focus-preserved.html`.

        On consensus: Safari already preserves focus across BFCache, so this CL aligns Chromium with WebKit. Firefox is the other outlier then. The HTML spec is silent about it (`reactivate a Document` says nothing about focus).

        I'm happy to file a spec issue to make this explicit. Want me to file it as a follow-up to this CL, or block on it?

        Fergal Daly

        Unfortunately, I think we should block. The focus behaviour was added very intentionally.

        https://crrev.com/c/2362046

        and there's a real question as to what the correct behaviour should be. There's a tension with BFCache between making it seem exactly like a normal navigation just faster and the fact that web pages are stateful and we are restoring that state.

        I'm also hesistant to change focus stuff. I know we already have a mess because input events are not on the same mojo pipe as RFH and other navigation events, including focus. I feel like this has been a source of flakiness, although it was quite a while ago.

        Helmut Januschka

        sorry if that might sound dumb, am i correct (dont want to mess things up), that i should file a spec update? and then we can block on this?

        or as the last part of your reply, which is totally understandable, signalizes, should we abandon this CL and close the issue with wont-fix?

        Fergal Daly

        Sorry if it was unclear. I think we should clarify the spec. The outcome could go either way.

        Helmut Januschka

        spec issue: https://github.com/whatwg/html/issues/12496 and has a draft-pr, i'll park this CL!

        Fergal Daly

        Thanks. Great issue, makes things very clear.

        Rakina Zata Amni

        I think the review can continue here. The fact that the note about the behavior is non-normative in the spec might just be because the spec is already in line with the note. It's just a clarification note.

        Helmut Januschka

        Acknowledged, thank you!

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Fergal Daly
        • Fergal Daly
        • Rakina Zata Amni
        Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement is not satisfiedCode-Owners
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: Id42617b17da46656f35c855eea02a8df848543e0
          Gerrit-Change-Number: 7829940
          Gerrit-PatchSet: 3
          Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
          Gerrit-Reviewer: Fergal Daly <fer...@google.com>
          Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
          Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
          Gerrit-CC: Fergal Daly <fer...@chromium.org>
          Gerrit-CC: Rakina Zata Amni <rak...@chromium.org>
          Gerrit-CC: Zhe Su <su...@chromium.org>
          Gerrit-Attention: Fergal Daly <fer...@google.com>
          Gerrit-Attention: Fergal Daly <fer...@chromium.org>
          Gerrit-Attention: Rakina Zata Amni <rak...@chromium.org>
          Gerrit-Comment-Date: Mon, 15 Jun 2026 09:49:34 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: Helmut Januschka <hel...@januschka.com>
          Comment-In-Reply-To: Rakina Zata Amni <rak...@chromium.org>
          Comment-In-Reply-To: Fergal Daly <fer...@chromium.org>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Nasko Oskov (Gerrit)

          unread,
          Jun 15, 2026, 5:55:19 PM (13 days ago) Jun 15
          to Helmut Januschka, Rakina Zata Amni, Zhe Su, Fergal Daly, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, nona+...@chromium.org, shuche...@chromium.org, keithle...@chromium.org, creis...@chromium.org, alexmo...@chromium.org, yhanad...@chromium.org, navigation...@chromium.org, tranbaod...@chromium.org, chikamu...@chromium.org, bfcach...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
          Attention needed from Fergal Daly, Helmut Januschka and Rakina Zata Amni

          Nasko Oskov added 1 comment

          Patchset-level comments
          File-level comment, Patchset 3 (Latest):
          Nasko Oskov . resolved

          If you have rakina@ already, you don't need me.

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Fergal Daly
          • Helmut Januschka
          • Rakina Zata Amni
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement is not satisfiedCode-Owners
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: Id42617b17da46656f35c855eea02a8df848543e0
          Gerrit-Change-Number: 7829940
          Gerrit-PatchSet: 3
          Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
          Gerrit-Reviewer: Fergal Daly <fer...@google.com>
          Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
          Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
          Gerrit-Reviewer: Rakina Zata Amni <rak...@chromium.org>
          Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
          Gerrit-Attention: Fergal Daly <fer...@google.com>
          Gerrit-Attention: Rakina Zata Amni <rak...@chromium.org>
          Gerrit-Comment-Date: Mon, 15 Jun 2026 21:55:04 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Rakina Zata Amni (Gerrit)

          unread,
          Jun 16, 2026, 3:31:36 AM (13 days ago) Jun 16
          to Helmut Januschka, Zhe Su, Fergal Daly, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, nona+...@chromium.org, shuche...@chromium.org, keithle...@chromium.org, creis...@chromium.org, alexmo...@chromium.org, yhanad...@chromium.org, navigation...@chromium.org, tranbaod...@chromium.org, chikamu...@chromium.org, bfcach...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
          Attention needed from Fergal Daly and Helmut Januschka

          Rakina Zata Amni added 6 comments

          Patchset-level comments
          Rakina Zata Amni . resolved

          Looks like the WPT is failing?

          Commit Message
          Line 8, Patchset 3 (Latest):
          Rakina Zata Amni . unresolved

          Please add some explanation

          File content/browser/renderer_host/render_frame_host_impl.cc
          Line 3159, Patchset 3 (Latest): if (subframe_view != main_view) {
          Rakina Zata Amni . unresolved

          Is it possible for this to be the same view as some other subframe's view?

          File content/browser/renderer_host/text_input_manager.cc
          Line 426, Patchset 3 (Latest): // The view remains registered (its DOM focus is preserved across BFCache),
          // but it is no longer the active text-input target while the page is frozen.
          // Reset the cached type so that subsequent observers see NONE, mirroring what
          // would happen if focus had been cleared on pagehide.
          text_input_state_map_[view]->type = ui::TEXT_INPUT_TYPE_NONE;
          active_view_ = nullptr;
          Rakina Zata Amni . unresolved

          Does this need to be undone when restoring from BFCache? (see also the comment on the other file)

          File third_party/blink/renderer/core/exported/web_view_impl.cc
          Line 2515, Patchset 3 (Latest): RemoveFocusAndTextInputState(
          Rakina Zata Amni . unresolved

          Please add comments

          Line 2703, Patchset 3 (Latest): widget->UpdateTextInputState();
          Rakina Zata Amni . unresolved

          Please fix this WARNING reported by autoreview issue finding: When `clear_focus` is false (i.e. entering BFCache), `UpdateTextInputState()` will find that the text input state hasn't changed from its cached value, so it won't send an IPC. This means the renderer's cached state remains `TEXT_INPUT_TYPE_TEXT`.

          However, when the page enters BFCache, the browser manually resets its state to `NONE` via `TextInputManager::DidEnterBackForwardCache`.

          When the page is eventually restored from BFCache, the renderer will not send an `UpdateTextInputState` IPC (because its cached state is still `TEXT_INPUT_TYPE_TEXT`), leaving the browser permanently out of sync (stuck in `NONE`). This will break IME and virtual keyboards upon BFCache restore.

          Consider explicitly clearing the widget's text input state (e.g. `widget->ClearTextInputState()`) upon entering or restoring from BFCache so that an update is forced on restore.

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Fergal Daly
          • Helmut Januschka
          Submit Requirements:
            • requirement satisfiedCode-Coverage
            • requirement is not satisfiedCode-Owners
            • requirement is not satisfiedCode-Review
            • requirement is not satisfiedNo-Unresolved-Comments
            • requirement is not satisfiedReview-Enforcement
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: comment
            Gerrit-Project: chromium/src
            Gerrit-Branch: main
            Gerrit-Change-Id: Id42617b17da46656f35c855eea02a8df848543e0
            Gerrit-Change-Number: 7829940
            Gerrit-PatchSet: 3
            Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
            Gerrit-Reviewer: Fergal Daly <fer...@google.com>
            Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
            Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
            Gerrit-Reviewer: Rakina Zata Amni <rak...@chromium.org>
            Gerrit-CC: Zhe Su <su...@chromium.org>
            Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
            Gerrit-Attention: Fergal Daly <fer...@google.com>
            Gerrit-Comment-Date: Tue, 16 Jun 2026 07:30:47 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Helmut Januschka (Gerrit)

            unread,
            Jun 17, 2026, 9:12:42 AM (12 days ago) Jun 17
            to Helmut Januschka, Rakina Zata Amni, Zhe Su, Fergal Daly, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, nona+...@chromium.org, shuche...@chromium.org, keithle...@chromium.org, creis...@chromium.org, alexmo...@chromium.org, yhanad...@chromium.org, navigation...@chromium.org, tranbaod...@chromium.org, chikamu...@chromium.org, bfcach...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
            Attention needed from Fergal Daly and Rakina Zata Amni

            Helmut Januschka added 5 comments

            Commit Message
            Rakina Zata Amni . resolved

            Please add some explanation

            Helmut Januschka

            Done

            File content/browser/renderer_host/render_frame_host_impl.cc
            Line 3159, Patchset 3: if (subframe_view != main_view) {
            Rakina Zata Amni . resolved

            Is it possible for this to be the same view as some other subframe's view?

            Helmut Januschka

            changed this to track already-notified views, so shared subframe views are only notified once.

            File content/browser/renderer_host/text_input_manager.cc
            Line 426, Patchset 3: // The view remains registered (its DOM focus is preserved across BFCache),

            // but it is no longer the active text-input target while the page is frozen.
            // Reset the cached type so that subsequent observers see NONE, mirroring what
            // would happen if focus had been cleared on pagehide.
            text_input_state_map_[view]->type = ui::TEXT_INPUT_TYPE_NONE;
            active_view_ = nullptr;
            Rakina Zata Amni . resolved

            Does this need to be undone when restoring from BFCache? (see also the comment on the other file)

            Helmut Januschka

            we no longer reset the cached TextInputState type to NONE on entry, we preserve the cached state and only clear `active_view_` while the page is frozen.

            On restore, the renderer re-sends its TextInputState (forced by clearing the widget's cached state on persisted pagehide), which re-establishes `active_view_` and the type in the browser.

            File third_party/blink/renderer/core/exported/web_view_impl.cc
            Line 2515, Patchset 3: RemoveFocusAndTextInputState(
            Rakina Zata Amni . resolved

            Please add comments

            Helmut Januschka

            Done

            Line 2703, Patchset 3: widget->UpdateTextInputState();
            Rakina Zata Amni . resolved

            Please fix this WARNING reported by autoreview issue finding: When `clear_focus` is false (i.e. entering BFCache), `UpdateTextInputState()` will find that the text input state hasn't changed from its cached value, so it won't send an IPC. This means the renderer's cached state remains `TEXT_INPUT_TYPE_TEXT`.

            However, when the page enters BFCache, the browser manually resets its state to `NONE` via `TextInputManager::DidEnterBackForwardCache`.

            When the page is eventually restored from BFCache, the renderer will not send an `UpdateTextInputState` IPC (because its cached state is still `TEXT_INPUT_TYPE_TEXT`), leaving the browser permanently out of sync (stuck in `NONE`). This will break IME and virtual keyboards upon BFCache restore.

            Consider explicitly clearing the widget's text input state (e.g. `widget->ClearTextInputState()`) upon entering or restoring from BFCache so that an update is forced on restore.

            Helmut Januschka

            Done

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Fergal Daly
            • Rakina Zata Amni
            Submit Requirements:
              • requirement satisfiedCode-Coverage
              • requirement is not satisfiedCode-Owners
              • requirement is not satisfiedCode-Review
              • requirement is not satisfiedReview-Enforcement
              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
              Gerrit-MessageType: comment
              Gerrit-Project: chromium/src
              Gerrit-Branch: main
              Gerrit-Change-Id: Id42617b17da46656f35c855eea02a8df848543e0
              Gerrit-Change-Number: 7829940
              Gerrit-PatchSet: 6
              Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
              Gerrit-Reviewer: Fergal Daly <fer...@google.com>
              Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
              Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
              Gerrit-Reviewer: Rakina Zata Amni <rak...@chromium.org>
              Gerrit-CC: Zhe Su <su...@chromium.org>
              Gerrit-Attention: Fergal Daly <fer...@google.com>
              Gerrit-Attention: Rakina Zata Amni <rak...@chromium.org>
              Gerrit-Comment-Date: Wed, 17 Jun 2026 13:12:22 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: No
              satisfied_requirement
              unsatisfied_requirement
              open
              diffy

              Rakina Zata Amni (Gerrit)

              unread,
              Jun 18, 2026, 11:06:20 PM (10 days ago) Jun 18
              to Helmut Januschka, Zhe Su, Fergal Daly, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, nona+...@chromium.org, shuche...@chromium.org, keithle...@chromium.org, creis...@chromium.org, alexmo...@chromium.org, yhanad...@chromium.org, navigation...@chromium.org, tranbaod...@chromium.org, chikamu...@chromium.org, bfcach...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
              Attention needed from Fergal Daly and Helmut Januschka

              Rakina Zata Amni added 3 comments

              File content/browser/renderer_host/render_frame_host_manager.cc
              Line 5299, Patchset 6 (Latest): render_frame_host_->set_focused_frame_tree_node_id_for_bfcache(
              focused_node);
              Rakina Zata Amni . unresolved

              Don't save per-page state in RenderFrameHost. Can you just pass this directly to StoredPage somehow, or at least save it in Page?

              Line 5543, Patchset 6 (Latest): frame_tree_node_->frame_tree().SetFocusedFrame(
              Rakina Zata Amni . unresolved

              Will this trigger observers or other things that might not expect that the focus is caused by BFCache restore instead of active user interaction?

              File third_party/blink/renderer/core/exported/web_view_impl.cc
              Line 2750, Patchset 6 (Latest): widget->UpdateTextInputState();
              Rakina Zata Amni . unresolved

              When entering the back-forward cache (`clear_focus == false`), calling `widget->UpdateTextInputState()` here is problematic. `FinishComposingText` might have modified the state (e.g., cleared the composition range), so `UpdateTextInputState` will send an asynchronous IPC to the browser with the current text input state (which has `type != NONE` since focus wasn't cleared).

              Because this IPC is asynchronous, it is highly likely to arrive at the browser *after* `TextInputManager::DidEnterBackForwardCache` has already cleared `active_view_`. When the browser processes this `TextInputStateChanged` IPC with `type != NONE` for a non-active view, it will set `active_view_ = view`, making this frozen BFCached page the active IME target again and potentially stealing focus from the newly navigated page!

              To fix this, avoid sending the IPC when the page is being frozen:
              ```cpp
              widget->FinishComposingText(false /* keep_selection */);
              if (clear_focus) {
              widget->UpdateTextInputState();
              } else {
              widget->ClearTextInputState();
              }
              ```
              Open in Gerrit

              Related details

              Attention is currently required from:
              • Fergal Daly
              • Helmut Januschka
              Submit Requirements:
                • requirement satisfiedCode-Coverage
                • requirement is not satisfiedCode-Owners
                • requirement is not satisfiedCode-Review
                • requirement is not satisfiedNo-Unresolved-Comments
                • requirement is not satisfiedReview-Enforcement
                Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                Gerrit-MessageType: comment
                Gerrit-Project: chromium/src
                Gerrit-Branch: main
                Gerrit-Change-Id: Id42617b17da46656f35c855eea02a8df848543e0
                Gerrit-Change-Number: 7829940
                Gerrit-PatchSet: 6
                Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
                Gerrit-Reviewer: Fergal Daly <fer...@google.com>
                Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
                Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
                Gerrit-Reviewer: Rakina Zata Amni <rak...@chromium.org>
                Gerrit-CC: Zhe Su <su...@chromium.org>
                Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
                Gerrit-Attention: Fergal Daly <fer...@google.com>
                Gerrit-Comment-Date: Fri, 19 Jun 2026 03:05:45 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: No
                satisfied_requirement
                unsatisfied_requirement
                open
                diffy

                Helmut Januschka (Gerrit)

                unread,
                Jun 19, 2026, 6:31:44 PM (9 days ago) Jun 19
                to Helmut Januschka, Rakina Zata Amni, Zhe Su, Fergal Daly, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, nona+...@chromium.org, shuche...@chromium.org, keithle...@chromium.org, creis...@chromium.org, alexmo...@chromium.org, yhanad...@chromium.org, navigation...@chromium.org, tranbaod...@chromium.org, chikamu...@chromium.org, bfcach...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
                Attention needed from Fergal Daly and Rakina Zata Amni

                Helmut Januschka added 3 comments

                File content/browser/renderer_host/render_frame_host_manager.cc
                Line 5299, Patchset 6: render_frame_host_->set_focused_frame_tree_node_id_for_bfcache(
                focused_node);
                Rakina Zata Amni . resolved

                Don't save per-page state in RenderFrameHost. Can you just pass this directly to StoredPage somehow, or at least save it in Page?

                Helmut Januschka

                Done, moved the stash onto `PageImpl`

                Line 5543, Patchset 6: frame_tree_node_->frame_tree().SetFocusedFrame(
                Rakina Zata Amni . resolved

                Will this trigger observers or other things that might not expect that the focus is caused by BFCache restore instead of active user interaction?

                Helmut Januschka

                `SetFocusedFrame` only sends focus IPCs + `OnFrameTreeNodeFocused` + AX update; no user-gesture/activation signal, so observers see it as a normal cross-frame focus change.

                File third_party/blink/renderer/core/exported/web_view_impl.cc
                Line 2750, Patchset 6: widget->UpdateTextInputState();
                Rakina Zata Amni . resolved

                When entering the back-forward cache (`clear_focus == false`), calling `widget->UpdateTextInputState()` here is problematic. `FinishComposingText` might have modified the state (e.g., cleared the composition range), so `UpdateTextInputState` will send an asynchronous IPC to the browser with the current text input state (which has `type != NONE` since focus wasn't cleared).

                Because this IPC is asynchronous, it is highly likely to arrive at the browser *after* `TextInputManager::DidEnterBackForwardCache` has already cleared `active_view_`. When the browser processes this `TextInputStateChanged` IPC with `type != NONE` for a non-active view, it will set `active_view_ = view`, making this frozen BFCached page the active IME target again and potentially stealing focus from the newly navigated page!

                To fix this, avoid sending the IPC when the page is being frozen:
                ```cpp
                widget->FinishComposingText(false /* keep_selection */);
                if (clear_focus) {
                widget->UpdateTextInputState();
                } else {
                widget->ClearTextInputState();
                }
                ```
                Helmut Januschka

                Done

                Open in Gerrit

                Related details

                Attention is currently required from:
                • Fergal Daly
                • Rakina Zata Amni
                Submit Requirements:
                  • requirement satisfiedCode-Coverage
                  • requirement is not satisfiedCode-Owners
                  • requirement is not satisfiedCode-Review
                  • requirement is not satisfiedReview-Enforcement
                  Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                  Gerrit-MessageType: comment
                  Gerrit-Project: chromium/src
                  Gerrit-Branch: main
                  Gerrit-Change-Id: Id42617b17da46656f35c855eea02a8df848543e0
                  Gerrit-Change-Number: 7829940
                  Gerrit-PatchSet: 7
                  Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
                  Gerrit-Reviewer: Fergal Daly <fer...@google.com>
                  Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
                  Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
                  Gerrit-Reviewer: Rakina Zata Amni <rak...@chromium.org>
                  Gerrit-CC: Zhe Su <su...@chromium.org>
                  Gerrit-Attention: Fergal Daly <fer...@google.com>
                  Gerrit-Attention: Rakina Zata Amni <rak...@chromium.org>
                  Gerrit-Comment-Date: Fri, 19 Jun 2026 22:31:23 +0000
                  Gerrit-HasComments: Yes
                  Gerrit-Has-Labels: No
                  satisfied_requirement
                  unsatisfied_requirement
                  open
                  diffy

                  Rakina Zata Amni (Gerrit)

                  unread,
                  Jun 22, 2026, 5:45:45 AM (7 days ago) Jun 22
                  to Helmut Januschka, Ken Buchanan, Zhe Su, Fergal Daly, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, nona+...@chromium.org, shuche...@chromium.org, keithle...@chromium.org, creis...@chromium.org, alexmo...@chromium.org, yhanad...@chromium.org, navigation...@chromium.org, tranbaod...@chromium.org, chikamu...@chromium.org, bfcach...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
                  Attention needed from Fergal Daly, Helmut Januschka and Ken Buchanan

                  Rakina Zata Amni added 4 comments

                  Rakina Zata Amni . resolved

                  Let me add kenrb@ who might know more about input / focus than me here to review those areas.

                  File content/browser/back_forward_cache_browsertest.cc
                  Rakina Zata Amni . unresolved

                  Please fix this WARNING reported by autoreview issue finding: Nit: We can use `EXPECT_TRUE` here:
                  ```cpp
                  EXPECT_TRUE(EvalJs(rfh_1, "document.activeElement === input").ExtractBool());
                  ```
                  Or even omit `.ExtractBool()` as `EvalJsResult` is comparable to `bool`:
                  ```cpp
                  EXPECT_EQ(true, EvalJs(rfh_1, "document.activeElement === input"));
                  ```

                  Line 1972, Patchset 7 (Latest): EXPECT_EQ(true, EvalJs(rfh_subframe_a, "document.activeElement === input")
                  Rakina Zata Amni . unresolved

                  Please fix this WARNING reported by autoreview issue finding: Nit: Consider using `EXPECT_TRUE` here as well (or omitting `.ExtractBool()`).

                  File content/browser/renderer_host/page_impl.h
                  Line 298, Patchset 7 (Latest): void set_focused_frame_tree_node_id_for_bfcache(FrameTreeNodeId id) {
                  Rakina Zata Amni . unresolved

                  We can actually get rid of `focused_frame_tree_node_id_for_bfcache_` entirely from `PageImpl`.

                  **Why this works:**
                  The focused frame ID is only saved in `RenderFrameHostManager::CommitPending` and subsequently read in `RenderFrameHostManager::CollectPage`. Since `CollectPage` is called synchronously downstream from `CommitPending` (via `UnloadOldFrame`), we don't need to persist this state on the `PageImpl` object. We can simply pass it down the call stack as a local variable.

                  **What to change:**
                  1. Revert the changes to `page_impl.h` (remove the getters/setters and the member variable).
                  2. In `RenderFrameHostManager::CommitPending`, capture the focused frame ID into a local variable (e.g., `FrameTreeNodeId focused_node_id;`) instead of stashing it on the outgoing page.
                  3. Update the signature of `UnloadOldFrame` to accept this `focused_node_id` and pass it in from `CommitPending`.
                  4. Update the signature of `CollectPage` to also accept the `focused_node_id`, passing it down from `UnloadOldFrame`.
                  5. In `CollectPage`, use this new argument directly when calling `stored_page->set_focused_frame_tree_node_id(focused_node_id);`.

                  Open in Gerrit

                  Related details

                  Attention is currently required from:
                  • Fergal Daly
                  • Helmut Januschka
                  • Ken Buchanan
                  Submit Requirements:
                    • requirement satisfiedCode-Coverage
                    • requirement is not satisfiedCode-Owners
                    • requirement is not satisfiedCode-Review
                    • requirement is not satisfiedNo-Unresolved-Comments
                    • requirement is not satisfiedReview-Enforcement
                    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                    Gerrit-MessageType: comment
                    Gerrit-Project: chromium/src
                    Gerrit-Branch: main
                    Gerrit-Change-Id: Id42617b17da46656f35c855eea02a8df848543e0
                    Gerrit-Change-Number: 7829940
                    Gerrit-PatchSet: 7
                    Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
                    Gerrit-Reviewer: Fergal Daly <fer...@google.com>
                    Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
                    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
                    Gerrit-Reviewer: Ken Buchanan <ke...@chromium.org>
                    Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
                    Gerrit-Attention: Fergal Daly <fer...@google.com>
                    Gerrit-Attention: Ken Buchanan <ke...@chromium.org>
                    Gerrit-Comment-Date: Mon, 22 Jun 2026 09:45:04 +0000
                    Gerrit-HasComments: Yes
                    Gerrit-Has-Labels: No
                    satisfied_requirement
                    unsatisfied_requirement
                    open
                    diffy

                    Helmut Januschka (Gerrit)

                    unread,
                    Jun 22, 2026, 8:41:38 AM (7 days ago) Jun 22
                    to Ken Buchanan, Rakina Zata Amni, Zhe Su, Fergal Daly, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, nona+...@chromium.org, shuche...@chromium.org, keithle...@chromium.org, creis...@chromium.org, alexmo...@chromium.org, yhanad...@chromium.org, navigation...@chromium.org, tranbaod...@chromium.org, chikamu...@chromium.org, bfcach...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
                    Attention needed from Fergal Daly, Ken Buchanan and Rakina Zata Amni

                    Helmut Januschka added 3 comments

                    File content/browser/back_forward_cache_browsertest.cc
                    Line 1885, Patchset 7: EXPECT_EQ(true,
                    Rakina Zata Amni . resolved

                    Please fix this WARNING reported by autoreview issue finding: Nit: We can use `EXPECT_TRUE` here:
                    ```cpp
                    EXPECT_TRUE(EvalJs(rfh_1, "document.activeElement === input").ExtractBool());
                    ```
                    Or even omit `.ExtractBool()` as `EvalJsResult` is comparable to `bool`:
                    ```cpp
                    EXPECT_EQ(true, EvalJs(rfh_1, "document.activeElement === input"));
                    ```

                    Helmut Januschka

                    Done

                    Line 1972, Patchset 7: EXPECT_EQ(true, EvalJs(rfh_subframe_a, "document.activeElement === input")
                    Rakina Zata Amni . resolved

                    Please fix this WARNING reported by autoreview issue finding: Nit: Consider using `EXPECT_TRUE` here as well (or omitting `.ExtractBool()`).

                    Helmut Januschka

                    Done

                    File content/browser/renderer_host/page_impl.h
                    Line 298, Patchset 7: void set_focused_frame_tree_node_id_for_bfcache(FrameTreeNodeId id) {
                    Rakina Zata Amni . resolved

                    We can actually get rid of `focused_frame_tree_node_id_for_bfcache_` entirely from `PageImpl`.

                    **Why this works:**
                    The focused frame ID is only saved in `RenderFrameHostManager::CommitPending` and subsequently read in `RenderFrameHostManager::CollectPage`. Since `CollectPage` is called synchronously downstream from `CommitPending` (via `UnloadOldFrame`), we don't need to persist this state on the `PageImpl` object. We can simply pass it down the call stack as a local variable.

                    **What to change:**
                    1. Revert the changes to `page_impl.h` (remove the getters/setters and the member variable).
                    2. In `RenderFrameHostManager::CommitPending`, capture the focused frame ID into a local variable (e.g., `FrameTreeNodeId focused_node_id;`) instead of stashing it on the outgoing page.
                    3. Update the signature of `UnloadOldFrame` to accept this `focused_node_id` and pass it in from `CommitPending`.
                    4. Update the signature of `CollectPage` to also accept the `focused_node_id`, passing it down from `UnloadOldFrame`.
                    5. In `CollectPage`, use this new argument directly when calling `stored_page->set_focused_frame_tree_node_id(focused_node_id);`.

                    Helmut Januschka

                    Done

                    Open in Gerrit

                    Related details

                    Attention is currently required from:
                    • Fergal Daly
                    • Ken Buchanan
                    • Rakina Zata Amni
                      Submit Requirements:
                        • requirement satisfiedCode-Coverage
                        • requirement is not satisfiedCode-Owners
                        • requirement is not satisfiedCode-Review
                        • requirement is not satisfiedReview-Enforcement
                        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                        Gerrit-MessageType: comment
                        Gerrit-Project: chromium/src
                        Gerrit-Branch: main
                        Gerrit-Change-Id: Id42617b17da46656f35c855eea02a8df848543e0
                        Gerrit-Change-Number: 7829940
                        Gerrit-PatchSet: 8
                        Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
                        Gerrit-Reviewer: Fergal Daly <fer...@google.com>
                        Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
                        Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
                        Gerrit-Reviewer: Ken Buchanan <ke...@chromium.org>
                        Gerrit-Reviewer: Rakina Zata Amni <rak...@chromium.org>
                        Gerrit-CC: Zhe Su <su...@chromium.org>
                        Gerrit-Attention: Fergal Daly <fer...@google.com>
                        Gerrit-Attention: Ken Buchanan <ke...@chromium.org>
                        Gerrit-Attention: Rakina Zata Amni <rak...@chromium.org>
                        Gerrit-Comment-Date: Mon, 22 Jun 2026 12:41:20 +0000
                        Gerrit-HasComments: Yes
                        Gerrit-Has-Labels: No
                        satisfied_requirement
                        unsatisfied_requirement
                        open
                        diffy

                        Ken Buchanan (Gerrit)

                        unread,
                        Jun 22, 2026, 10:53:47 AM (7 days ago) Jun 22
                        to Helmut Januschka, Rakina Zata Amni, Zhe Su, Fergal Daly, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, nona+...@chromium.org, shuche...@chromium.org, keithle...@chromium.org, creis...@chromium.org, alexmo...@chromium.org, yhanad...@chromium.org, navigation...@chromium.org, tranbaod...@chromium.org, chikamu...@chromium.org, bfcach...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
                        Attention needed from Fergal Daly, Helmut Januschka and Rakina Zata Amni

                        Ken Buchanan added 4 comments

                        File content/browser/renderer_host/page_impl.h
                        Line 22, Patchset 8 (Latest):#include "content/public/browser/frame_tree_node_id.h"
                        Ken Buchanan . unresolved

                        No longer needed.

                        File content/browser/renderer_host/render_frame_host_impl.cc
                        Line 3158, Patchset 8 (Latest): for (FrameTreeNode* node : FrameTree::SubtreeAndInnerTreeNodes(
                        Ken Buchanan . unresolved

                        Rather than doing a manual traversal, can you just get the active widget from the TextInputManager and use `std::ranges::find_if` to see if it corresponds to one in this NodeRange?

                        File content/browser/renderer_host/render_frame_host_manager.cc
                        Line 5291, Patchset 8 (Latest): if (focus_render_view && is_main_frame) {
                        Ken Buchanan . unresolved

                        If the current page is not focused, why do we not want to remember which frame has focus within the current page? I think we are still preserving element-level focus within the frame.

                        Line 5531, Patchset 8 (Latest): if (focus_render_view && pending_stored_page &&
                        Ken Buchanan . unresolved

                        Same question here. Does this lose the focused subframe if the current tab is not focused and in the foreground?

                        Open in Gerrit

                        Related details

                        Attention is currently required from:
                        • Fergal Daly
                        • Helmut Januschka
                        • Rakina Zata Amni
                        Submit Requirements:
                          • requirement satisfiedCode-Coverage
                          • requirement is not satisfiedCode-Owners
                          • requirement is not satisfiedCode-Review
                          • requirement is not satisfiedNo-Unresolved-Comments
                          • requirement is not satisfiedReview-Enforcement
                          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                          Gerrit-MessageType: comment
                          Gerrit-Project: chromium/src
                          Gerrit-Branch: main
                          Gerrit-Change-Id: Id42617b17da46656f35c855eea02a8df848543e0
                          Gerrit-Change-Number: 7829940
                          Gerrit-PatchSet: 8
                          Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
                          Gerrit-Reviewer: Fergal Daly <fer...@google.com>
                          Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
                          Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
                          Gerrit-Reviewer: Ken Buchanan <ke...@chromium.org>
                          Gerrit-Reviewer: Rakina Zata Amni <rak...@chromium.org>
                          Gerrit-CC: Zhe Su <su...@chromium.org>
                          Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
                          Gerrit-Attention: Fergal Daly <fer...@google.com>
                          Gerrit-Attention: Rakina Zata Amni <rak...@chromium.org>
                          Gerrit-Comment-Date: Mon, 22 Jun 2026 14:53:32 +0000
                          Gerrit-HasComments: Yes
                          Gerrit-Has-Labels: No
                          satisfied_requirement
                          unsatisfied_requirement
                          open
                          diffy

                          Helmut Januschka (Gerrit)

                          unread,
                          Jun 22, 2026, 6:07:38 PM (6 days ago) Jun 22
                          to Ken Buchanan, Rakina Zata Amni, Zhe Su, Fergal Daly, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, nona+...@chromium.org, shuche...@chromium.org, keithle...@chromium.org, creis...@chromium.org, alexmo...@chromium.org, yhanad...@chromium.org, navigation...@chromium.org, tranbaod...@chromium.org, chikamu...@chromium.org, bfcach...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
                          Attention needed from Fergal Daly, Ken Buchanan and Rakina Zata Amni

                          Helmut Januschka added 5 comments

                          Patchset-level comments
                          File-level comment, Patchset 8:
                          Helmut Januschka . resolved

                          @ke...@chromium.org thank you for the feedback, addressed all comments! let me know if you'd want me to address anything else

                          File content/browser/renderer_host/page_impl.h
                          Line 22, Patchset 8:#include "content/public/browser/frame_tree_node_id.h"
                          Ken Buchanan . resolved

                          No longer needed.

                          Helmut Januschka

                          Done

                          File content/browser/renderer_host/render_frame_host_impl.cc
                          Line 3158, Patchset 8: for (FrameTreeNode* node : FrameTree::SubtreeAndInnerTreeNodes(
                          Ken Buchanan . resolved

                          Rather than doing a manual traversal, can you just get the active widget from the TextInputManager and use `std::ranges::find_if` to see if it corresponds to one in this NodeRange?

                          Helmut Januschka

                          works! thx!

                          File content/browser/renderer_host/render_frame_host_manager.cc
                          Line 5291, Patchset 8: if (focus_render_view && is_main_frame) {
                          Ken Buchanan . resolved

                          If the current page is not focused, why do we not want to remember which frame has focus within the current page? I think we are still preserving element-level focus within the frame.

                          Helmut Januschka

                          Good point. Dropped the `focus_render_view` part of the guard so we always remember the focused frame within the page when swapping out the main frame. Updated the comment to note this.

                          Line 5531, Patchset 8: if (focus_render_view && pending_stored_page &&
                          Ken Buchanan . resolved

                          Same question here. Does this lose the focused subframe if the current tab is not focused and in the foreground?

                          Helmut Januschka

                          Yeah, it would have. Dropped `focus_render_view` here too.

                          Open in Gerrit

                          Related details

                          Attention is currently required from:
                          • Fergal Daly
                          • Ken Buchanan
                          • Rakina Zata Amni
                          Submit Requirements:
                            • requirement satisfiedCode-Coverage
                            • requirement is not satisfiedCode-Owners
                            • requirement is not satisfiedCode-Review
                            • requirement is not satisfiedReview-Enforcement
                            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                            Gerrit-MessageType: comment
                            Gerrit-Project: chromium/src
                            Gerrit-Branch: main
                            Gerrit-Change-Id: Id42617b17da46656f35c855eea02a8df848543e0
                            Gerrit-Change-Number: 7829940
                            Gerrit-PatchSet: 8
                            Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
                            Gerrit-Reviewer: Fergal Daly <fer...@google.com>
                            Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
                            Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
                            Gerrit-Reviewer: Ken Buchanan <ke...@chromium.org>
                            Gerrit-Reviewer: Rakina Zata Amni <rak...@chromium.org>
                            Gerrit-CC: Zhe Su <su...@chromium.org>
                            Gerrit-Attention: Fergal Daly <fer...@google.com>
                            Gerrit-Attention: Ken Buchanan <ke...@chromium.org>
                            Gerrit-Attention: Rakina Zata Amni <rak...@chromium.org>
                            Gerrit-Comment-Date: Mon, 22 Jun 2026 22:07:17 +0000
                            Gerrit-HasComments: Yes
                            Gerrit-Has-Labels: No
                            Comment-In-Reply-To: Ken Buchanan <ke...@chromium.org>
                            satisfied_requirement
                            unsatisfied_requirement
                            open
                            diffy

                            Ken Buchanan (Gerrit)

                            unread,
                            Jun 23, 2026, 10:08:04 AM (6 days ago) Jun 23
                            to Helmut Januschka, Rakina Zata Amni, Zhe Su, Fergal Daly, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, nona+...@chromium.org, shuche...@chromium.org, keithle...@chromium.org, creis...@chromium.org, alexmo...@chromium.org, yhanad...@chromium.org, navigation...@chromium.org, tranbaod...@chromium.org, chikamu...@chromium.org, bfcach...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
                            Attention needed from Fergal Daly, Helmut Januschka and Rakina Zata Amni

                            Ken Buchanan voted and added 1 comment

                            Votes added by Ken Buchanan

                            Code-Review+1

                            1 comment

                            Patchset-level comments
                            File-level comment, Patchset 9 (Latest):
                            Ken Buchanan . resolved

                            lgtm but rakina@ should also approve it as a full content owner

                            Open in Gerrit

                            Related details

                            Attention is currently required from:
                            • Fergal Daly
                            • Helmut Januschka
                            • Rakina Zata Amni
                            Submit Requirements:
                              • requirement satisfiedCode-Coverage
                              • requirement is not satisfiedCode-Owners
                              • requirement satisfiedCode-Review
                              • requirement satisfiedReview-Enforcement
                              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                              Gerrit-MessageType: comment
                              Gerrit-Project: chromium/src
                              Gerrit-Branch: main
                              Gerrit-Change-Id: Id42617b17da46656f35c855eea02a8df848543e0
                              Gerrit-Change-Number: 7829940
                              Gerrit-PatchSet: 9
                              Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
                              Gerrit-Reviewer: Fergal Daly <fer...@google.com>
                              Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
                              Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
                              Gerrit-Reviewer: Ken Buchanan <ke...@chromium.org>
                              Gerrit-Reviewer: Rakina Zata Amni <rak...@chromium.org>
                              Gerrit-CC: Zhe Su <su...@chromium.org>
                              Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
                              Gerrit-Attention: Fergal Daly <fer...@google.com>
                              Gerrit-Attention: Rakina Zata Amni <rak...@chromium.org>
                              Gerrit-Comment-Date: Tue, 23 Jun 2026 14:07:50 +0000
                              Gerrit-HasComments: Yes
                              Gerrit-Has-Labels: Yes
                              satisfied_requirement
                              unsatisfied_requirement
                              open
                              diffy

                              Rakina Zata Amni (Gerrit)

                              unread,
                              Jun 23, 2026, 7:38:07 PM (5 days ago) Jun 23
                              to Helmut Januschka, Ken Buchanan, Zhe Su, Fergal Daly, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, nona+...@chromium.org, shuche...@chromium.org, keithle...@chromium.org, creis...@chromium.org, alexmo...@chromium.org, yhanad...@chromium.org, navigation...@chromium.org, tranbaod...@chromium.org, chikamu...@chromium.org, bfcach...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
                              Attention needed from Fergal Daly and Helmut Januschka

                              Rakina Zata Amni voted Code-Review+1

                              Code-Review+1
                              Open in Gerrit

                              Related details

                              Attention is currently required from:
                              • Fergal Daly
                              • Helmut Januschka
                              Submit Requirements:
                              • requirement satisfiedCode-Coverage
                              • requirement is not satisfiedCode-Owners
                              • requirement satisfiedCode-Review
                              • requirement satisfiedReview-Enforcement
                              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                              Gerrit-MessageType: comment
                              Gerrit-Project: chromium/src
                              Gerrit-Branch: main
                              Gerrit-Change-Id: Id42617b17da46656f35c855eea02a8df848543e0
                              Gerrit-Change-Number: 7829940
                              Gerrit-PatchSet: 10
                              Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
                              Gerrit-Reviewer: Fergal Daly <fer...@google.com>
                              Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
                              Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
                              Gerrit-Reviewer: Ken Buchanan <ke...@chromium.org>
                              Gerrit-Reviewer: Rakina Zata Amni <rak...@chromium.org>
                              Gerrit-CC: Zhe Su <su...@chromium.org>
                              Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
                              Gerrit-Attention: Fergal Daly <fer...@google.com>
                              Gerrit-Comment-Date: Tue, 23 Jun 2026 23:37:26 +0000
                              Gerrit-HasComments: No
                              Gerrit-Has-Labels: Yes
                              satisfied_requirement
                              unsatisfied_requirement
                              open
                              diffy
                              Reply all
                              Reply to author
                              Forward
                              0 new messages