WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
102186
QWebkitPluginFactory should support accessing the inline PDF data
https://bugs.webkit.org/show_bug.cgi?id=102186
Summary
QWebkitPluginFactory should support accessing the inline PDF data
tarja.sundqvist
Reported
2012-11-14 00:01:09 PST
The attached example application implements a custom webkit plugin which downloads a PDF file to a local file. Web page that is opened, e.g. pdf_test.html: {code} <HTML> <BODY> <p>Pdf tester<P> <iframe width="100%" height="90%" src="generate_pdf.php"/> </BODY> </HTML> {code} pdf_test.html refers to "generate_pdf.php" via an iframe. Content of generate_pdf.php: {code} <HTML> <BODY onload="javascript:document.mainform.submit()"> <p>Generating Form<P> <FORM name="mainform" action="view_pdf.php" METHOD=POST> <input type="hidden" name="name" value="test.pdf" /> </FORM> </BODY> </HTML> {code} generate_pdf.php calls view_pdf.php via a POST form (with the pdf name as post data). Content of view_pdf.php: {code} <?php if($_POST["name"] != '') { // Simple check to make sure noone is doing anything wrong (given this is a public facing page) if($_POST["name"] != 'test.pdf') { echo 'Please do not poison my $_POST variables!'; die; } header('Content-type: application/pdf'); header('Content-Disposition: inline; filename="' + $_POST["name"] + '"'); readfile($_POST["name"]); } ?> {code} --> Feature suggestion: custom plugin should 1) know that the data is inline and 2) get access to that downloaded data.
Attachments
example application
(3.01 KB, application/zip)
2012-11-14 00:02 PST
,
tarja.sundqvist
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
tarja.sundqvist
Comment 1
2012-11-14 00:02:12 PST
Created
attachment 174089
[details]
example application
Alexey Proskuryakov
Comment 2
2022-07-29 10:44:25 PDT
The Qt port has been removed from WebKit, resolving.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug