Fix meta refresh to fragment to use same-document navigation [chromium/src : main]

0 views
Skip to first unread message

Yoav Weiss (@Shopify) (Gerrit)

unread,
Nov 3, 2025, 4:33:15 AM (3 days ago) Nov 3
to Helmut Januschka, Nate Chapin, Chromium LUCI CQ, chromium...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, gavinp...@chromium.org, loading...@chromium.org
Attention needed from Helmut Januschka and Nate Chapin

Yoav Weiss (@Shopify) added 1 comment

File third_party/blink/renderer/core/loader/http_refresh_scheduler.cc
Line 105, Patchset 5 (Latest): // Per HTML spec: If the refresh URL differs from the current document URL
Yoav Weiss (@Shopify) . unresolved

Are the other steps of https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigate run before this function is called? (IIUC, this is implementing step 14)

Open in Gerrit

Related details

Attention is currently required from:
  • Helmut Januschka
  • 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: I9a17aa73cc98fdd94370f6bd6c0bc8e23f32ec5e
Gerrit-Change-Number: 7080976
Gerrit-PatchSet: 5
Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
Gerrit-Reviewer: Nate Chapin <jap...@chromium.org>
Gerrit-CC: Yoav Weiss (@Shopify) <yoav...@chromium.org>
Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
Gerrit-Attention: Nate Chapin <jap...@chromium.org>
Gerrit-Comment-Date: Mon, 03 Nov 2025 09:33:02 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Nate Chapin (Gerrit)

unread,
Nov 3, 2025, 2:27:36 PM (3 days ago) Nov 3
to Helmut Januschka, Yoav Weiss (@Shopify), Chromium LUCI CQ, chromium...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, gavinp...@chromium.org, loading...@chromium.org
Attention needed from Helmut Januschka

Nate Chapin added 1 comment

File third_party/blink/renderer/core/loader/http_refresh_scheduler.cc
Line 149, Patchset 5 (Latest): load_type = WebFrameLoadType::kReload;
Nate Chapin . unresolved

Rather than adding a branch and calling `CommitSameDocumentNavigation` directly here, I think we should change the load type here. `FrameLoader::StartNavigation` will decide whether the navigation should be same-document or cross-document (here: https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/loader/frame_loader.cc;drc=35d26d364efb57d0386b98312ba739f7f65ae97e;l=1540). Howeveer, setting a WebFrameLoadType of kReload will ensure the navigation is always cross-document.

Open in Gerrit

Related details

Attention is currently required from:
  • 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: I9a17aa73cc98fdd94370f6bd6c0bc8e23f32ec5e
Gerrit-Change-Number: 7080976
Gerrit-PatchSet: 5
Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
Gerrit-Reviewer: Nate Chapin <jap...@chromium.org>
Gerrit-CC: Yoav Weiss (@Shopify) <yoav...@chromium.org>
Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
Gerrit-Comment-Date: Mon, 03 Nov 2025 19:27:27 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Helmut Januschka (Gerrit)

unread,
Nov 4, 2025, 5:09:50 AM (2 days ago) Nov 4
to Helmut Januschka, Nate Chapin, Yoav Weiss (@Shopify), Chromium LUCI CQ, chromium...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, gavinp...@chromium.org, loading...@chromium.org
Attention needed from Nate Chapin and Yoav Weiss (@Shopify)

Helmut Januschka added 2 comments

File third_party/blink/renderer/core/loader/http_refresh_scheduler.cc
Line 105, Patchset 5: // Per HTML spec: If the refresh URL differs from the current document URL
Yoav Weiss (@Shopify) . resolved

Are the other steps of https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigate run before this function is called? (IIUC, this is implementing step 14)

Helmut Januschka

the new approach makes this change here obsolete 😊

Line 149, Patchset 5: load_type = WebFrameLoadType::kReload;
Nate Chapin . resolved

Rather than adding a branch and calling `CommitSameDocumentNavigation` directly here, I think we should change the load type here. `FrameLoader::StartNavigation` will decide whether the navigation should be same-document or cross-document (here: https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/loader/frame_loader.cc;drc=35d26d364efb57d0386b98312ba739f7f65ae97e;l=1540). Howeveer, setting a WebFrameLoadType of kReload will ensure the navigation is always cross-document.

Helmut Januschka

wow,thanks nate, that is so much cleaner now - i love code review!

Open in Gerrit

Related details

Attention is currently required from:
  • Nate Chapin
  • Yoav Weiss (@Shopify)
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: I9a17aa73cc98fdd94370f6bd6c0bc8e23f32ec5e
    Gerrit-Change-Number: 7080976
    Gerrit-PatchSet: 6
    Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
    Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
    Gerrit-Reviewer: Nate Chapin <jap...@chromium.org>
    Gerrit-CC: Yoav Weiss (@Shopify) <yoav...@chromium.org>
    Gerrit-Attention: Yoav Weiss (@Shopify) <yoav...@chromium.org>
    Gerrit-Attention: Nate Chapin <jap...@chromium.org>
    Gerrit-Comment-Date: Tue, 04 Nov 2025 10:09:31 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Yoav Weiss (@Shopify) <yoav...@chromium.org>
    Comment-In-Reply-To: Nate Chapin <jap...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages