Bug 123229

Summary: Name all the GLib timeout sources
Product: WebKit Reporter: Bastien Nocera <bugzilla>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bugzilla, cgarcia, changseok, commit-queue, eric.carlson, glenn, gustavo, jer.noble, menard, mrobinson, pnormand, zan
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Replace 0 timeouts g_timeout_add() by g_idle_add()
none
Name all the GLib timeout sources
none
Name all the GLib timeout sources
none
patch
none
patch
andersca: review+, andersca: commit-queue-
Patch for landing none

Bastien Nocera
Reported 2013-10-23 15:58:58 PDT
.
Attachments
Replace 0 timeouts g_timeout_add() by g_idle_add() (9.40 KB, patch)
2013-10-23 16:00 PDT, Bastien Nocera
no flags
Name all the GLib timeout sources (13.75 KB, patch)
2013-10-23 16:01 PDT, Bastien Nocera
no flags
Name all the GLib timeout sources (13.25 KB, patch)
2013-10-24 03:12 PDT, Bastien Nocera
no flags
patch (15.83 KB, patch)
2013-10-28 01:26 PDT, Philippe Normand
no flags
patch (16.45 KB, patch)
2013-10-28 02:41 PDT, Philippe Normand
andersca: review+
andersca: commit-queue-
Patch for landing (16.38 KB, patch)
2013-10-28 07:52 PDT, Philippe Normand
no flags
Bastien Nocera
Comment 1 2013-10-23 16:00:06 PDT
Created attachment 215006 [details] Replace 0 timeouts g_timeout_add() by g_idle_add() A zero timeout should be equivalent to using g_idle_add() without the nagging feeling that the wrong API was used.
Bastien Nocera
Comment 2 2013-10-23 16:01:47 PDT
Carlos Garcia Campos
Comment 3 2013-10-24 00:52:16 PDT
Comment on attachment 215006 [details] Replace 0 timeouts g_timeout_add() by g_idle_add() Not exactly true, because g_idle and g_timeout use different priorities by default. g_timeout_add(0 is equivalent to g_idle_add_full(G_PRIORITY_DEFAULT. But I agree with you and I have changed some of those in the past.
Carlos Garcia Campos
Comment 4 2013-10-24 00:57:56 PDT
Comment on attachment 215007 [details] Name all the GLib timeout sources View in context: https://bugs.webkit.org/attachment.cgi?id=215007&action=review We don't use usually attach more than one patch to the same bug report, could you please file a new bug report and upload an updated patch with the style issues fixed please? You can run Tools/Scripts/check-webkit-style script to make sure your patch doesn't have style issues before uploading them. Also, if you ask for review, setting the review flag to ?, the style bot will also run the style checker for you. > Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:415 > + g_source_set_name_by_id (m_readyTimerHandler, "[WebKit] mediaPlayerPrivateReadyStateTimeoutCallback"); WebKit coding style doesn't allow space between function name and parentheses. > Tools/DumpRenderTree/gtk/TestRunnerGtk.cpp:319 > + guint id; > + id = g_timeout_add_seconds(timeoutSeconds, waitToDumpWatchdogFired, 0); Use a single line here. > Tools/MiniBrowser/gtk/BrowserWindow.c:164 > + guint id; > + id = g_timeout_add(500, (GSourceFunc)resetEntryProgress, window->uriEntry); Ditto.
Carlos Garcia Campos
Comment 5 2013-10-24 00:59:22 PDT
WebKit patches should include a ChangeLog entry, you can use Tools/Scripts/prepare-ChangeLog script to generate the changelog entry for your patch before submitting it. See also: http://www.webkit.org/coding/contributing.html Thanks the patches.
Bastien Nocera
Comment 6 2013-10-24 03:12:51 PDT
Bastien Nocera
Comment 7 2013-10-24 03:13:38 PDT
(In reply to comment #5) > WebKit patches should include a ChangeLog entry, you can use Tools/Scripts/prepare-ChangeLog script to generate the changelog entry for your patch before submitting it. I can't do that, I'm working off a tarball.
Carlos Garcia Campos
Comment 8 2013-10-24 03:31:54 PDT
(In reply to comment #7) > (In reply to comment #5) > > WebKit patches should include a ChangeLog entry, you can use Tools/Scripts/prepare-ChangeLog script to generate the changelog entry for your patch before submitting it. > > I can't do that, I'm working off a tarball. Ok, I'll add the changelog entry for you then
Bastien Nocera
Comment 9 2013-10-24 03:34:09 PDT
(In reply to comment #8) > (In reply to comment #7) > > (In reply to comment #5) > > > WebKit patches should include a ChangeLog entry, you can use Tools/Scripts/prepare-ChangeLog script to generate the changelog entry for your patch before submitting it. > > > > I can't do that, I'm working off a tarball. > > Ok, I'll add the changelog entry for you then Thanks. Bug 123260 will have the same problem.
Philippe Normand
Comment 10 2013-10-25 00:10:29 PDT
Carlos, I can take care of this if you haven't already?
Carlos Garcia Campos
Comment 11 2013-10-25 00:58:46 PDT
(In reply to comment #10) > Carlos, I can take care of this if you haven't already? Of course, I didn't have time yesterday in the end.
Philippe Normand
Comment 12 2013-10-28 01:26:09 PDT
Carlos Garcia Campos
Comment 13 2013-10-28 02:37:26 PDT
Comment on attachment 215288 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=215288&action=review > Source/WebCore/platform/gtk/SharedTimerGtk.cpp:61 > + g_source_set_name_by_id(sharedTimer, "[WebKit] timeout_cb"); I wonder how useful the name is in cases like this one where a generic name is used. Maybe we could use the class name SharedTimer::timeout_cb, or simply rename these callbacks to something more descriptive (in this case, it doesn't even follow the webkit style), like sharedTimerTimeoutCallback.
Philippe Normand
Comment 14 2013-10-28 02:41:49 PDT
Anders Carlsson
Comment 15 2013-10-28 06:45:48 PDT
Comment on attachment 215292 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=215292&action=review > Source/WebCore/ChangeLog:8 > + Give a name to GLiib timeout sources, this is helpful when Typo, GLiib.
Philippe Normand
Comment 16 2013-10-28 07:52:02 PDT
Created attachment 215307 [details] Patch for landing
WebKit Commit Bot
Comment 17 2013-10-28 08:20:45 PDT
Comment on attachment 215307 [details] Patch for landing Clearing flags on attachment: 215307 Committed r158110: <http://trac.webkit.org/changeset/158110>
WebKit Commit Bot
Comment 18 2013-10-28 08:20:48 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.