Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Issue 2445653003: Apply user agent exactly once for requests from Blink. (Closed)

Created:
4 years, 1 month ago by Charlie Harrison
Modified:
4 years, 1 month ago
Reviewers:
Nate Chapin
CC:
chromium-reviews, Yoav Weiss, tyoshino+watch_chromium.org, loading-reviews_chromium.org, gavinp+loader_chromium.org, blink-reviews, Nate Chapin
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Apply user agent exactly once for requests from Blink. For most regular fetches, we apply the user agent twice: - addAdditionalRequestHeaders - prepareRequest This patch changes FrameLoader::applyUserAgent to FrameLoader::applyUserAgentIfNeeded which first checks if the user agent is set. This avoids going to the embedder to calculate the override twice. BUG=348655 Committed: https://crrev.com/068d63ed251f23d4d3cbd06c5d702abae09c7ce9 Cr-Commit-Position: refs/heads/master@{#427180}

Patch Set 1 #

Patch Set 2 : remove applyUserAgent in addAdditionalRequestHeaders #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -2 lines) Patch
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (13 generated)
Charlie Harrison
japhet, PTAL?
4 years, 1 month ago (2016-10-24 17:24:54 UTC) #6
Nate Chapin
LGTM I guess, but do we really need the user agent set in both those ...
4 years, 1 month ago (2016-10-24 17:26:46 UTC) #7
Charlie Harrison
On 2016/10/24 17:26:46, Nate Chapin wrote: > LGTM I guess, but do we really need ...
4 years, 1 month ago (2016-10-24 17:36:50 UTC) #8
Charlie Harrison
Actually, pings end up calling prepareRequest via willStartLoadingResource, so let's try removing it from addAdditionalRequestHeaders. ...
4 years, 1 month ago (2016-10-24 17:53:38 UTC) #11
Charlie Harrison
On 2016/10/24 17:53:38, Charlie Harrison wrote: > Actually, pings end up calling prepareRequest via willStartLoadingResource, ...
4 years, 1 month ago (2016-10-24 20:00:09 UTC) #14
Nate Chapin
LGTM, thanks!
4 years, 1 month ago (2016-10-24 20:08:33 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2445653003/20001
4 years, 1 month ago (2016-10-24 20:10:59 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/151173)
4 years, 1 month ago (2016-10-24 22:08:03 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2445653003/20001
4 years, 1 month ago (2016-10-24 22:09:09 UTC) #21
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-10-24 23:37:27 UTC) #22
commit-bot: I haz the power
4 years, 1 month ago (2016-10-24 23:38:59 UTC) #24
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/068d63ed251f23d4d3cbd06c5d702abae09c7ce9
Cr-Commit-Position: refs/heads/master@{#427180}

Powered by Google App Engine
This is Rietveld 408576698