Changeset 166620 in webkit


Ignore:
Timestamp:
Apr 1, 2014 3:18:07 PM (10 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: Remove stale localStorage deletion transition code
https://bugs.webkit.org/show_bug.cgi?id=131061

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2014-04-01
Reviewed by Timothy Hatcher.

  • UserInterface/Base/ImageUtilities.js:

This code has been in for a while. We have transitioned to Web SQL.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r166618 r166620  
     12014-04-01  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Web Inspector: Remove stale localStorage deletion transition code
     4        https://bugs.webkit.org/show_bug.cgi?id=131061
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        * UserInterface/Base/ImageUtilities.js:
     9        This code has been in for a while. We have transitioned to Web SQL.
     10
    1112014-04-01  Zoltan Horvath  <zoltan@webkit.org>
    212
  • trunk/Source/WebInspectorUI/UserInterface/Base/ImageUtilities.js

    r164543 r166620  
    4545window.matchMedia("(-webkit-device-pixel-ratio: 1)").addListener(_devicePixelRatioChanged);
    4646
    47 // Delete old cached images from localStorage to free up space.
    48 // FIXME: Remove this once it has been in the builds for a while.
    49 try {
    50     const processedFlagKey = "com.apple.WebInspector.deleted-generated-images";
    51 
    52     if (!window.localStorage[processedFlagKey]) {
    53         for (var key in window.localStorage) {
    54             if (/^com\.apple\.WebInspector\.generated-(?:colored|embossed)-image-/.test(key))
    55                 delete window.localStorage[key];
    56         }
    57 
    58         window.localStorage[processedFlagKey] = true;
    59     }
    60 } catch (e) {
    61     // Ignore.
    62 }
    63 
    6447function _devicePixelRatioChanged()
    6548{
Note: See TracChangeset for help on using the changeset viewer.