Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: feb6c63a58b4ac76e95e02458ff696f389ef1f91
      
https://github.com/WebKit/WebKit/commit/feb6c63a58b4ac76e95e02458ff696f389ef1f91
  Author: Yury Semikhatsky <[email protected]>
  Date:   2026-07-02 (Thu, 02 Jul 2026)

  Changed paths:
    A 
LayoutTests/http/tests/inspector/network/set-extra-http-headers-expected.txt
    A LayoutTests/http/tests/inspector/network/set-extra-http-headers.html
    M Source/WebCore/inspector/agents/InspectorNetworkAgent.cpp

  Log Message:
  -----------
  Web Inspector: Network.setExtraHTTPHeaders should replace previously set 
headers instead of accumulating them
https://bugs.webkit.org/show_bug.cgi?id=318478

Reviewed by Devin Rousso.

Network.setExtraHTTPHeaders merged each call's headers into the previously
stored set without clearing it first, so a header added by one call could
never be removed by a later call. Since each call fully specifies the extra
headers to send, clear the stored headers before applying the new ones.

* LayoutTests/http/tests/inspector/network/set-extra-http-headers.html: Added.
* LayoutTests/http/tests/inspector/network/set-extra-http-headers-expected.txt: 
Added.
* Source/WebCore/inspector/agents/InspectorNetworkAgent.cpp:
(WebCore::InspectorNetworkAgent::setExtraHTTPHeaders):

Canonical link: https://commits.webkit.org/316444@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to