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

Issue 295063002: [NotLanded] Implement the fetching algorithm of the Web Manifest. (Closed)

Created:
6 years, 7 months ago by mlamouri (slow - plz ping)
Modified:
6 years, 3 months ago
CC:
abarth-chromium, blink-reviews, dglazkov+blink, gavinp+loader_chromium.org, jamesr
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Implement the fetching algorithm of the Web Manifest. This is only implementing the fetching part with the callback mechanism it is not implementing the parsing part so the loader will always return an empty WebManifest. BUG=366145

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 14

Patch Set 3 : review comments #

Total comments: 4

Patch Set 4 : #

Total comments: 8

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : rebase #

Total comments: 10

Patch Set 8 : rebase + weblocalframe #

Patch Set 9 : rebase #

Patch Set 10 : #

Patch Set 11 : apply Nate's comments #

Total comments: 10

Patch Set 12 : review comments #

Patch Set 13 : update comments #

Total comments: 14

Patch Set 14 : with webviewhelper #

Patch Set 15 : with webviewhelper #

Total comments: 10

Patch Set 16 : review comments #

Total comments: 12

Patch Set 17 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+527 lines, -10 lines) Patch
M Source/core/core.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/fetch/FetchInitiatorTypeNames.in View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/fetch/Resource.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download
M Source/core/fetch/Resource.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +6 lines, -0 lines 0 comments Download
M Source/core/fetch/ResourceFetcher.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/fetch/ResourceFetcher.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 8 chunks +18 lines, -4 lines 0 comments Download
M Source/core/loader/FrameLoaderClient.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +6 lines, -2 lines 0 comments Download
A Source/core/loader/ManifestLoader.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +42 lines, -0 lines 0 comments Download
A Source/core/loader/ManifestLoader.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +90 lines, -0 lines 0 comments Download
M Source/web/FrameLoaderClientImpl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M Source/web/FrameLoaderClientImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +12 lines, -0 lines 0 comments Download
M Source/web/WebLocalFrameImpl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +8 lines, -0 lines 0 comments Download
A Source/web/tests/ManifestLoaderTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +244 lines, -0 lines 0 comments Download
A Source/web/tests/data/manifest/cors-anonymous.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +6 lines, -0 lines 0 comments Download
A Source/web/tests/data/manifest/cors-default.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +6 lines, -0 lines 0 comments Download
A Source/web/tests/data/manifest/cors-use-credentials.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +6 lines, -0 lines 0 comments Download
A Source/web/tests/data/manifest/dummy_manifest.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
A Source/web/tests/data/manifest/no-cors.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +6 lines, -0 lines 0 comments Download
A Source/web/tests/data/manifest/no-manifest.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +5 lines, -0 lines 0 comments Download
M Source/web/web.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
A public/platform/WebManifest.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +19 lines, -0 lines 0 comments Download
A public/platform/WebManifestError.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +17 lines, -0 lines 0 comments Download
M public/web/WebFrameClient.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +13 lines, -2 lines 0 comments Download
M public/web/WebLocalFrame.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 48 (1 generated)
mlamouri (slow - plz ping)
6 years, 7 months ago (2014-05-20 19:48:46 UTC) #1
dcheng
https://codereview.chromium.org/295063002/diff/1/Source/core/loader/ManifestLoaderTest.cpp File Source/core/loader/ManifestLoaderTest.cpp (right): https://codereview.chromium.org/295063002/diff/1/Source/core/loader/ManifestLoaderTest.cpp#newcode168 Source/core/loader/ManifestLoaderTest.cpp:168: ManifestLoader::LoadManifest(request(), document()); Is there any particular reason not to ...
6 years, 7 months ago (2014-05-20 20:11:29 UTC) #2
mlamouri (slow - plz ping)
https://codereview.chromium.org/295063002/diff/1/Source/core/loader/ManifestLoaderTest.cpp File Source/core/loader/ManifestLoaderTest.cpp (right): https://codereview.chromium.org/295063002/diff/1/Source/core/loader/ManifestLoaderTest.cpp#newcode168 Source/core/loader/ManifestLoaderTest.cpp:168: ManifestLoader::LoadManifest(request(), document()); On 2014/05/20 20:11:30, dcheng wrote: > Is ...
6 years, 7 months ago (2014-05-20 20:17:03 UTC) #3
mlamouri (slow - plz ping)
dcheng@ and eseidel@, could you both review this CL? Technically eseidel's review would be enough ...
6 years, 7 months ago (2014-05-20 22:31:07 UTC) #4
dcheng
Just some high-level comments. I'll have to think about how to adapt the test helpers, ...
6 years, 7 months ago (2014-05-20 22:40:51 UTC) #5
mlamouri (slow - plz ping)
I applied your review comments. PTAL https://codereview.chromium.org/295063002/diff/20001/Source/core/loader/ManifestLoader.cpp File Source/core/loader/ManifestLoader.cpp (right): https://codereview.chromium.org/295063002/diff/20001/Source/core/loader/ManifestLoader.cpp#newcode22 Source/core/loader/ManifestLoader.cpp:22: ManifestLoader* leakedManifestLoader ALLOW_UNUSED ...
6 years, 7 months ago (2014-05-21 09:51:12 UTC) #6
mlamouri (slow - plz ping)
Friendly reminder: dcheng@ and eseidel@, could you have a look at this CL? Thanks :)
6 years, 7 months ago (2014-05-22 10:46:46 UTC) #7
dcheng
Overall, I'm probably not a good reviewer for this change so I'm just going to ...
6 years, 7 months ago (2014-05-23 01:17:44 UTC) #8
Nate Chapin
I'm a bit confused, why is the loading of a manifest triggered by the embedder ...
6 years, 7 months ago (2014-05-23 17:09:41 UTC) #9
mlamouri (slow - plz ping)
On 2014/05/23 17:09:41, Nate Chapin wrote: > I'm a bit confused, why is the loading ...
6 years, 7 months ago (2014-05-23 18:28:27 UTC) #10
Nate Chapin
On 2014/05/23 18:28:27, Mounir Lamouri wrote: > On 2014/05/23 17:09:41, Nate Chapin wrote: > > ...
6 years, 7 months ago (2014-05-23 18:38:04 UTC) #11
eseidel
Looks like this is waiting for an update from mounir?
6 years, 6 months ago (2014-05-28 23:26:58 UTC) #12
mlamouri (slow - plz ping)
https://codereview.chromium.org/295063002/diff/40001/Source/core/loader/ManifestLoaderTest.cpp File Source/core/loader/ManifestLoaderTest.cpp (right): https://codereview.chromium.org/295063002/diff/40001/Source/core/loader/ManifestLoaderTest.cpp#newcode89 Source/core/loader/ManifestLoaderTest.cpp:89: document()->updateSecurityOrigin(SecurityOrigin::create(url)); On 2014/05/23 01:17:45, dcheng wrote: > I'm not ...
6 years, 6 months ago (2014-05-29 15:14:05 UTC) #13
mlamouri (slow - plz ping)
On 2014/05/23 18:38:04, Nate Chapin wrote: > On 2014/05/23 18:28:27, Mounir Lamouri wrote: > > ...
6 years, 6 months ago (2014-05-29 15:15:18 UTC) #14
Nate Chapin
On 2014/05/29 15:15:18, Mounir Lamouri wrote: > On 2014/05/23 18:38:04, Nate Chapin wrote: > > ...
6 years, 6 months ago (2014-05-29 18:18:14 UTC) #15
mlamouri (slow - plz ping)
On 2014/05/29 18:18:14, Nate Chapin wrote: > On 2014/05/29 15:15:18, Mounir Lamouri wrote: > > ...
6 years, 6 months ago (2014-05-30 13:09:19 UTC) #16
Nate Chapin
https://codereview.chromium.org/295063002/diff/60001/Source/core/loader/ManifestLoader.cpp File Source/core/loader/ManifestLoader.cpp (right): https://codereview.chromium.org/295063002/diff/60001/Source/core/loader/ManifestLoader.cpp#newcode23 Source/core/loader/ManifestLoader.cpp:23: ManifestLoader* manifestLoader = new ManifestLoader(request); Should this be an ...
6 years, 6 months ago (2014-06-03 18:32:41 UTC) #17
Nate Chapin
On 2014/06/03 18:32:41, Nate Chapin wrote: > > https://codereview.chromium.org/295063002/diff/60001/public/platform/WebManifestRequest.h#newcode16 > public/platform/WebManifestRequest.h:16: class WebManifestRequest { > ...
6 years, 6 months ago (2014-06-03 18:34:36 UTC) #18
mlamouri (slow - plz ping)
https://codereview.chromium.org/295063002/diff/60001/Source/core/loader/ManifestLoader.cpp File Source/core/loader/ManifestLoader.cpp (right): https://codereview.chromium.org/295063002/diff/60001/Source/core/loader/ManifestLoader.cpp#newcode23 Source/core/loader/ManifestLoader.cpp:23: ManifestLoader* manifestLoader = new ManifestLoader(request); On 2014/06/03 18:32:42, Nate ...
6 years, 6 months ago (2014-06-03 20:53:10 UTC) #19
Nate Chapin
On 2014/06/03 20:53:10, Mounir Lamouri wrote: > https://codereview.chromium.org/295063002/diff/60001/Source/core/loader/ManifestLoader.cpp > File Source/core/loader/ManifestLoader.cpp (right): > > https://codereview.chromium.org/295063002/diff/60001/Source/core/loader/ManifestLoader.cpp#newcode23 ...
6 years, 6 months ago (2014-06-03 21:07:07 UTC) #20
mlamouri (slow - plz ping)
On 2014/06/03 21:07:07, Nate Chapin wrote: > On 2014/06/03 20:53:10, Mounir Lamouri wrote: > > ...
6 years, 6 months ago (2014-06-03 21:49:02 UTC) #21
mlamouri (slow - plz ping)
After talking to Nate offline, it's no longer clear what I need to change. I ...
6 years, 4 months ago (2014-07-28 11:44:35 UTC) #22
dcheng
https://codereview.chromium.org/295063002/diff/120001/Source/core/loader/ManifestLoaderTest.cpp File Source/core/loader/ManifestLoaderTest.cpp (right): https://codereview.chromium.org/295063002/diff/120001/Source/core/loader/ManifestLoaderTest.cpp#newcode89 Source/core/loader/ManifestLoaderTest.cpp:89: document()->updateSecurityOrigin(SecurityOrigin::create(url)); I commented on this in an earlier review ...
6 years, 4 months ago (2014-07-28 17:08:58 UTC) #23
mlamouri (slow - plz ping)
https://codereview.chromium.org/295063002/diff/120001/Source/core/loader/ManifestLoaderTest.cpp File Source/core/loader/ManifestLoaderTest.cpp (right): https://codereview.chromium.org/295063002/diff/120001/Source/core/loader/ManifestLoaderTest.cpp#newcode89 Source/core/loader/ManifestLoaderTest.cpp:89: document()->updateSecurityOrigin(SecurityOrigin::create(url)); On 2014/07/28 17:08:57, dcheng (OOO) wrote: > I ...
6 years, 4 months ago (2014-08-19 16:14:18 UTC) #24
dcheng
https://codereview.chromium.org/295063002/diff/120001/Source/core/loader/ManifestLoaderTest.cpp File Source/core/loader/ManifestLoaderTest.cpp (right): https://codereview.chromium.org/295063002/diff/120001/Source/core/loader/ManifestLoaderTest.cpp#newcode89 Source/core/loader/ManifestLoaderTest.cpp:89: document()->updateSecurityOrigin(SecurityOrigin::create(url)); On 2014/08/19 16:14:18, Mounir Lamouri wrote: > On ...
6 years, 4 months ago (2014-08-19 16:30:29 UTC) #25
mlamouri (slow - plz ping)
https://codereview.chromium.org/295063002/diff/120001/Source/core/loader/ManifestLoaderTest.cpp File Source/core/loader/ManifestLoaderTest.cpp (right): https://codereview.chromium.org/295063002/diff/120001/Source/core/loader/ManifestLoaderTest.cpp#newcode89 Source/core/loader/ManifestLoaderTest.cpp:89: document()->updateSecurityOrigin(SecurityOrigin::create(url)); On 2014/08/19 16:30:29, dcheng (OOO) wrote: > On ...
6 years, 4 months ago (2014-08-19 16:37:05 UTC) #26
mlamouri (slow - plz ping)
Nate and Adam, could you have a look? I applied comments that I got from ...
6 years, 4 months ago (2014-08-25 16:35:06 UTC) #27
Nate Chapin
Overall design seems reasonable. I only looked carefully at core/loader/, core/fetch/, and web/. A few ...
6 years, 4 months ago (2014-08-25 20:43:12 UTC) #28
mlamouri (slow - plz ping)
https://codereview.chromium.org/295063002/diff/200001/Source/core/fetch/ResourceFetcher.cpp File Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/295063002/diff/200001/Source/core/fetch/ResourceFetcher.cpp#newcode128 Source/core/fetch/ResourceFetcher.cpp:128: case Resource::Manifest: On 2014/08/25 20:43:11, Nate Chapin wrote: > ...
6 years, 3 months ago (2014-08-26 17:25:23 UTC) #29
Nate Chapin
Ok, The guts of the change look good. i'll defer to other folks for the ...
6 years, 3 months ago (2014-08-26 17:28:35 UTC) #30
mlamouri (slow - plz ping)
On 2014/08/26 17:28:35, Nate Chapin wrote: > Ok, The guts of the change look good. ...
6 years, 3 months ago (2014-08-26 17:30:17 UTC) #31
dcheng
I still think that if the code is going to call serveAsynchronousMockedRequests(), it may as ...
6 years, 3 months ago (2014-08-26 17:36:28 UTC) #32
mlamouri (slow - plz ping)
On 2014/08/26 17:36:28, dcheng (OOO) wrote: > I still think that if the code is ...
6 years, 3 months ago (2014-08-26 23:50:22 UTC) #33
dcheng
On 2014/08/26 at 23:50:22, mlamouri wrote: > On 2014/08/26 17:36:28, dcheng (OOO) wrote: > > ...
6 years, 3 months ago (2014-08-27 00:12:31 UTC) #34
dcheng
(Also it looks like you have a bad rebase uploaded. There's a bunch of random ...
6 years, 3 months ago (2014-08-27 00:13:16 UTC) #35
kenneth.christiansen
kenneth.christiansen@gmail.com changed reviewers: + kenneth.christiansen@gmail.com
6 years, 3 months ago (2014-08-27 14:49:38 UTC) #36
kenneth.christiansen
https://codereview.chromium.org/295063002/diff/240001/Source/core/loader/ManifestLoader.cpp File Source/core/loader/ManifestLoader.cpp (right): https://codereview.chromium.org/295063002/diff/240001/Source/core/loader/ManifestLoader.cpp#newcode38 Source/core/loader/ManifestLoader.cpp:38: // When deleted, |selfDestruction| will delete |this|. Should be ...
6 years, 3 months ago (2014-08-27 14:49:38 UTC) #37
Mikhail
mikhail.pozdnyakov@intel.com changed reviewers: + mikhail.pozdnyakov@intel.com
6 years, 3 months ago (2014-08-29 12:49:18 UTC) #38
Mikhail
https://codereview.chromium.org/295063002/diff/240001/Source/core/testing/URLTestHelpers.cpp File Source/core/testing/URLTestHelpers.cpp (right): https://codereview.chromium.org/295063002/diff/240001/Source/core/testing/URLTestHelpers.cpp#newcode56 Source/core/testing/URLTestHelpers.cpp:56: WebURLResponse response(fullURL); is this change Manifest-related? https://codereview.chromium.org/295063002/diff/240001/Source/modules/websockets/DOMWebSocketTest.cpp File Source/modules/websockets/DOMWebSocketTest.cpp ...
6 years, 3 months ago (2014-08-29 12:49:18 UTC) #39
mlamouri (slow - plz ping)
dcheng@, this is including all the changes you asked for. PTAL. https://codereview.chromium.org/295063002/diff/240001/Source/core/loader/FrameLoaderClient.h File Source/core/loader/FrameLoaderClient.h (right): ...
6 years, 3 months ago (2014-09-01 19:23:51 UTC) #40
dcheng
https://codereview.chromium.org/295063002/diff/280001/Source/core/loader/FrameLoaderClient.h File Source/core/loader/FrameLoaderClient.h (right): https://codereview.chromium.org/295063002/diff/280001/Source/core/loader/FrameLoaderClient.h#newcode39 Source/core/loader/FrameLoaderClient.h:39: #include "public/platform/WebManifestError.h" // can't fwd declare enums. Nit: this ...
6 years, 3 months ago (2014-09-01 21:31:14 UTC) #41
mlamouri (slow - plz ping)
Comments applied. PTAL. https://codereview.chromium.org/295063002/diff/280001/Source/core/loader/FrameLoaderClient.h File Source/core/loader/FrameLoaderClient.h (right): https://codereview.chromium.org/295063002/diff/280001/Source/core/loader/FrameLoaderClient.h#newcode39 Source/core/loader/FrameLoaderClient.h:39: #include "public/platform/WebManifestError.h" // can't fwd declare ...
6 years, 3 months ago (2014-09-01 22:49:14 UTC) #42
kenneth.christiansen
lgtm https://codereview.chromium.org/295063002/diff/300001/Source/core/fetch/ResourceFetcher.cpp File Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/295063002/diff/300001/Source/core/fetch/ResourceFetcher.cpp#newcode459 Source/core/fetch/ResourceFetcher.cpp:459: case Resource::Manifest: Link to http://w3c.github.io/webappsec/specs/mixedcontent/#category-blockable ? https://codereview.chromium.org/295063002/diff/300001/Source/core/loader/ManifestLoader.h File ...
6 years, 3 months ago (2014-09-02 08:42:23 UTC) #43
dcheng
lgtm if comment is addressed. https://codereview.chromium.org/295063002/diff/300001/Source/web/WebLocalFrameImpl.cpp File Source/web/WebLocalFrameImpl.cpp (right): https://codereview.chromium.org/295063002/diff/300001/Source/web/WebLocalFrameImpl.cpp#newcode1513 Source/web/WebLocalFrameImpl.cpp:1513: ManifestLoader::loadManifest(PassRefPtr<LocalFrame>(m_frame)); PassRefPtr has a ...
6 years, 3 months ago (2014-09-02 08:56:34 UTC) #44
Mike West
LGTM2, iff you add a test verifying the mixed content checking behavior.
6 years, 3 months ago (2014-09-02 12:50:05 UTC) #46
mlamouri (slow - plz ping)
Nate, could you stamp the Source/web/ part of this CL? It seems that you reviewed ...
6 years, 3 months ago (2014-09-02 15:24:40 UTC) #47
kenneth.christiansen
6 years, 3 months ago (2014-09-15 13:25:02 UTC) #48
Should we close this one?

Powered by Google App Engine
This is Rietveld 408576698