Changeset 15598 in webkit


Ignore:
Timestamp:
Jul 24, 2006 8:58:48 AM (18 years ago)
Author:
ap
Message:

Reviewed by Darin.

Fix http://bugzilla.opendarwin.org/show_bug.cgi?id=10009
REGRESSION: Schubert-IT PDF Plug-in not working for full page (works in frames)

No test case possible.

WebCore:

  • page/Frame.cpp: (WebCore::Frame::begin): Give PDF plugins a chance to handle frame content, before ImageDocument claims it.

WebKit:

  • WebView/WebView.m: (+[WebView _viewClass:andRepresentationClass:forMIMEType:]): If we've got a type supported by WebPDFView, make sure to initialize the plugin database, in case a plugin wants to handle it.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r15597 r15598  
     12006-07-24  Alexey Proskuryakov  <ap@nypop.com>
     2
     3        Reviewed by Darin.
     4
     5        Fix http://bugzilla.opendarwin.org/show_bug.cgi?id=10009
     6        REGRESSION: Schubert-IT PDF Plug-in not working for full page (works in frames)
     7
     8        * page/Frame.cpp:
     9        (WebCore::Frame::begin): Give PDF plugins a chance to handle frame content, before ImageDocument
     10        claims it.
     11
    1122006-07-24  Mitz Pettel  <opendarwin.org@mitzpettel.com>
    213
  • trunk/WebCore/page/Frame.cpp

    r15550 r15598  
    589589  else if (DOMImplementation::isTextMIMEType(d->m_request.m_responseMIMEType))
    590590    d->m_doc = new TextDocument(DOMImplementation::instance(), d->m_view.get());
     591  else if ((d->m_request.m_responseMIMEType == "application/pdf" || d->m_request.m_responseMIMEType == "text/pdf") && PlugInInfoStore::supportsMIMEType(d->m_request.m_responseMIMEType))
     592    d->m_doc = new PluginDocument(DOMImplementation::instance(), d->m_view.get());
    591593  else if (Image::supportsType(d->m_request.m_responseMIMEType))
    592594    d->m_doc = new ImageDocument(DOMImplementation::instance(), d->m_view.get());
  • trunk/WebKit/ChangeLog

    r15593 r15598  
     12006-07-24  Alexey Proskuryakov  <ap@nypop.com>
     2
     3        Reviewed by Darin.
     4
     5        Fix http://bugzilla.opendarwin.org/show_bug.cgi?id=10009
     6        REGRESSION: Schubert-IT PDF Plug-in not working for full page (works in frames)
     7
     8        * WebView/WebView.m:
     9        (+[WebView _viewClass:andRepresentationClass:forMIMEType:]): If we've got a type supported by WebPDFView,
     10        make sure to initialize the plugin database, in case a plugin wants to handle it.
     11
    1122006-07-23  Mark Rowe  <opendarwin.org@bdash.net.nz>
    213
  • trunk/WebKit/WebView/WebView.m

    r15498 r15598  
    7575#import "WebNSViewExtras.h"
    7676#import "WebPageBridge.h"
     77#import "WebPDFView.h"
    7778#import "WebPluginDatabase.h"
    7879#import "WebPolicyDelegate.h"
     
    529530    Class repClass = [[WebDataSource _repTypesAllowImageTypeOmission:YES] _webkit_objectForMIMEType:MIMEType];
    530531   
    531     if (!viewClass || !repClass) {
     532    if (!viewClass || !repClass || [[WebPDFView supportedMIMETypes] containsObject:MIMEType]) {
    532533        // Our optimization to avoid loading the plug-in DB and image types for the HTML case failed.
    533534        // Load the plug-in DB allowing plug-ins to install types.
Note: See TracChangeset for help on using the changeset viewer.