Bug 88791

Summary: Web Inspector: use jsdifflib for revision diff calculation.
Product: WebKit Reporter: Pavel Feldman <pfeldman>
Component: Web Inspector (Deprecated)Assignee: Pavel Feldman <pfeldman>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch vsevik: review+

Pavel Feldman
Reported 2012-06-11 11:00:28 PDT
Present diff calculation is incomplete, it does not properly handle the following case: [a, b, c, d, e, f, g, h] => [c, d, e, f, g, h, a, b] It detects [a, b] as the lcs. I imported jsdifflib from https://github.com/cemerick/jsdifflib. It has BSD license that is compatible with WebKit.
Attachments
Patch (27.61 KB, patch)
2012-06-11 11:11 PDT, Pavel Feldman
vsevik: review+
Pavel Feldman
Comment 1 2012-06-11 11:11:54 PDT
Pavel Feldman
Comment 2 2012-06-12 09:44:58 PDT
Note You need to log in before you can comment on or make changes to this bug.