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

Issue 1723353002: Add deprecation message for AppCache in insecure contexts (Closed)

Created:
4 years, 10 months ago by jww
Modified:
4 years, 6 months ago
CC:
jochen (gone - plz use gerrit), asvitkine+watch_chromium.org, blink-reviews, chrishtr, chromium-reviews, gavinp+loader_chromium.org, Nate Chapin, loading-reviews_chromium.org, tyoshino+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add deprecation message for AppCache in insecure contexts This adds a deprecation messages for uses of the manifest attribute or use of the AppCache API in insecure contexts. Adds LayoutTests as well to confirm warning messages. Additionally, adds counts and RAPPOR stats to track usage. BUG=588931 Committed: https://crrev.com/1152e786b74c1bbba74af386eb9757f3f8713add Cr-Commit-Position: refs/heads/master@{#377463}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address comments #

Patch Set 3 : Update histograms.xml #

Patch Set 4 : Rebase on ToT #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -2 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/old-powerful-features-on-insecure-origin.html View 2 chunks +17 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/old-powerful-features-on-insecure-origin-expected.txt View 1 2 chunks +2 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/resources/simple.manifest View 1 chunk +5 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/resources/simple.txt View 0 chunks +-1 lines, --1 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Deprecation.cpp View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/OriginsUsingFeatures.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/OriginsUsingFeatures.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/appcache/ApplicationCache.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/appcache/ApplicationCache.cpp View 1 5 chunks +26 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/appcache/ApplicationCacheHost.cpp View 1 2 chunks +16 lines, -2 lines 2 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M tools/metrics/rappor/rappor.xml View 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (11 generated)
jww
Yoav, you like things being deprecated, right? You mind taking a look at this? Thanks ...
4 years, 10 months ago (2016-02-23 20:04:20 UTC) #3
Yoav Weiss
The only thing I love more than deprecations is AppCache deprecations! :) All in all, ...
4 years, 10 months ago (2016-02-23 22:09:55 UTC) #5
michaeln
https://codereview.chromium.org/1723353002/diff/1/third_party/WebKit/Source/core/loader/appcache/ApplicationCacheHost.cpp File third_party/WebKit/Source/core/loader/appcache/ApplicationCacheHost.cpp (right): https://codereview.chromium.org/1723353002/diff/1/third_party/WebKit/Source/core/loader/appcache/ApplicationCacheHost.cpp#newcode119 third_party/WebKit/Source/core/loader/appcache/ApplicationCacheHost.cpp:119: void ApplicationCacheHost::selectCacheWithManifest(const KURL& manifestURL) fyi: This will miss counting/warning ...
4 years, 10 months ago (2016-02-23 22:26:34 UTC) #7
jww
https://codereview.chromium.org/1723353002/diff/1/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/old-powerful-features-on-insecure-origin.html File third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/old-powerful-features-on-insecure-origin.html (right): https://codereview.chromium.org/1723353002/diff/1/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/old-powerful-features-on-insecure-origin.html#newcode84 third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/old-powerful-features-on-insecure-origin.html:84: async_test(function() { On 2016/02/23 22:09:54, Yoav Weiss wrote: > ...
4 years, 10 months ago (2016-02-23 23:51:42 UTC) #8
Yoav Weiss
On 2016/02/23 23:51:42, jww wrote: > https://codereview.chromium.org/1723353002/diff/1/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/old-powerful-features-on-insecure-origin.html > File > third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/old-powerful-features-on-insecure-origin.html > (right): > > ...
4 years, 10 months ago (2016-02-24 08:20:09 UTC) #9
michaeln
> LGTM core/ assuming Michael is happy with the AppCache changes and comment. lgtm 2, ...
4 years, 10 months ago (2016-02-24 19:17:47 UTC) #10
jww
On 2016/02/24 19:17:47, michaeln wrote: > > LGTM core/ assuming Michael is happy with the ...
4 years, 10 months ago (2016-02-24 19:20:43 UTC) #11
jww
asvitkine@, can you review tools/metrics/rappor? Thanks!
4 years, 10 months ago (2016-02-24 19:22:42 UTC) #13
jww
On 2016/02/24 19:22:42, jww wrote: > asvitkine@, can you review tools/metrics/rappor? Thanks! My apologies, can ...
4 years, 10 months ago (2016-02-24 19:25:47 UTC) #14
jww
4 years, 10 months ago (2016-02-24 19:26:06 UTC) #16
Alexei Svitkine (slow)
lgtm
4 years, 10 months ago (2016-02-25 00:14:39 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1723353002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1723353002/60001
4 years, 10 months ago (2016-02-25 00:22:40 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 10 months ago (2016-02-25 02:01:39 UTC) #22
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/1152e786b74c1bbba74af386eb9757f3f8713add Cr-Commit-Position: refs/heads/master@{#377463}
4 years, 10 months ago (2016-02-25 02:03:01 UTC) #24
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1723353002/diff/60001/third_party/WebKit/Source/core/loader/appcache/ApplicationCacheHost.cpp File third_party/WebKit/Source/core/loader/appcache/ApplicationCacheHost.cpp (right): https://codereview.chromium.org/1723353002/diff/60001/third_party/WebKit/Source/core/loader/appcache/ApplicationCacheHost.cpp#newcode130 third_party/WebKit/Source/core/loader/appcache/ApplicationCacheHost.cpp:130: UseCounter::countCrossOriginIframe(*document, UseCounter::ApplicationCacheManifestSelectInsecureOrigin); This hits ASSERT(Deprecation::deprecationMessage(feature).isEmpty()) if UseCounter::count() You'll need ...
4 years, 9 months ago (2016-02-29 15:44:42 UTC) #26
jww
https://codereview.chromium.org/1723353002/diff/60001/third_party/WebKit/Source/core/loader/appcache/ApplicationCacheHost.cpp File third_party/WebKit/Source/core/loader/appcache/ApplicationCacheHost.cpp (right): https://codereview.chromium.org/1723353002/diff/60001/third_party/WebKit/Source/core/loader/appcache/ApplicationCacheHost.cpp#newcode130 third_party/WebKit/Source/core/loader/appcache/ApplicationCacheHost.cpp:130: UseCounter::countCrossOriginIframe(*document, UseCounter::ApplicationCacheManifestSelectInsecureOrigin); On 2016/02/29 15:44:42, jochen wrote: > This ...
4 years, 9 months ago (2016-03-01 19:55:02 UTC) #27
playmate113
4 years, 6 months ago (2016-06-17 22:16:01 UTC) #28
Message was sent while issue was closed.
On 2016/03/01 19:55:02, jww wrote:
>
https://codereview.chromium.org/1723353002/diff/60001/third_party/WebKit/Sour...
> File third_party/WebKit/Source/core/loader/appcache/ApplicationCacheHost.cpp
> (right):
> 
>
https://codereview.chromium.org/1723353002/diff/60001/third_party/WebKit/Sour...
> third_party/WebKit/Source/core/loader/appcache/ApplicationCacheHost.cpp:130:
> UseCounter::countCrossOriginIframe(*document,
> UseCounter::ApplicationCacheManifestSelectInsecureOrigin);
> On 2016/02/29 15:44:42, jochen wrote:
> > This hits ASSERT(Deprecation::deprecationMessage(feature).isEmpty()) if
> > UseCounter::count()
> > 
> > You'll need to add a new a corresponding method on Deprecation
> >  
> 
> Yikes, thanks. It appears that I also did this for Geolocation, so I'll fix
that
> as well.

Powered by Google App Engine
This is Rietveld 408576698