Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(273)

Issue 6573051: Fix SIGABRT by finalized IBusIMContext during _request_surrounding_text (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 9 months ago by fujiwara
Modified:
11 years, 8 months ago
Reviewers:
shawn.p.huang
CC:
shawn.p.huang_gmail.com
Base URL:
git@github.com:ibus/ibus.git@master
Visibility:
Public.

Description

Fix SIGABRT by finalized IBusIMContext during _request_surrounding_text BUG=RH#859879 TEST=Manually

Patch Set 1 #

Total comments: 2

Patch Set 2 : Updated with the more investigation. #

Total comments: 4

Patch Set 3 : Updated with message #6, #7. #

Total comments: 2

Patch Set 4 : Updated with message #10 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -6 lines) Patch
M client/gtk2/ibusimcontext.c View 1 2 3 3 chunks +23 lines, -6 lines 0 comments Download

Messages

Total messages: 11
fujiwara
11 years, 9 months ago (2012-09-26 09:54:12 UTC) #1
Peng
I went through the reproduce steps in bugzilla. I don't understand why the context is ...
11 years, 9 months ago (2012-09-26 15:23:53 UTC) #2
fujiwara
On 2012/09/26 15:23:53, Peng wrote: > I went through the reproduce steps in bugzilla. I ...
11 years, 9 months ago (2012-09-27 11:31:27 UTC) #3
fujiwara
On 2012/09/27 11:31:27, fujiwara wrote: > On 2012/09/26 15:23:53, Peng wrote: > > I went ...
11 years, 9 months ago (2012-10-02 03:15:40 UTC) #4
Peng
On 2012/10/02 03:15:40, fujiwara wrote: > On 2012/09/27 11:31:27, fujiwara wrote: > > On 2012/09/26 ...
11 years, 8 months ago (2012-10-02 12:41:23 UTC) #5
Peng
https://codereview.appspot.com/6573051/diff/6001/client/gtk2/ibusimcontext.c File client/gtk2/ibusimcontext.c (right): https://codereview.appspot.com/6573051/diff/6001/client/gtk2/ibusimcontext.c#newcode301 client/gtk2/ibusimcontext.c:301: ibusimcontext->has_focus == TRUE) { I think if the ibusimcontext ...
11 years, 8 months ago (2012-10-02 12:54:24 UTC) #6
Peng
https://codereview.appspot.com/6573051/diff/6001/client/gtk2/ibusimcontext.c File client/gtk2/ibusimcontext.c (right): https://codereview.appspot.com/6573051/diff/6001/client/gtk2/ibusimcontext.c#newcode303 client/gtk2/ibusimcontext.c:303: if (_use_key_snooper) Should we test _user_key_snooper at the beginning ...
11 years, 8 months ago (2012-10-02 12:58:42 UTC) #7
fujiwara
On 2012/10/02 12:58:42, Peng wrote: > https://codereview.appspot.com/6573051/diff/6001/client/gtk2/ibusimcontext.c > File client/gtk2/ibusimcontext.c (right): > > https://codereview.appspot.com/6573051/diff/6001/client/gtk2/ibusimcontext.c#newcode303 > ...
11 years, 8 months ago (2012-10-03 01:53:34 UTC) #8
fujiwara
On 2012/10/02 12:41:23, Peng wrote: > BTW, why the priv->context_id and get_effective_context_id(multicontext) are not > ...
11 years, 8 months ago (2012-10-03 02:04:00 UTC) #9
Peng
lgtm with one suggestion https://codereview.appspot.com/6573051/diff/12001/client/gtk2/ibusimcontext.c File client/gtk2/ibusimcontext.c (right): https://codereview.appspot.com/6573051/diff/12001/client/gtk2/ibusimcontext.c#newcode304 client/gtk2/ibusimcontext.c:304: ibusimcontext->has_focus == TRUE) { One ...
11 years, 8 months ago (2012-10-03 02:05:03 UTC) #10
fujiwara
11 years, 8 months ago (2012-10-03 02:40:53 UTC) #11
On 2012/10/03 02:05:03, Peng wrote:
> lgtm with one suggestion
> 
> https://codereview.appspot.com/6573051/diff/12001/client/gtk2/ibusimcontext.c
> File client/gtk2/ibusimcontext.c (right):
> 
>
https://codereview.appspot.com/6573051/diff/12001/client/gtk2/ibusimcontext.c...
> client/gtk2/ibusimcontext.c:304: ibusimcontext->has_focus == TRUE) {
> One suggestion, we initialize ibusimcontext to NULL first,
> if _focus_im_context != NULL && it has focus, and then we set ibusimcontext to
> _focus_im_context. It a little readable.

done.

> 
>
https://codereview.appspot.com/6573051/diff/12001/client/gtk2/ibusimcontext.c...
> client/gtk2/ibusimcontext.c:533: /* always install snooper */
> I think in ibus-1.5, we don't need always install key snooper anymore.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b