MIME type parameters
Jack Bates <[email protected]> Tue, 07 Jan 2014 15:38:15 -0800
| Newsgroups | gmane.comp.mozilla.devel.plugins |
|---|---|
| Message-ID | <[email protected]> |
Should nsPluginHost::FindPluginForType() ignore MIME type parameters when it searches for matching plugins? http://dxr.mozilla.org/mozilla-central/source/dom/plugins/base/nsPluginHost.cpp#1155 If not, how do you write a plugin that matches all values of a MIME type parameter? e.g. how do you write a plugin that matches: application/basic-example-plugin;foo=bar application/basic-example-plugin;foo=baz application/basic-example-plugin;foo=qux etc. Also, should the order of MIME type parameters matter when nsPluginHost::FindPluginForType() searches for matching plugins? e.g. should the following be equivalent: application/basic-example-plugin;foo=bar;baz=qux application/basic-example-plugin;baz=qux;foo=bar If NP_GetMIMEDescription() returns application/basic-example-plugin;foo=bar;baz=qux should nsPluginHost::FindPluginForType() return that plugin for application/basic-example-plugin;baz=qux;foo=bar? https://developer.mozilla.org/en/docs/NP_GetMIMEDescription The <object type=... attribute "matches the media-type rule defined in section 3.7 "Media Types" of RFC 2616. In particular, a valid MIME type may include MIME type parameters." https://developer.mozilla.org/en-US/docs/Web/HTML/Element/object So should the MIME type parameters be ignored when trying to find the plugin for e.g. <object type=application/basic-example-plugin;foo=bar;baz=qux>?