https://bugzilla.wikimedia.org/show_bug.cgi?id=54181
--- Comment #37 from Liangent <[email protected]> --- Created attachment 13980 --> https://bugzilla.wikimedia.org/attachment.cgi?id=13980&action=edit Special version for bug-attachment.wikimedia.org So a slightly hacked version attached. diff --git a/components/inlinedisposition.js b/components/inlinedisposition.js index b13a4c1..3552eb2 100644 --- a/components/inlinedisposition.js +++ b/components/inlinedisposition.js @@ -147,7 +147,9 @@ var InlineDispositionService = disp = chan.getResponseHeader("Content-Disposition"); } catch (e) { } - if (chan.loadFlags & Components.interfaces.nsIChannel.LOAD_DOCUMENT_URI && this._re.test(disp)) + if (chan.loadFlags & Components.interfaces.nsIChannel.LOAD_DOCUMENT_URI + && chan.getRequestHeader("Host") == "bug-attachment.wikimedia.org" + && this._re.test(disp)) chan.setResponseHeader("Content-Disposition", disp.replace(this._re, "inline"), false); } -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
