Changeset 139272 in webkit


Ignore:
Timestamp:
Jan 9, 2013 6:50:22 PM (11 years ago)
Author:
jparent@chromium.org
Message:

Dashboard cleanup: Remove code for currentState and window.location.hash getting out of state
https://bugs.webkit.org/show_bug.cgi?id=106514

This is old code, as these can no longer get out of sync.
permmaLinkURLHash is generated from currentState, which is set only
from the location. The commment about how these can get out of sync
refers to a function that no longer exists.

Reviewed by Dirk Pranke.

  • TestResultServer/static-dashboards/dashboard_base.js:

(handleLocationChange):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r139270 r139272  
     12013-01-09  Julie Parent  <jparent@chromium.org>
     2
     3        Dashboard cleanup: Remove code for currentState and window.location.hash getting out of state
     4        https://bugs.webkit.org/show_bug.cgi?id=106514
     5
     6        This is old code, as these can no longer get out of sync.
     7        permmaLinkURLHash is generated from currentState, which is set only
     8        from the location.  The commment about how these can get out of sync
     9        refers to a function that no longer exists.
     10       
     11        Reviewed by Dirk Pranke.
     12
     13        * TestResultServer/static-dashboards/dashboard_base.js:
     14        (handleLocationChange):
     15
    1162013-01-09  Julie Parent  <jparent@chromium.org>
    217
  • trunk/Tools/TestResultServer/static-dashboards/dashboard_base.js

    r139270 r139272  
    515515        shouldGeneratePage = handleQueryParameterChange(params);
    516516
    517     var newHash = permaLinkURLHash();
    518     var winHash = window.location.hash || "#";
    519     // Make sure the location is the same as the state we are using internally.
    520     // These get out of sync if processQueryParamChange changed state.
    521     if (newHash != winHash) {
    522         // This will cause another hashchange, and when we loop
    523         // back through here next time, we'll go through generatePage.
    524         window.location.hash = newHash;
    525     } else if (shouldGeneratePage)
     517    if (shouldGeneratePage)
    526518        generatePage();
    527519}
Note: See TracChangeset for help on using the changeset viewer.