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

Issue 268703003: Remove Referrer Policy from URLFetcher. (Closed)

Created:
6 years, 7 months ago by cbentzel
Modified:
6 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Visibility:
Public.

Description

Remove Referrer Policy from URLFetcher. There were no consumers of this. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267757

Patch Set 1 #

Patch Set 2 : Remove test override for SetReferrerPolicy #

Total comments: 2

Patch Set 3 : Remove set_referrer_policy #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -28 lines) Patch
M net/url_request/test_url_fetcher_factory.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M net/url_request/test_url_fetcher_factory.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download
M net/url_request/url_fetcher.h View 1 chunk +0 lines, -5 lines 0 comments Download
M net/url_request/url_fetcher_core.h View 2 chunks +0 lines, -2 lines 0 comments Download
M net/url_request/url_fetcher_core.cc View 1 2 3 chunks +0 lines, -8 lines 0 comments Download
M net/url_request/url_fetcher_impl.h View 1 chunk +0 lines, -2 lines 0 comments Download
M net/url_request/url_fetcher_impl.cc View 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
cbentzel
6 years, 7 months ago (2014-05-01 21:21:03 UTC) #1
mmenke
LGTM! https://codereview.chromium.org/268703003/diff/20001/net/url_request/url_fetcher_core.cc File net/url_request/url_fetcher_core.cc (right): https://codereview.chromium.org/268703003/diff/20001/net/url_request/url_fetcher_core.cc#newcode514 net/url_request/url_fetcher_core.cc:514: URLRequest::CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE); Is this needed? This is already the ...
6 years, 7 months ago (2014-05-01 21:37:25 UTC) #2
cbentzel
https://codereview.chromium.org/268703003/diff/20001/net/url_request/url_fetcher_core.cc File net/url_request/url_fetcher_core.cc (right): https://codereview.chromium.org/268703003/diff/20001/net/url_request/url_fetcher_core.cc#newcode514 net/url_request/url_fetcher_core.cc:514: URLRequest::CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE); On 2014/05/01 21:37:26, mmenke wrote: > Is this ...
6 years, 7 months ago (2014-05-01 22:15:57 UTC) #3
cbentzel
The CQ bit was checked by cbentzel@chromium.org
6 years, 7 months ago (2014-05-02 00:37:44 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cbentzel@chromium.org/268703003/40001
6 years, 7 months ago (2014-05-02 00:38:57 UTC) #5
commit-bot: I haz the power
Change committed as 267757
6 years, 7 months ago (2014-05-02 05:30:17 UTC) #6
jochen (gone - plz use gerrit)
On 2014/05/02 05:30:17, I haz the power (commit-bot) wrote: > Change committed as 267757 Hum, ...
6 years, 7 months ago (2014-05-02 05:36:40 UTC) #7
mmenke
On 2014/05/02 05:36:40, jochen (OOO Wed-Thu) wrote: > On 2014/05/02 05:30:17, I haz the power ...
6 years, 7 months ago (2014-05-02 05:50:31 UTC) #8
jochen (gone - plz use gerrit)
+noyau, can you confirm?
6 years, 7 months ago (2014-05-02 06:20:34 UTC) #9
noyau (Ping after 24h)
On 2014/05/02 06:20:34, jochen wrote: > +noyau, can you confirm? I confirm, yes, iOS depends ...
6 years, 7 months ago (2014-05-05 06:56:32 UTC) #10
noyau (Ping after 24h)
On 2014/05/05 06:56:32, noyau wrote: > On 2014/05/02 06:20:34, jochen wrote: > > +noyau, can ...
6 years, 7 months ago (2014-05-05 07:13:56 UTC) #11
jochen (gone - plz use gerrit)
A revert of this CL has been created in https://codereview.chromium.org/265253002/ by jochen@chromium.org. The reason for ...
6 years, 7 months ago (2014-05-05 07:20:18 UTC) #12
cbentzel
On 2014/05/05 07:20:18, jochen wrote: > A revert of this CL has been created in ...
6 years, 7 months ago (2014-05-07 19:55:12 UTC) #13
noyau (Ping after 24h)
6 years, 7 months ago (2014-05-09 08:20:23 UTC) #14
Message was sent while issue was closed.
On 2014/05/07 19:55:12, cbentzel wrote:
> On 2014/05/05 07:20:18, jochen wrote:
> > A revert of this CL has been created in
> > https://codereview.chromium.org/265253002/ by mailto:jochen@chromium.org.
> > 
> > The reason for reverting is: We still need this feature on ios and android.
> 
> OK, thanks.
> 
> That Android CL seems to only be setting the policy to the default policy
which
> doesn't seem too useful... But I can understand if there are iOS cases which
use
> this.

iOS is "special": there is no webkit/blink API, this means that there is no way
to  access page content.

As an example, let's say the user wants to save an image visible on the page.
The only way to perform such an operation on iOS is to go through the DOM via
javascript, find the image URL and then re-download it. Hopefully hitting the
network cache instead of really re-downloading. This need to look at the page
policy, and apply it to the redownload, hence the need for this API.

Android doesn't have the same issues, as blink provides all the API necessary to
retrieve the image from the DOM.

Powered by Google App Engine
This is Rietveld 408576698