Expose XPIDL JS interface of MIMEType
Categories
(Core :: DOM: Core & HTML, enhancement)
Tracking
()
People
(Reporter: marcosc, Unassigned)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
It would be nice to have a JS interface for MIMEType.h/cpp. The current MIMEType parser exposed to chrome scripts doesn't validate mime types. What is important would be to have a way of accessing the MIME parser.
We need roughly something like this (WebIDL):
[ChromeOnly]
interface MIMEType {
constructor(DOMString input);
readonly attribute DOMString essence;
readonly attribute DOMString type;
readonly attribute DOMString subtype;
readonly attribute MIMEParams params;
}
[ChromeOnly]
interface MIMEParams {
readonly maplike<DOMString, DOMString>;
}
Reporter | ||
Comment 1•5 years ago
|
||
Hi Thomas, any chance we could get this on your backlog?
Comment 2•5 years ago
|
||
Yes, though probably not until next week at the soonest. I take it this effectively inherits the P2 priority of bug 1626158?
Reporter | ||
Comment 3•5 years ago
|
||
Yeah, basically. Then after that I can hook up the abandoned patch from bug 1626158.
Updated•5 years ago
|
Comment 4•2 years ago
|
||
:jjaschke, are we still interested in this? If so, I should be able to finally put together a patch for this soon. But it's been a few years, so I thought I'd ask in case bug 1626158 isn't really P2 anymore.
Updated•2 years ago
|
Sorry, I don't know enough about the context around bug 1626158 to say if it makes sense to have a JS interface for the MIME type.
Description
•