Changeset 167865 in webkit


Ignore:
Timestamp:
Apr 27, 2014 4:13:05 PM (10 years ago)
Author:
mitz@apple.com
Message:

[Cocoa] -[WKWebProcessPlugInController parameters] returns nil if no parameters have been set yet
https://bugs.webkit.org/show_bug.cgi?id=132223

Reviewed by Sam Weinig.

  • WebProcess/InjectedBundle/mac/InjectedBundleMac.mm:

(WebKit::InjectedBundle::bundleParameters): Create the WKWebProcessBundleParameters if
needed.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r167864 r167865  
     12014-04-27  Dan Bernstein  <mitz@apple.com>
     2
     3        [Cocoa] -[WKWebProcessPlugInController parameters] returns nil if no parameters have been set yet
     4        https://bugs.webkit.org/show_bug.cgi?id=132223
     5
     6        Reviewed by Sam Weinig.
     7
     8        * WebProcess/InjectedBundle/mac/InjectedBundleMac.mm:
     9        (WebKit::InjectedBundle::bundleParameters): Create the WKWebProcessBundleParameters if
     10        needed.
     11
    1122014-04-27  Tim Horton  <timothy_horton@apple.com>
    213
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/mac/InjectedBundleMac.mm

    r167573 r167865  
    132132WKWebProcessBundleParameters *InjectedBundle::bundleParameters()
    133133{
    134     ASSERT(m_bundleParameters);
     134    // We must not return nil even if no parameters are currently set, in order to allow the client
     135    // to use KVO.
     136    if (!m_bundleParameters)
     137        m_bundleParameters = adoptNS([[WKWebProcessBundleParameters alloc] initWithDictionary:@{ }]);
    135138
    136139    return m_bundleParameters.get();
Note: See TracChangeset for help on using the changeset viewer.