[Tabbed Web App] Fix spurious incorrect origin text flash [chromium/src : main]

0 views
Skip to first unread message

Dana Fried (Gerrit)

unread,
Jul 20, 2026, 1:00:36 PM (yesterday) Jul 20
to Chromium Web Applications Reviews, Chromium LUCI CQ, chromium...@chromium.org
Attention needed from Chromium Web Applications Reviews

Dana Fried voted

Auto-Submit+1
Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Chromium Web Applications Reviews
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement 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: I6c598f7c7137df68f56af2b5e84020541a7add28
Gerrit-Change-Number: 8124935
Gerrit-PatchSet: 2
Gerrit-Owner: Dana Fried <dfr...@chromium.org>
Gerrit-Reviewer: Chromium Web Applications Reviews <chromium-web...@google.com>
Gerrit-Reviewer: Dana Fried <dfr...@chromium.org>
Gerrit-Attention: Chromium Web Applications Reviews <chromium-web...@google.com>
Gerrit-Comment-Date: Mon, 20 Jul 2026 17:00:17 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

gwsq (Gerrit)

unread,
Jul 20, 2026, 1:05:59 PM (yesterday) Jul 20
to Dana Fried, Chromium Web Applications Reviews, Nate Chapin, Chromium LUCI CQ, chromium...@chromium.org
Attention needed from Nate Chapin

Message from gwsq

Shadowed: jap...@chromium.org

Reviewer source(s):
jap...@chromium.org is from context(googleclient/chrome/chromium_gwsq/chrome/browser/ui/web_applications/config.gwsq,googleclient/chrome/chromium_gwsq/chrome/browser/web_applications/config.gwsq)

Open in Gerrit

Related details

Attention is currently required from:
  • Nate Chapin
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement 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: I6c598f7c7137df68f56af2b5e84020541a7add28
Gerrit-Change-Number: 8124935
Gerrit-PatchSet: 2
Gerrit-Owner: Dana Fried <dfr...@chromium.org>
Gerrit-Reviewer: Dana Fried <dfr...@chromium.org>
Gerrit-Reviewer: Nate Chapin <jap...@chromium.org>
Gerrit-CC: Chromium Web Applications Reviews <chromium-web...@google.com>
Gerrit-CC: gwsq
Gerrit-Attention: Nate Chapin <jap...@chromium.org>
Gerrit-Comment-Date: Mon, 20 Jul 2026 17:05:26 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Dibyajyoti Pal (Gerrit)

unread,
Jul 20, 2026, 2:22:36 PM (yesterday) Jul 20
to Dana Fried, Chromium Web Applications Reviews, Nate Chapin, Chromium LUCI CQ, chromium...@chromium.org
Attention needed from Dana Fried and Nate Chapin

Dibyajyoti Pal added 1 comment

File chrome/browser/ui/views/web_apps/frame_toolbar/web_app_origin_text.cc
Line 151, Patchset 3 (Latest): // Flash text is generated from the app, not the tab. If the tab is
// switched, it may end up being a different source which for which the
// app-generated text is incorrect. Therefore, if the tab changes, don't
// start a new flash animation, ever.
Observe(nullptr);
Dibyajyoti Pal . unresolved

Won't this stop observing the web contents, and therefore prevent any new origin text animations from happening for the same browser instance? Since this is created once per `BrowserView`, should this instead be doing the following?

```
Observe(nullptr);
Observe(selection.new_contents);
```

Open in Gerrit

Related details

Attention is currently required from:
  • Dana Fried
  • Nate Chapin
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement 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: I6c598f7c7137df68f56af2b5e84020541a7add28
    Gerrit-Change-Number: 8124935
    Gerrit-PatchSet: 3
    Gerrit-Owner: Dana Fried <dfr...@chromium.org>
    Gerrit-Reviewer: Dana Fried <dfr...@chromium.org>
    Gerrit-Reviewer: Nate Chapin <jap...@chromium.org>
    Gerrit-CC: Chromium Web Applications Reviews <chromium-web...@google.com>
    Gerrit-CC: Dibyajyoti Pal <diby...@chromium.org>
    Gerrit-CC: gwsq
    Gerrit-Attention: Dana Fried <dfr...@chromium.org>
    Gerrit-Attention: Nate Chapin <jap...@chromium.org>
    Gerrit-Comment-Date: Mon, 20 Jul 2026 18:22:25 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Dana Fried (Gerrit)

    unread,
    Jul 20, 2026, 2:44:05 PM (yesterday) Jul 20
    to Dibyajyoti Pal, Chromium Web Applications Reviews, Nate Chapin, Chromium LUCI CQ, chromium...@chromium.org
    Attention needed from Dibyajyoti Pal and Nate Chapin

    Dana Fried voted and added 1 comment

    Votes added by Dana Fried

    Auto-Submit+1

    1 comment

    File chrome/browser/ui/views/web_apps/frame_toolbar/web_app_origin_text.cc
    Line 151, Patchset 3 (Latest): // Flash text is generated from the app, not the tab. If the tab is
    // switched, it may end up being a different source which for which the
    // app-generated text is incorrect. Therefore, if the tab changes, don't
    // start a new flash animation, ever.
    Observe(nullptr);
    Dibyajyoti Pal . unresolved

    Won't this stop observing the web contents, and therefore prevent any new origin text animations from happening for the same browser instance? Since this is created once per `BrowserView`, should this instead be doing the following?

    ```
    Observe(nullptr);
    Observe(selection.new_contents);
    ```

    Dana Fried

    The problem is that the text isn't updated, and there's no easy way to do that.

    That's the current behavior; it observes whatever the current web contents is. But the text comes from the app, so if it's not the same site it shows but it's wrong, which is what the attached bug is.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Dibyajyoti Pal
    • Nate Chapin
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement 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: I6c598f7c7137df68f56af2b5e84020541a7add28
    Gerrit-Change-Number: 8124935
    Gerrit-PatchSet: 3
    Gerrit-Owner: Dana Fried <dfr...@chromium.org>
    Gerrit-Reviewer: Dana Fried <dfr...@chromium.org>
    Gerrit-Reviewer: Nate Chapin <jap...@chromium.org>
    Gerrit-CC: Chromium Web Applications Reviews <chromium-web...@google.com>
    Gerrit-CC: Dibyajyoti Pal <diby...@chromium.org>
    Gerrit-CC: gwsq
    Gerrit-Attention: Dibyajyoti Pal <diby...@chromium.org>
    Gerrit-Attention: Nate Chapin <jap...@chromium.org>
    Gerrit-Comment-Date: Mon, 20 Jul 2026 18:43:51 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Dibyajyoti Pal <diby...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Dana Fried (Gerrit)

    unread,
    Jul 20, 2026, 2:44:09 PM (yesterday) Jul 20
    to Dibyajyoti Pal, Chromium Web Applications Reviews, Nate Chapin, Chromium LUCI CQ, chromium...@chromium.org
    Attention needed from Dibyajyoti Pal and Nate Chapin

    Dana Fried voted Auto-Submit+0

    Auto-Submit+0
    Gerrit-Comment-Date: Mon, 20 Jul 2026 18:43:57 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Dana Fried (Gerrit)

    unread,
    Jul 20, 2026, 3:25:29 PM (yesterday) Jul 20
    to Dibyajyoti Pal, Chromium Web Applications Reviews, Nate Chapin, Chromium LUCI CQ, chromium...@chromium.org
    Attention needed from Dibyajyoti Pal and Nate Chapin

    Dana Fried voted Commit-Queue+1

    Commit-Queue+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Dibyajyoti Pal
    • Nate Chapin
    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: I6c598f7c7137df68f56af2b5e84020541a7add28
    Gerrit-Change-Number: 8124935
    Gerrit-PatchSet: 4
    Gerrit-Owner: Dana Fried <dfr...@chromium.org>
    Gerrit-Reviewer: Dana Fried <dfr...@chromium.org>
    Gerrit-Reviewer: Nate Chapin <jap...@chromium.org>
    Gerrit-CC: Chromium Web Applications Reviews <chromium-web...@google.com>
    Gerrit-CC: Dibyajyoti Pal <diby...@chromium.org>
    Gerrit-CC: gwsq
    Gerrit-Attention: Dibyajyoti Pal <diby...@chromium.org>
    Gerrit-Attention: Nate Chapin <jap...@chromium.org>
    Gerrit-Comment-Date: Mon, 20 Jul 2026 19:25:18 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Dana Fried (Gerrit)

    unread,
    Jul 20, 2026, 3:26:48 PM (yesterday) Jul 20
    to Dibyajyoti Pal, Chromium Web Applications Reviews, Nate Chapin, Chromium LUCI CQ, chromium...@chromium.org
    Attention needed from Dibyajyoti Pal and Nate Chapin

    Dana Fried added 1 comment

    File chrome/browser/ui/views/web_apps/frame_toolbar/web_app_origin_text.cc
    Line 151, Patchset 3: // Flash text is generated from the app, not the tab. If the tab is

    // switched, it may end up being a different source which for which the
    // app-generated text is incorrect. Therefore, if the tab changes, don't
    // start a new flash animation, ever.
    Observe(nullptr);
    Dibyajyoti Pal . resolved

    Won't this stop observing the web contents, and therefore prevent any new origin text animations from happening for the same browser instance? Since this is created once per `BrowserView`, should this instead be doing the following?

    ```
    Observe(nullptr);
    Observe(selection.new_contents);
    ```

    Dana Fried

    The problem is that the text isn't updated, and there's no easy way to do that.

    That's the current behavior; it observes whatever the current web contents is. But the text comes from the app, so if it's not the same site it shows but it's wrong, which is what the attached bug is.

    Dana Fried

    I've updated it to handle things a little more accurately.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Dibyajyoti Pal
    • Nate Chapin
    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: I6c598f7c7137df68f56af2b5e84020541a7add28
      Gerrit-Change-Number: 8124935
      Gerrit-PatchSet: 4
      Gerrit-Owner: Dana Fried <dfr...@chromium.org>
      Gerrit-Reviewer: Dana Fried <dfr...@chromium.org>
      Gerrit-Reviewer: Nate Chapin <jap...@chromium.org>
      Gerrit-CC: Chromium Web Applications Reviews <chromium-web...@google.com>
      Gerrit-CC: Dibyajyoti Pal <diby...@chromium.org>
      Gerrit-CC: gwsq
      Gerrit-Attention: Dibyajyoti Pal <diby...@chromium.org>
      Gerrit-Attention: Nate Chapin <jap...@chromium.org>
      Gerrit-Comment-Date: Mon, 20 Jul 2026 19:26:28 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Dibyajyoti Pal <diby...@chromium.org>
      Comment-In-Reply-To: Dana Fried <dfr...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Dibyajyoti Pal (Gerrit)

      unread,
      Jul 20, 2026, 4:14:51 PM (yesterday) Jul 20
      to Dana Fried, android-bu...@system.gserviceaccount.com, Chromium Web Applications Reviews, Nate Chapin, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org
      Attention needed from Dana Fried and Nate Chapin

      Dibyajyoti Pal added 2 comments

      File chrome/browser/ui/views/web_apps/frame_toolbar/web_app_origin_text.cc
      Line 151, Patchset 4 (Latest): if (!selection.old_contents) {
      // Observe the new contents if it's the first active contents.
      Observe(selection.new_contents);
      } else if (selection.old_contents != selection.new_contents) {

      // Flash text is generated from the app, not the tab. If the tab is
      // switched, it may end up being a different source which for which the
      // app-generated text is incorrect. Therefore, if the tab actually
      // changes (as opposed to the initial contents being added), stop trying
      // to flash the origin text on page load.
      Observe(nullptr);
      }
      }
      Dibyajyoti Pal . unresolved

      Hmmmm, looking at the bug, it seems like the fix might be a bit more complicated. The old origin still showing up when a new navigation happens means that `origin_text_` [1] is stale, and stopping the observing of the old web contents might not be enough to fix it.

      Imo, we should also be updating the `origin_text_` and `label_` both when the tab strip model changes, because in case the tab changes to a new tab with a different theme, the flash will still occur regardless of whether `web_contents()` changed, leading to the previous tab's origin being shown.

      What if we instead did the following:
      1. Move L169-200, which casues the `label_` and `origin_text_` to be updated to a new function, called `bool UpdateOriginText(bool start_animation)`. The only difference is that in L200, we'll wrap the starting of the animation to the following:

      ```
      if(start_animation) {
      StartFadeAnimation();
      }
      ```
      2. Update `DidFinishNavigation()` to call:
      ```
      void WebAppOriginText::DidFinishNavigation(content::NavigationHandle* handle) {
      if (!handle->IsInPrimaryMainFrame() || handle->IsSameDocument()) {
      return;
      }
      UpdateOriginText(true);
      }
      ```

      3. Update `OnTabStripModelChanged()` to be:

      ```
      void WebAppOriginText::OnTabStripModelChanged(
      TabStripModel* tab_strip_model,
      const TabStripModelChange& change,
      const TabStripSelectionChange& selection) {
      if (selection.active_tab_changed() && !tab_strip_model->empty()) {
      Observe(nullptr); // Stop observing old web contents.
      Observe(selection.new_contents);
      UpdateOriginText(false); // Updates origin, but prevents animation from showing.
      }
      }
      ```

      Wdyt?

      [1] https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/ui/views/web_apps/frame_toolbar/web_app_origin_text.h;l=75-76;drc=0ce06599d4f0c331bfc4018b20e0b196f375cdc2

      File third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc
      Line 560, Patchset 4 (Latest):void DrawImageToCanvas(StaticBitmapImage* image, cc::PaintCanvas& canvas) {
      Dibyajyoti Pal . unresolved

      Is this change needed? Let's remove if not?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Dana Fried
      • Nate Chapin
      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: I6c598f7c7137df68f56af2b5e84020541a7add28
        Gerrit-Change-Number: 8124935
        Gerrit-PatchSet: 4
        Gerrit-Owner: Dana Fried <dfr...@chromium.org>
        Gerrit-Reviewer: Dana Fried <dfr...@chromium.org>
        Gerrit-Reviewer: Nate Chapin <jap...@chromium.org>
        Gerrit-CC: Chromium Web Applications Reviews <chromium-web...@google.com>
        Gerrit-CC: Dibyajyoti Pal <diby...@chromium.org>
        Gerrit-CC: gwsq
        Gerrit-Attention: Dana Fried <dfr...@chromium.org>
        Gerrit-Attention: Nate Chapin <jap...@chromium.org>
        Gerrit-Comment-Date: Mon, 20 Jul 2026 20:14:41 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Dana Fried (Gerrit)

        unread,
        Jul 20, 2026, 5:09:15 PM (yesterday) Jul 20
        to android-bu...@system.gserviceaccount.com, Dibyajyoti Pal, Chromium Web Applications Reviews, Nate Chapin, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org
        Attention needed from Dibyajyoti Pal and Nate Chapin

        Dana Fried added 2 comments

        File chrome/browser/ui/views/web_apps/frame_toolbar/web_app_origin_text.cc
        Line 151, Patchset 4: if (!selection.old_contents) {
        Dana Fried

        You're right; there's no really easy fix here. I'm gonna try to rethink this CL and will send it back a bit later.

        File third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc
        Line 560, Patchset 4:void DrawImageToCanvas(StaticBitmapImage* image, cc::PaintCanvas& canvas) {
        Dibyajyoti Pal . resolved

        Is this change needed? Let's remove if not?

        Dana Fried

        oof frick that was a merge error

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Dibyajyoti Pal
        • Nate Chapin
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement 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: I6c598f7c7137df68f56af2b5e84020541a7add28
        Gerrit-Change-Number: 8124935
        Gerrit-PatchSet: 5
        Gerrit-Owner: Dana Fried <dfr...@chromium.org>
        Gerrit-Reviewer: Dana Fried <dfr...@chromium.org>
        Gerrit-Reviewer: Nate Chapin <jap...@chromium.org>
        Gerrit-CC: Chromium Web Applications Reviews <chromium-web...@google.com>
        Gerrit-CC: Dibyajyoti Pal <diby...@chromium.org>
        Gerrit-CC: gwsq
        Gerrit-Attention: Dibyajyoti Pal <diby...@chromium.org>
        Gerrit-Attention: Nate Chapin <jap...@chromium.org>
        Gerrit-Comment-Date: Mon, 20 Jul 2026 21:09:02 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Dibyajyoti Pal <diby...@chromium.org>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Dana Fried (Gerrit)

        unread,
        2:43 PM (3 hours ago) 2:43 PM
        to Dibyajyoti Pal, android-bu...@system.gserviceaccount.com, Chromium Web Applications Reviews, Nate Chapin, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org
        Attention needed from Dibyajyoti Pal and Nate Chapin

        Dana Fried voted and added 1 comment

        Votes added by Dana Fried

        Commit-Queue+1

        1 comment

        File chrome/browser/ui/views/web_apps/frame_toolbar/web_app_origin_text.cc
        Line 151, Patchset 4: if (!selection.old_contents) {
        // Observe the new contents if it's the first active contents.
        Observe(selection.new_contents);
        } else if (selection.old_contents != selection.new_contents) {
        // Flash text is generated from the app, not the tab. If the tab is
        // switched, it may end up being a different source which for which the
        // app-generated text is incorrect. Therefore, if the tab actually
        // changes (as opposed to the initial contents being added), stop trying
        // to flash the origin text on page load.
        Observe(nullptr);
        }
        }
        Dibyajyoti Pal . resolved

        Hmmmm, looking at the bug, it seems like the fix might be a bit more complicated. The old origin still showing up when a new navigation happens means that `origin_text_` [1] is stale, and stopping the observing of the old web contents might not be enough to fix it.

        Imo, we should also be updating the `origin_text_` and `label_` both when the tab strip model changes, because in case the tab changes to a new tab with a different theme, the flash will still occur regardless of whether `web_contents()` changed, leading to the previous tab's origin being shown.

        What if we instead did the following:
        1. Move L169-200, which casues the `label_` and `origin_text_` to be updated to a new function, called `bool UpdateOriginText(bool start_animation)`. The only difference is that in L200, we'll wrap the starting of the animation to the following:

        ```
        if(start_animation) {
        StartFadeAnimation();
        }
        ```
        2. Update `DidFinishNavigation()` to call:
        ```
        void WebAppOriginText::DidFinishNavigation(content::NavigationHandle* handle) {
        if (!handle->IsInPrimaryMainFrame() || handle->IsSameDocument()) {
        return;
        }
        UpdateOriginText(true);
        }
        ```

        3. Update `OnTabStripModelChanged()` to be:

        ```
        void WebAppOriginText::OnTabStripModelChanged(
        TabStripModel* tab_strip_model,
        const TabStripModelChange& change,
        const TabStripSelectionChange& selection) {
        if (selection.active_tab_changed() && !tab_strip_model->empty()) {
        Observe(nullptr); // Stop observing old web contents.
        Observe(selection.new_contents);
        UpdateOriginText(false); // Updates origin, but prevents animation from showing.
        }
        }
        ```

        Wdyt?

        [1] https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/ui/views/web_apps/frame_toolbar/web_app_origin_text.h;l=75-76;drc=0ce06599d4f0c331bfc4018b20e0b196f375cdc2

        Dana Fried

        You're right; there's no really easy fix here. I'm gonna try to rethink this CL and will send it back a bit later.

        Dana Fried

        Done

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Dibyajyoti Pal
        • Nate Chapin
        Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement 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: I6c598f7c7137df68f56af2b5e84020541a7add28
          Gerrit-Change-Number: 8124935
          Gerrit-PatchSet: 6
          Gerrit-Owner: Dana Fried <dfr...@chromium.org>
          Gerrit-Reviewer: Dana Fried <dfr...@chromium.org>
          Gerrit-Reviewer: Dibyajyoti Pal <diby...@chromium.org>
          Gerrit-Reviewer: Nate Chapin <jap...@chromium.org>
          Gerrit-CC: Chromium Web Applications Reviews <chromium-web...@google.com>
          Gerrit-CC: gwsq
          Gerrit-Attention: Dibyajyoti Pal <diby...@chromium.org>
          Gerrit-Attention: Nate Chapin <jap...@chromium.org>
          Gerrit-Comment-Date: Tue, 21 Jul 2026 18:42:58 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Dibyajyoti Pal (Gerrit)

          unread,
          2:57 PM (3 hours ago) 2:57 PM
          to Dana Fried, android-bu...@system.gserviceaccount.com, Chromium Web Applications Reviews, Nate Chapin, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org
          Attention needed from Dana Fried and Nate Chapin

          Dibyajyoti Pal voted and added 1 comment

          Votes added by Dibyajyoti Pal

          Code-Review+1

          1 comment

          Patchset-level comments
          File-level comment, Patchset 6 (Latest):
          Dibyajyoti Pal . resolved

          Newer implementation LGTM!

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Dana Fried
          • Nate Chapin
          Submit Requirements:
            • requirement satisfiedCode-Coverage
            • requirement 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: I6c598f7c7137df68f56af2b5e84020541a7add28
            Gerrit-Change-Number: 8124935
            Gerrit-PatchSet: 6
            Gerrit-Owner: Dana Fried <dfr...@chromium.org>
            Gerrit-Reviewer: Dana Fried <dfr...@chromium.org>
            Gerrit-Reviewer: Dibyajyoti Pal <diby...@chromium.org>
            Gerrit-Reviewer: Nate Chapin <jap...@chromium.org>
            Gerrit-CC: Chromium Web Applications Reviews <chromium-web...@google.com>
            Gerrit-CC: gwsq
            Gerrit-Attention: Dana Fried <dfr...@chromium.org>
            Gerrit-Attention: Nate Chapin <jap...@chromium.org>
            Gerrit-Comment-Date: Tue, 21 Jul 2026 18:56:50 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: Yes
            satisfied_requirement
            open
            diffy

            Dana Fried (Gerrit)

            unread,
            2:58 PM (3 hours ago) 2:58 PM
            to android-bu...@system.gserviceaccount.com, Chromium Web Applications Reviews, Nate Chapin, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org
            Attention needed from Nate Chapin

            Dana Fried voted Commit-Queue+2

            Commit-Queue+2
            Open in Gerrit

            Related details

            Attention is currently required from:
            • Nate Chapin
            Submit Requirements:
            • requirement satisfiedCode-Coverage
            • requirement 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: I6c598f7c7137df68f56af2b5e84020541a7add28
            Gerrit-Change-Number: 8124935
            Gerrit-PatchSet: 6
            Gerrit-Owner: Dana Fried <dfr...@chromium.org>
            Gerrit-Reviewer: Dana Fried <dfr...@chromium.org>
            Gerrit-Reviewer: Dibyajyoti Pal <diby...@chromium.org>
            Gerrit-Reviewer: Nate Chapin <jap...@chromium.org>
            Gerrit-CC: Chromium Web Applications Reviews <chromium-web...@google.com>
            Gerrit-CC: gwsq
            Gerrit-Attention: Nate Chapin <jap...@chromium.org>
            Gerrit-Comment-Date: Tue, 21 Jul 2026 18:57:56 +0000
            Gerrit-HasComments: No
            Gerrit-Has-Labels: Yes
            satisfied_requirement
            open
            diffy

            Chromium LUCI CQ (Gerrit)

            unread,
            5:00 PM (1 hour ago) 5:00 PM
            to Dana Fried, Dibyajyoti Pal, android-bu...@system.gserviceaccount.com, Chromium Web Applications Reviews, Nate Chapin, chromium...@chromium.org, blink-...@chromium.org

            Chromium LUCI CQ submitted the change

            Change information

            Commit message:
            [Tabbed Web App] Fix spurious incorrect origin text flash

            This disables the origin text flash on tabbed PWAs when the user
            switches tabs; it was previously causing a spurious flash of the wrong
            text any time the user changed tabs and a new page loaded.

            Explanation in the code.
            Fixed: 517487890
            Change-Id: I6c598f7c7137df68f56af2b5e84020541a7add28
            Reviewed-by: Dibyajyoti Pal <diby...@chromium.org>
            Commit-Queue: Dana Fried <dfr...@chromium.org>
            Cr-Commit-Position: refs/heads/main@{#1665775}
            Files:
            • M chrome/browser/ui/views/web_apps/frame_toolbar/web_app_origin_text.cc
            • M chrome/browser/ui/views/web_apps/frame_toolbar/web_app_origin_text.h
            Change size: S
            Delta: 2 files changed, 31 insertions(+), 15 deletions(-)
            Branch: refs/heads/main
            Submit Requirements:
            • requirement satisfiedCode-Review: +1 by Dibyajyoti Pal
            Open in Gerrit
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: merged
            Gerrit-Project: chromium/src
            Gerrit-Branch: main
            Gerrit-Change-Id: I6c598f7c7137df68f56af2b5e84020541a7add28
            Gerrit-Change-Number: 8124935
            Gerrit-PatchSet: 7
            Gerrit-Owner: Dana Fried <dfr...@chromium.org>
            Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
            Gerrit-Reviewer: Dana Fried <dfr...@chromium.org>
            Gerrit-Reviewer: Dibyajyoti Pal <diby...@chromium.org>
            Gerrit-Reviewer: Nate Chapin <jap...@chromium.org>
            open
            diffy
            satisfied_requirement
            Reply all
            Reply to author
            Forward
            0 new messages