RESOLVED FIXED 38552
PrettyPatch.pretty_diff("") should not hang
https://bugs.webkit.org/show_bug.cgi?id=38552
Summary PrettyPatch.pretty_diff("") should not hang
Eric Seidel (no email)
Reported 2010-05-04 15:48:34 PDT
Disable pretty patch on Chromium Mac to see if that resolves some hangs seen on the Mac Canary
Attachments
Patch (5.31 KB, patch)
2010-05-04 15:52 PDT, Eric Seidel (no email)
no flags
Patch (4.29 KB, patch)
2010-05-04 19:39 PDT, Eric Seidel (no email)
no flags
Eric Seidel (no email)
Comment 1 2010-05-04 15:52:48 PDT
Dirk Pranke
Comment 2 2010-05-04 16:01:23 PDT
Comment on attachment 55066 [details] Patch Can we just make the Mac port set _pretty_patch_available to false instead of returning a dummy text string?
Eric Seidel (no email)
Comment 3 2010-05-04 16:02:19 PDT
That will cause it to return a different dummy text string, but that's totally doable too.
Eric Seidel (no email)
Comment 4 2010-05-04 16:12:41 PDT
Dirk the change you're suggesting would look like this: chromium_mac.py: import base __init__... # FIXME: Remove this hack. _log.warn("Disabling pretty patch support due to bug 38552"); base._pretty_patch_available = False I'm happy to make such. But I think it's kinda a wash. They're both pretty hackish.
Dirk Pranke
Comment 5 2010-05-04 17:52:16 PDT
Ah, I see. It would be nice if there was an overridable way of determining if pretty patch was available, but there isn't. Also, I see that what you return from pretty_diff_text() - an error string -- is different than what we return from wdiff_text() -- an empty string -- if it isn't available. So your first change is fine.
Eric Seidel (no email)
Comment 6 2010-05-04 19:32:11 PDT
Just going to fix the pretty_diff hang for now.
Eric Seidel (no email)
Comment 7 2010-05-04 19:39:25 PDT
Dirk Pranke
Comment 8 2010-05-04 19:57:29 PDT
Comment on attachment 55085 [details] Patch LGTM (although I'm not a reviewer).
Shinichiro Hamaji
Comment 9 2010-05-04 22:48:54 PDT
Comment on attachment 55085 [details] Patch Looks like a nice fix.
WebKit Commit Bot
Comment 10 2010-05-04 23:06:37 PDT
Comment on attachment 55085 [details] Patch Clearing flags on attachment: 55085 Committed r58803: <http://trac.webkit.org/changeset/58803>
WebKit Commit Bot
Comment 11 2010-05-04 23:06:44 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.