Bug 120386 - Page::pluginData() should return a reference.
Summary: Page::pluginData() should return a reference.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Plug-ins (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andreas Kling
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-27 17:23 PDT by Andreas Kling
Modified: 2013-08-28 07:10 PDT (History)
5 users (show)

See Also:


Attachments
Patch (10.39 KB, patch)
2013-08-27 17:30 PDT, Andreas Kling
webkit-ews: commit-queue-
Details | Formatted Diff | Diff
Patch (12.60 KB, patch)
2013-08-27 17:51 PDT, Andreas Kling
darin: review+
Details | Formatted Diff | Diff
Patch (12.40 KB, patch)
2013-08-28 06:39 PDT, Andreas Kling
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kling 2013-08-27 17:23:27 PDT
Page::pluginData() should return a reference.
Comment 1 Andreas Kling 2013-08-27 17:30:02 PDT
Created attachment 209826 [details]
Patch
Comment 2 Early Warning System Bot 2013-08-27 17:37:32 PDT
Comment on attachment 209826 [details]
Patch

Attachment 209826 [details] did not pass qt-ews (qt):
Output: http://webkit-queues.appspot.com/results/1621096
Comment 3 Early Warning System Bot 2013-08-27 17:40:11 PDT
Comment on attachment 209826 [details]
Patch

Attachment 209826 [details] did not pass qt-wk2-ews (qt-wk2):
Output: http://webkit-queues.appspot.com/results/1591394
Comment 4 Andreas Kling 2013-08-27 17:51:13 PDT
Created attachment 209827 [details]
Patch
Comment 5 Darin Adler 2013-08-27 18:17:20 PDT
Comment on attachment 209827 [details]
Patch

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

> Source/WebCore/loader/SubframeLoader.cpp:197
> +    const PluginData& pluginData = page->pluginData();
> +    String pluginFile = pluginData.pluginFileForMimeType(newMIMEType);

Local variable not needed here. The old code had it to help it check against null.

> Source/WebCore/loader/SubframeLoader.cpp:418
> +        const PluginData& pluginData = m_frame->page()->pluginData();
> +        String pluginName = pluginData.pluginNameForMimeType(mimeType);

Local variable not needed here. The old code had it to help it check against null.

> Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:1408
> +                const PluginData& pluginData = webPage->corePage()->pluginData();
> +                if (pluginSupportsExtension(pluginData, extension))

Local variable not needed here. The old code had it to help it check against null.
Comment 6 Andreas Kling 2013-08-28 06:39:34 PDT
Created attachment 209875 [details]
Patch
Comment 7 WebKit Commit Bot 2013-08-28 07:10:43 PDT
Comment on attachment 209875 [details]
Patch

Clearing flags on attachment: 209875

Committed r154743: <http://trac.webkit.org/changeset/154743>
Comment 8 WebKit Commit Bot 2013-08-28 07:10:47 PDT
All reviewed patches have been landed.  Closing bug.