Sylvestre Ledru
9eb1a31a98
Bug 2023419 - Remove Emacs/Vim modelines from dom/ r=emilio,media-playback-reviewers,webidl,padenot
...
replaced by .editorconfig
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D287843
2026-03-16 21:02:32 +00:00
Valentin Gosu
7b2a8b4bb6
Bug 2003766 - Make sure header array always holds the last value of the contentType header r=necko-reviewers,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D275438
2026-02-13 20:01:18 +00:00
Emilio Cobos Álvarez
791917d8af
Bug 1976665 - Sort headers in dom/. r=dom-core,media-playback-reviewers,webrtc-reviewers,dom-storage-reviewers,padenot,janv,smaug,jesup,jib
...
Most changes are automated. Relevant bit is dom/.clang-format. I had to
manually disable clang-format in a few places where importing external
files and so on that aren't self-contained, and fix a couple includes /
forward declarations.
Differential Revision: https://phabricator.services.mozilla.com/D256800
2025-08-05 11:47:34 +00:00
Yoshi Cheng-Hao Huang
ce9368410c
Bug 1970181 - Part 1: Add Subtype method in dom::MimeType. r=necko-reviewers,kershaw
...
The subtype is used to determine whether the MIME type matches special cases,
such as subtypes ending in "+json", which are recognized as JSON MIME types.
https://mimesniff.spec.whatwg.org/#json-mime-type
Differential Revision: https://phabricator.services.mozilla.com/D252437
2025-06-04 12:07:38 +00:00
acseh
be6c38cfef
Backed out 2 changesets (bug 1895075) for causing mochitest failures on test_block_script_wrong_mime.html CLOSED TREE
...
Backed out changeset a1cad969287d (bug 1895075)
Backed out changeset d5fef245a430 (bug 1895075)
2024-05-14 19:34:32 +03:00
Thomas Wisniewski
eead91496f
Bug 1895075 - part 1: implement the Fetch standard's Extract a MimeType and related algorithms; r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D209776
2024-05-14 11:23:01 +00:00
Thomas Wisniewski
fa3ee81f46
Bug 1895574 - use Append('c') instead of AppendLiteral(c) in MimeType.cpp; r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D209856
2024-05-08 20:58:30 +00:00
Thomas Wisniewski
70221d18ca
Bug 1847358 part 3: add a fullMimeType attribute to nsIBaseChannel and use it to make our Data URI content-type header parsing standards-compliant for XHR and Fetch; r=dlrobertson,necko-reviewers,jesup
...
Differential Revision: https://phabricator.services.mozilla.com/D203380
2024-03-04 21:34:27 +00:00
Thomas Wisniewski
4a7d5fe2a0
Bug 1847659 - Use the new MimeType parser to parse content-types for response headers; r=kershaw,necko-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D195692
2023-12-25 01:59:14 +00:00
Noemi Erli
d40c2eff5a
Backed out changeset 433e82386c67 (bug 1847659) for causing failures in script.window.html CLOSED TREE
2023-12-21 21:03:32 +02:00
Thomas Wisniewski
1776aeb0d5
Bug 1847659 - Use the new MimeType parser to parse content-types for response headers; r=kershaw,necko-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D195692
2023-12-21 15:46:29 +00:00
Thomas Wisniewski
489aea0550
Bug 1845006 - store the fully-serialized MimeType on data url channels so XHR and fetch may use it for content-type response headers, and clean up the data url parsing code to better match the spec. r=kershaw,sunil,necko-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D184713
2023-08-02 23:41:24 +00:00
Narcis Beleuzu
701fed4368
Backed out changeset f96e24bbd71c (bug 1845006) for bustages on nsDataHandler.cpp
2023-08-02 22:39:40 +03:00
Thomas Wisniewski
453464c0ca
Bug 1845006 - store the fully-serialized MimeType on data url channels so XHR and fetch may use it for content-type response headers, and clean up the data url parsing code to better match the spec. r=kershaw,sunil,necko-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D184713
2023-08-02 16:33:41 +00:00
Cristina Horotan
8c78774d7d
Backed out changeset 8d98996f824c (bug 1845006) for causing build bustage at FetchDriver.cpp CLOSED TREE
2023-08-02 17:22:58 +03:00
Thomas Wisniewski
4faa886152
Bug 1845006 - store the fully-serialized MimeType on data url channels so XHR and fetch may use it for content-type response headers, and clean up the data url parsing code to better match the spec. r=kershaw,sunil,necko-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D184713
2023-08-02 13:39:48 +00:00
Simon Giesecke
024dba94ba
Bug 1693541 - Improve uses of nsBaseHashtable and descendants and avoid multiple subsequent lookups in dom/base. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D106105
2021-02-26 11:36:40 +00:00
Simon Giesecke
95c38cc6b8
Bug 1691913 - Rename nsBaseHashtable::Put to InsertOrUpdate. r=xpcom-reviewers,necko-reviewers,jgilbert,dragana,nika
...
This makes the naming more consistent with other functions called
Insert and/or Update. Also, it removes the ambiguity whether
Put expects that an entry already exists or not, in particular because
it differed from nsTHashtable::PutEntry in that regard.
Differential Revision: https://phabricator.services.mozilla.com/D105473
2021-02-26 09:11:46 +00:00
Sylvestre Ledru
d7e8f80f7a
Bug 1562642 - Add missing MPL2 headers r=mhoye
...
Differential Revision: https://phabricator.services.mozilla.com/D37053
2019-07-05 17:05:57 +00:00
Thomas Wisniewski
a52c7c944f
Bug 1541138 - Update MimeType.cpp to consider HTTP whitespace, not ASCII whitespace; r=hsivonen
...
Update MimeType.cpp to consider HTTP whitespace, not ASCII whitespace
Differential Revision: https://phabricator.services.mozilla.com/D25863
2019-04-05 16:08:53 +00:00
Sylvestre Ledru
e5a134f73a
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
2018-11-30 11:46:48 +01:00
Thomas Wisniewski
51481485c8
Bug 1493550 - allow quoted empty mime parameters in MimeType.cpp, per MimeSniffing PR #79 ; r=hsivonen
...
Summary: allow quoted empty mime parameters in MimeType.cpp, per MimeSniffing PR #79
Reviewers: hsivonen
Reviewed By: hsivonen
Subscribers: reviewbot
Bug #: 1493550
Differential Revision: https://phabricator.services.mozilla.com/D6590
2018-09-26 00:05:12 +03:00
Thomas Wisniewski
80c53696b9
Bug 1454325 - have XHRs adjust content type of uploads per spec using the MIME Sniffing standard; r=hsivonen
...
have XHRs adjust content type of uploads per spec using the MIME Sniffing standard
Differential Revision: https://phabricator.services.mozilla.com/D5969
2018-09-20 01:04:51 +00:00
Valentin Gosu
21cba055c9
Bug 908413 - Use dom::CMimeType::Parse to extract content type for data URIs r=hsivonen
...
Depends on D5094
Differential Revision: https://phabricator.services.mozilla.com/D5095
2018-09-07 05:44:49 +00:00
Valentin Gosu
ae031f62bd
Bug 908413 - Make dom::MimeType a template to make it usable with nsCString r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D5094
2018-09-07 05:41:29 +00:00
Thomas Wisniewski
c9c1495509
Bug 1454590 - Align overrideMIMEType with the XMLHttpRequest Standard. r=hsivonen
...
MozReview-Commit-ID: 5k34F96jRPX
2018-08-13 16:12:10 -04:00