Bug 94869

Summary: REGRESSION (r124815): PDF in frame does not display any more
Product: WebKit Reporter: Brady Eidson <beidson>
Component: WebKit2Assignee: Brady Eidson <beidson>
Status: RESOLVED FIXED    
Severity: Normal CC: ap
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: All   
Attachments:
Description Flags
Patch ap: review+

Description Brady Eidson 2012-08-23 15:40:42 PDT
REGRESSION (r124815): PDF in frame does not display any more.

BuiltinPDFView needs to notify the plugincontroller that it initialized.

In radar as <rdar://problem/12063306>
Comment 1 Brady Eidson 2012-08-23 15:42:17 PDT
Created attachment 160267 [details]
Patch
Comment 2 Alexey Proskuryakov 2012-08-23 15:44:43 PDT
Comment on attachment 160267 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=160267&action=review

No test?.. <:-|

> Source/WebKit2/WebProcess/Plugins/PDF/BuiltInPDFView.mm:345
> +    controller()->didInitializePlugin();

I'm wondering if this should be made async to match regular code path. Probably not.
Comment 3 Brady Eidson 2012-08-23 15:47:40 PDT
(In reply to comment #2)
> (From update of attachment 160267 [details])
> 
> > Source/WebKit2/WebProcess/Plugins/PDF/BuiltInPDFView.mm:345
> > +    controller()->didInitializePlugin();
> 
> I'm wondering if this should be made async to match regular code path. Probably not.

Probably not indeed.  The regular synchronous code path for netscape plugins already has to do this, for example.

Thanks for the review!
Comment 4 Brady Eidson 2012-08-23 15:49:21 PDT
(In reply to comment #3)
> (In reply to comment #2)
> > (From update of attachment 160267 [details] [details])
> > 
> > > Source/WebKit2/WebProcess/Plugins/PDF/BuiltInPDFView.mm:345
> > > +    controller()->didInitializePlugin();
> > 
> > I'm wondering if this should be made async to match regular code path. Probably not.
> 
And also, the async design is largely centered around out-of-process plugins.  We'll need BuiltinPDFView to be out of process first.  :)
Comment 5 Brady Eidson 2012-08-23 15:50:13 PDT
http://trac.webkit.org/changeset/126490