On 5/12/2015 11:31 PM, mozilla-lists.mbou...@spamgourmet.com wrote:
Daniel wrote:

<Snip>

As I replied elsewhere, setting my Helper Apps application/pdf to either
"Use Adobe Reader (Default) or "Use Adobe Acrobat (in SeaMonkey)", I
still get sent to the same page

Yep; the accept: header still needs to be manually modified to let the
server know that you have a plugin capable of displaying PDF documents.
I did that using the "Live HTTP headers" extension just to see what's
going on. If you want to try it for yourself:
- Install the Live HTTP headers extension
- Restart SeaMonkey
- Set the helper app for application/pdf to "Use Adobe Acrobat (in
SeaMonkey)"
- Open Tools > Web Development > Live HTTP headers
- Load the page
<https://bugzilla.mozilla.org/attachment.cgi?id=8695711&action=edit>
- In Live HTTP headers, scroll up to the first request; it should begin:
     "GET /attachment.cgi?id=8695711&action=edit HTTP/1.1"
- Click on that request, then click "Replay..."
- In the resulting "Live HTTP Replay" window, change the Accept: header
line by adding "application/pdf to the list of accepted types, e.g.:
     Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,application/pdf,*/*;q=0.8

- Click "Replay"
- Reload the page; you should see the PDF embedded in the page, instead
of the message giving you an option to download the file.

A far easier workaround is to just use the download link to temporarily
save the file, and open it.

There might be a preference to set the accept header used, but I haven't
looked. If there is, you'd probably want to add "application/pdf," just
to the left of "*.*, so that it's available but less preferred than HTML.

Mark.

Installed "Live HTTP headers" ... will check back in tomorrow!

--
Daniel

User agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 SeaMonkey/2.39 Build identifier: 20151028234211
or
User agent: Mozilla/5.0 (X11; Linux x86_64; rv:41.0) Gecko/20100101 SeaMonkey/2.38 Build identifier: 20150903203501
_______________________________________________
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey

Reply via email to