[Webkit-unassigned] [Bug 184382] New: REGRESSION(r229929): WebInspector usage of window.localStorage broken

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 6 23:02:12 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=184382

            Bug ID: 184382
           Summary: REGRESSION(r229929): WebInspector usage of
                    window.localStorage broken
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: webkit at devinrousso.com
                CC: cdumez at apple.com

The following lines added in <https://webkit.org/b/69138> appear to have broken WebInspector's usage of `window.localStorage`:

String SQLiteStatement::getColumnBlobAsString(int col)
...|
386|    if (m_database.lastError() != SQLITE_OK)
387|        return String();
...|

STEPS TO REPRODUCE:
1. Open WebInspector
2. Do anything that would be "saved" for the next load (e.g. move around tabs, change settings, modify sidebar sizes, toggle paint flashing, etc.)
3. Close WebInspector
4. Reopen WebInspector
   => Any changes previously made will no longer be there (e.g. tabs will be back in original order, settings will revert to default value, all sidebars will be back to default size, paint flashing is disabled, etc.)

NOTES:
The value of `m_database.lastErrorMessage()` seems to be "unknown error" throughout `getColumnBlobAsString` (this was determined by using `syslog(LOG_ERR, "%s", m_database.lastErrorMsg());`).
In the case that `m_database.lastError() != SQLITE_OK`, `blob` isn't falsy and `getColumnBlobAsString` doesn't early return.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180407/1dcc5db2/attachment-0002.html>


More information about the webkit-unassigned mailing list