[Webkit-unassigned] [Bug 32982] plugins/get-url-with-iframe-target.html fails on SnowLeopard (64-bit)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 28 09:53:11 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=32982


Alexey Proskuryakov <ap at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #45548|review?                     |review+, commit-queue-
               Flag|                            |




--- Comment #5 from Alexey Proskuryakov <ap at webkit.org>  2009-12-28 09:53:11 PST ---
(From update of attachment 45548)
> +    void webFrameDidFinishLoadWithReason(WebFrame*, NPReason);

Style nit: should be "WebFrame *". I'm not sure if the changes in your local
copy are in right or wrong direction - ObjC classes should have detached stars.

> -    NetscapePluginInstanceProxy(NetscapePluginHostProxy*, WebHostedNetscapePluginView *, bool fullFramePlugin);
> +    NetscapePluginInstanceProxy(NetscapePluginHostProxy*, WebHostedNetscapePluginView*, bool fullFramePlugin);

Same issue (old code was correct).

> -    NPError loadRequest(NSURLRequest *, const char* cTarget, bool currentEventIsUserGesture, uint32_t& streamID);
> +    NPError loadRequest(NSURLRequest*, const char* cTarget, bool currentEventIsUserGesture, uint32_t& streamID);

Same issue.

> +    FrameLoadMap  m_pendingFrameLoads;

Two spaces instead of one.

> +	// Check if another plug-in view or even this view is waiting for the frame to load.
> +        // If it is, tell it that the load was cancelled because it will be anyway.

Tab here.

> +void NetscapePluginInstanceProxy::webFrameDidFinishLoadWithReason(WebFrame* webFrame, NPReason reason)

Misplaced star again (I probably missed some instances anyway).

> +    RefPtr<PluginRequest> pluginRequest = m_pendingFrameLoads.get(webFrame);

Why does this need to be a RefPtr?

> -        PluginRequest* pluginRequest = new PluginRequest(requestID, request, target, allowPopups);
> +        RefPtr<PluginRequest> pluginRequest = PluginRequest::create(requestID, request, target, allowPopups);
>          m_pluginRequests.append(pluginRequest);

This is probably not performance critical code, but I think that a release()
would prevent refcount thrash.

r=me with style fixes.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list