[Webkit-unassigned] [Bug 107364] Improve PageVisibility API with enums

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 23 16:09:48 PST 2013


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





--- Comment #3 from Joseph Pecoraro <joepeck at webkit.org>  2013-01-23 16:11:41 PST ---
(In reply to comment #2)
> (From update of attachment 183858 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=183858&action=review
> 
> This looks good from an overall perspective, but I'd like a WebKit2 engineer to take a look to make sure some assumptions aren't being violated.
> 
> > Tools/TestWebKitAPI/Tests/WebKit2/PageVisibilityState.cpp:41
> > +static void didRunJavaScript1(WKSerializedScriptValueRef, WKErrorRef, void*);
> > +static void didRunJavaScript2(WKSerializedScriptValueRef, WKErrorRef, void*);
> > +static void didRunJavaScript3(WKSerializedScriptValueRef, WKErrorRef, void*);
> > +static void didRunJavaScript4(WKSerializedScriptValueRef, WKErrorRef, void*);
> 
> Can we come up with a better name for these methods that are more descriptive?  Maybe:
> 
> didRunStep1StateChangeVisibleToHidden
> didRunStep2StateChangeHiddenToPrerender
> didRunStep3StateChangePrerenderToPreview
> didRunStep4InStatePreview

Sounds good. I had originally considered 1 didRunJavaScript function and an array of input strings and expected values to reduce the clutter, but I never ended up doing that. I can make these changes.

-- 
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