WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
123229
Name all the GLib timeout sources
https://bugs.webkit.org/show_bug.cgi?id=123229
Summary
Name all the GLib timeout sources
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
Details
Formatted Diff
Diff
Name all the GLib timeout sources
(13.75 KB, patch)
2013-10-23 16:01 PDT
,
Bastien Nocera
no flags
Details
Formatted Diff
Diff
Name all the GLib timeout sources
(13.25 KB, patch)
2013-10-24 03:12 PDT
,
Bastien Nocera
no flags
Details
Formatted Diff
Diff
patch
(15.83 KB, patch)
2013-10-28 01:26 PDT
,
Philippe Normand
no flags
Details
Formatted Diff
Diff
patch
(16.45 KB, patch)
2013-10-28 02:41 PDT
,
Philippe Normand
andersca
: review+
andersca
: commit-queue-
Details
Formatted Diff
Diff
Patch for landing
(16.38 KB, patch)
2013-10-28 07:52 PDT
,
Philippe Normand
no flags
Details
Formatted Diff
Diff
Show Obsolete
(5)
View All
Add attachment
proposed patch, testcase, etc.
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
Created
attachment 215007
[details]
Name all the GLib timeout sources See
http://www.hadess.net/2013/10/reducing-wake-ups-2013-edition.html
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
Created
attachment 215042
[details]
Name all the GLib timeout sources See
http://www.hadess.net/2013/10/reducing-wake-ups-2013-edition.html
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
Created
attachment 215288
[details]
patch
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
Created
attachment 215292
[details]
patch
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.
Top of Page
Format For Printing
XML
Clone This Bug