[Webkit-unassigned] [Bug 45222] Add ability to send UserData to willSubmitForm
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Sep 3 19:58:16 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=45222
--- Comment #5 from Sam Weinig <sam at webkit.org> 2010-09-03 19:58:16 PST ---
(In reply to comment #4)
> (From update of attachment 66581 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=66581&action=prettypatch
>
> Mostly just curious what this code looked like. Very pretty. Some (trivial) comments below.
>
> > WebKit2/UIProcess/WebPageProxy.cpp:581
> > - willSubmitForm(process()->webFrame(frameID), process()->webFrame(sourceFrameID), textFieldValues, listenerID);
> > + willSubmitForm(process()->webFrame(frameID), process()->webFrame(sourceFrameID), textFieldValues, 0/*userData*/, listenerID);
> Slightly more beautiful would be a noUserData constant that was just a null pointer.
Ok.
>
> > WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:520
> > + RefPtr<APIObject> userData;
> > + webPage->injectedBundleFormClient().willSubmitForm(webPage, form, m_frame, sourceFrame, values, userData);
> I'm confused. Don't we need to actually allocate a userData object here? Does willSubmitForm take a RefPtr by reference as an out param?
Yes it does and very intentionally.
Thanks for the review.
--
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