URLs to MDN HTTP reference docs need to be updated ('Show MDN Docs' tooltip)
Categories
(DevTools :: Netmonitor, task)
Tracking
(firefox136 wontfix, firefox139 fixed)
People
(Reporter: brismith, Assigned: bomsy)
References
()
Details
Attachments
(1 file)
The MDN HTTP reference docs will have a new scheme soon. The following sections have a Reference/
prefix now:
- Headers
- Methods
- Statuses
So, the new scheme looks like:
- Web/HTTP/Headers/
+ Web/HTTP/Reference/Headers/
- Web/HTTP/Status/
+ Web/HTTP/Reference/Status/
- Web/HTTP/Methods/
+ Web/HTTP/Reference/Methods/
Redirects are in place on MDN for all existing URLs, but we should update the URL prefix used in netmonitor to avoid hitting 301s.
For example;
function getHeadersURL(header) {
const lowerCaseHeader = header.toLowerCase();
const idx = SUPPORTED_HEADERS.findIndex(
item => item.toLowerCase() === lowerCaseHeader
);
return idx > -1
? `${MDN_URL}Web/HTTP/Headers/${SUPPORTED_HEADERS[idx] + getGAParams()}`
: null;
}
Guides are also updated, but I don't see any places in netmonitor affected by this.
Assignee | ||
Comment 1•1 month ago
|
||
Assignee | ||
Comment 2•1 month ago
|
||
Thanks for filing Brian,
Guides are also updated, but I don't see any places in netmonitor affected by this.
Just confirming we have links to guides errors , i see Web/HTTP/CORS/Errors/
has changed to Web/HTTP/Guides/CORS/Errors/
.. is this correct?
Reporter | ||
Comment 3•1 month ago
|
||
Hi Hubert. Yes that's correct, thanks for changing it. I took a look at your patch and this makes sense.
For the record, this is the from -> to
mapping for redirects for those docs.
Updated•1 month ago
|
Comment 5•1 month ago
|
||
Backed out for causing devtools failures in browser_webconsole_cors_errors.js.
- Backout link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-FAIL | devtools/client/webconsole/test/browser/browser_webconsole_cors_errors.js | Click on the link opens the expected page - Got "https://developer.mozilla.org/docs/Web/HTTP/Guides/CORS/ErrorsCORSDisabled?utm_source=devtools&utm_medium=firefox-cors-errors&utm_campaign=default", expected "https://developer.mozilla.org/docs/Web/HTTP/Guides/CORS/Errors/CORSDisabled?utm_source=devtools&utm_medium=firefox-cors-errors&utm_campaign=d
Assignee | ||
Comment 7•1 month ago
•
|
||
(In reply to Brian Thomas Smith [bsmth] from comment #3)
Hi Hubert. Yes that's correct, thanks for changing it. I took a look at your patch and this makes sense.
For the record, this is the
from -> to
mapping for redirects for those docs.
Thanks brian!
Comment 8•1 month ago
|
||
Backed out for causing devtools failures in browser_webconsole_warning_group_cookies.js.
- Backout link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-FAIL | devtools/client/webconsole/test/browser/browser_webconsole_warning_group_cookies.js | Test timed out -
Updated•1 month ago
|
Assignee | ||
Updated•29 days ago
|
Comment 11•28 days ago
|
||
Backed out for causing build bustages
Backout link: https://hg.mozilla.org/integration/autoland/rev/1cdf8955c69b181c43331da7fa318814e2473c52
Comment 13•21 days ago
|
||
Comment 14•21 days ago
|
||
bugherder |
Assignee | ||
Updated•15 days ago
|
Updated•2 days ago
|
Description
•