Changeset 85493 in webkit


Ignore:
Timestamp:
May 2, 2011 11:04:06 AM (13 years ago)
Author:
sfalken@apple.com
Message:

2011-04-29 Steve Falkenburg <sfalken@apple.com>

Reviewed by Maciej Stachowiak.

Plug-in failed to initialize message should be called when Java fails to initialize
https://bugs.webkit.org/show_bug.cgi?id=59856


To match the WebKit1 behavior, WebKit2 should dispatch the plug-in failed
to initialize message when we can't instantiate the Java plug-in.

  • WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: (WebKit::WebFrameLoaderClient::createJavaAppletWidget):
Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r85484 r85493  
     12011-04-29  Steve Falkenburg  <sfalken@apple.com>
     2
     3        Reviewed by Maciej Stachowiak.
     4
     5        Plug-in failed to initialize message should be called when Java fails to initialize
     6        https://bugs.webkit.org/show_bug.cgi?id=59856
     7       
     8        To match the WebKit1 behavior, WebKit2 should dispatch the plug-in failed
     9        to initialize message when we can't instantiate the Java plug-in.
     10
     11        * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
     12        (WebKit::WebFrameLoaderClient::createJavaAppletWidget):
     13
    1142011-05-02  Sam Weinig  <sam@webkit.org>
    215
  • trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp

    r85109 r85493  
    12551255PassRefPtr<Widget> WebFrameLoaderClient::createJavaAppletWidget(const IntSize& pluginSize, HTMLAppletElement* appletElement, const KURL& baseURL, const Vector<String>& paramNames, const Vector<String>& paramValues)
    12561256{
    1257     return createPlugin(pluginSize, appletElement, KURL(), paramNames, paramValues, "application/x-java-applet", false);
     1257    const String mimeType = "application/x-java-applet";
     1258    RefPtr<Widget> plugin = createPlugin(pluginSize, appletElement, KURL(), paramNames, paramValues, mimeType, false);
     1259    if (!plugin) {
     1260        if (WebPage* webPage = m_frame->page())
     1261            webPage->send(Messages::WebPageProxy::DidFailToInitializePlugin(mimeType));
     1262    }
     1263    return plugin.release();
    12581264}
    12591265
Note: See TracChangeset for help on using the changeset viewer.