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

Issue 698973008: Referrer Policy: Distinguish "default" from "no referrer when downgrade" [2/2] (Closed)

Created:
6 years, 1 month ago by Mike West
Modified:
5 years, 10 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Referrer Policy: Distinguish "default" from "no referrer when downgrade" [2/2] We can drop a boolean from Document by adding a value to the ReferrerPolicy enum to distinguish "default" from an explicitly-set "no referrer when downgrade". This patch also marginally increases the detail of the metrics we're gathering ReferrerPolicy resets. [1/2] Chromium: https://codereview.chromium.org/717503002/ [2/2] Blink: This patch. BUG=431694 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185041

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -7 lines) Patch
M Source/core/dom/Document.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/dom/Document.cpp View 3 chunks +3 lines, -4 lines 0 comments Download
M Source/core/frame/UseCounter.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/platform/weborigin/ReferrerPolicy.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/platform/weborigin/SecurityPolicy.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/platform/weborigin/SecurityPolicy.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/AssertMatchingEnums.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M public/platform/WebReferrerPolicy.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
Mike West
Ditto.
6 years, 1 month ago (2014-11-10 12:13:33 UTC) #2
jochen (gone - plz use gerrit)
lgtm
6 years, 1 month ago (2014-11-10 13:39:48 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/698973008/1
6 years, 1 month ago (2014-11-10 15:07:14 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1) as 185041
6 years, 1 month ago (2014-11-10 16:12:06 UTC) #6
rohitrao (ping after 24h)
We serialize this enum to disk (through SerializedNavigationEntry), which means that adding a new value ...
5 years, 10 months ago (2015-01-28 23:56:56 UTC) #7
jochen (gone - plz use gerrit)
5 years, 10 months ago (2015-01-29 08:56:05 UTC) #8
Message was sent while issue was closed.
On 2015/01/28 at 23:56:56, rohitrao wrote:
> We serialize this enum to disk (through SerializedNavigationEntry), which
means that adding a new value to the middle of this enum will probably cause
issues?  I believe that anyone running a build after this change will load an
incorrect referrer policy when reading tabs from disk.

ouch, good catch!

Powered by Google App Engine
This is Rietveld 408576698