Bug 135741

Summary: Web Inspector: Fix accidental always true comparison
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Severity: Normal CC: commit-queue, graouts, joepeck, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Description Flags
[PATCH] Proposed Fix none

Description Joseph Pecoraro 2014-08-07 20:57:40 PDT
There is what looks like a typo in a comparison in OverviewTimelineView.js.

>     if (!this.currentTime !== oldCurrentTime) {
>         ^ -- why?

This looks like an accident causing the comparison to always be false. Removing it, things still behave as expected.

I know of no user impact from this change. Possible performance improvement?
Comment 1 Radar WebKit Bug Importer 2014-08-07 20:57:49 PDT
Comment 2 Joseph Pecoraro 2014-08-07 20:58:55 PDT
Err, this would cause the comparison to always be true*
Comment 3 Joseph Pecoraro 2014-08-07 21:00:17 PDT
Created attachment 236261 [details]
[PATCH] Proposed Fix
Comment 4 Timothy Hatcher 2014-08-07 23:23:37 PDT
Comment on attachment 236261 [details]
[PATCH] Proposed Fix

Did my TreeOutline fix inspire you to search for this needle in a haystack?
Comment 5 Timothy Hatcher 2014-08-07 23:24:45 PDT
Yes, this would be a performance improvement.
Comment 6 WebKit Commit Bot 2014-08-07 23:57:49 PDT
Comment on attachment 236261 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 236261

Committed r172336: <http://trac.webkit.org/changeset/172336>
Comment 7 WebKit Commit Bot 2014-08-07 23:57:51 PDT
All reviewed patches have been landed.  Closing bug.