Changeset 109742 in webkit


Ignore:
Timestamp:
Mar 5, 2012 7:14:38 AM (12 years ago)
Author:
pfeldman@chromium.org
Message:

Web Inspector: cannot be launched when localStorage is disabled
https://bugs.webkit.org/show_bug.cgi?id=80252

Reviewed by Vsevolod Vlasov.

  • inspector/front-end/Settings.js:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r109741 r109742  
     12012-03-05  Pavel Feldman  <pfeldman@chromium.org>
     2
     3        Web Inspector: cannot be launched when localStorage is disabled
     4        https://bugs.webkit.org/show_bug.cgi?id=80252
     5
     6        Reviewed by Vsevolod Vlasov.
     7
     8        * inspector/front-end/Settings.js:
     9
    1102012-03-05  Pavel Feldman  <pfeldman@chromium.org>
    211
  • trunk/Source/WebCore/inspector/front-end/Settings.js

    r109204 r109742  
    9595    // If there are too many breakpoints in a storage, it is likely due to a recent bug that caused
    9696    // periodical breakpoints duplication leading to inspector slowness.
    97     if (window.localStorage.breakpoints && window.localStorage.breakpoints.length > 500000)
    98         delete window.localStorage.breakpoints;
     97    if (this.breakpoints.get().length > 500000)
     98        this.breakpoints.set([]);
    9999}
    100100
Note: See TracChangeset for help on using the changeset viewer.