Bug 84715

Summary: [chromium] Don't keep pointers to released layer tree
Product: WebKit Reporter: Sami Kyostila <skyostil>
Component: New BugsAssignee: Sami Kyostila <skyostil>
Status: RESOLVED FIXED    
Severity: Normal CC: cc-bugs, husky, jamesr, nduca, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Sami Kyostila
Reported 2012-04-24 06:00:58 PDT
[chromium] Don't keep pointers to released layer tree
Attachments
Patch (7.39 KB, patch)
2012-04-24 06:06 PDT, Sami Kyostila
no flags
Sami Kyostila
Comment 1 2012-04-24 06:06:15 PDT
Iain Merrick
Comment 2 2012-04-24 06:19:10 PDT
Looks good, nice catch. One small comment: is there a named constant you could use instead of -1?
Sami Kyostila
Comment 3 2012-04-24 06:25:26 PDT
Thanks for the review. > One small comment: is there a named constant you could use instead of -1? I wondered about the same and found out that -1 seems to be generally used as the "null" layer id in the Chromium compositor code. I guess it would be worth replacing those with a named constant, but I did not want to go there with this particular crash fix.
Adrienne Walker
Comment 4 2012-04-24 09:41:42 PDT
Comment on attachment 138546 [details] Patch If this wasn't a crash fix, I'd say you should fix the -1 in this patch, but I'd like to get this fixed sooner rather than later. Can you file a bug for changing -1 to a constant and assign it to yourself?
Nat Duca
Comment 5 2012-04-24 09:45:50 PDT
Comment on attachment 138546 [details] Patch Argh, bit by the releaseRootLayer feature AGAIN!
Sami Kyostila
Comment 6 2012-04-24 09:57:22 PDT
(In reply to comment #4) > (From update of attachment 138546 [details]) > If this wasn't a crash fix, I'd say you should fix the -1 in this patch, but I'd like to get this fixed sooner rather than later. Can you file a bug for changing -1 to a constant and assign it to yourself? Sure, done: https://bugs.webkit.org/show_bug.cgi?id=84737
Sami Kyostila
Comment 7 2012-04-24 10:09:40 PDT
(In reply to comment #5) > Argh, bit by the releaseRootLayer feature AGAIN! It's a treacherous thing :( I think this particular bug would have been caught by running webkit_unit_tests with Valgrind -- any reason why we're not doing that?
WebKit Review Bot
Comment 8 2012-04-24 10:44:15 PDT
Comment on attachment 138546 [details] Patch Clearing flags on attachment: 138546 Committed r115080: <http://trac.webkit.org/changeset/115080>
WebKit Review Bot
Comment 9 2012-04-24 10:44:27 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.