Commit 22a0b1e
Allow manifest processing to be invoked without going through an HTML document (#1069)
* Processing the manifest: Simplify the interface.
Replaces the link and response parameters with document URL and manifest URL.
These parameters were only used to get the document URL and manifest
URL, respectively, so it doesn't make sense to accept the much bulkier
HTML objects. This was limiting the ability to call the processing
algorithm from outside an HTML document context, which is a future
direction we wish to explore.
Note that the only call to this algorithm is in the HTML spec, which
needs to be updated simultaneously to use the new interface.
Pre-work for #668.
* Added new normative text (with a non-normative note) allowing user
agents to invoke the processing steps without a document, provided that
they supply a valid document URL.
* Reword non-normative note.
* Correctly link.
(Actually this makes the wrong link, but it's a respec bug: https://github.com/w3c/respec/issues/4435
* Added a SHOULD to set CORS correctly.
Note: There's a reference error here because HTML doesn't export a term. I'm getting it exported.
* Move all this text to its own section; it's getting a bit much.
* Use variables to avoid repeating complex sentences.
* Rewrote processing without a document section for clarity and correctness.
- Changed MUST into a SHOULD. We can't really expect all uses to
directly verify this.
- Removed the "or" clause that the document be same-origin as manifest;
you still want a link from the document to the manifest either way.
- Added "at least at some point in the past", to acknowledge that you
don't need to verify this at install time, just whenever you did the
caching.
- Clarify that the CORS request is only needed if the manifest is not
same-origin as the document.
* Apply suggestions from code review
Co-authored-by: Marcos Cáceres <[email protected]>
* Respond to review.
---------
Co-authored-by: Marcos Cáceres <[email protected]>1 parent 0252939 commit 22a0b1e
1 file changed
+56
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1254 | 1254 | | |
1255 | 1255 | | |
1256 | 1256 | | |
1257 | | - | |
1258 | | - | |
| 1257 | + | |
| 1258 | + | |
1259 | 1259 | | |
1260 | 1260 | | |
1261 | | - | |
1262 | | - | |
1263 | | - | |
1264 | | - | |
1265 | | - | |
1266 | 1261 | | |
1267 | 1262 | | |
1268 | 1263 | | |
| |||
1285 | 1280 | | |
1286 | 1281 | | |
1287 | 1282 | | |
1288 | | - | |
1289 | | - | |
1290 | 1283 | | |
1291 | 1284 | | |
1292 | 1285 | | |
| |||
1382 | 1375 | | |
1383 | 1376 | | |
1384 | 1377 | | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
1385 | 1432 | | |
1386 | 1433 | | |
1387 | 1434 | | |
| |||
0 commit comments