Ultralight icon indicating copy to clipboard operation
Ultralight copied to clipboard

Inspector permanently broken (until DB file removed) if you click on Font in the Elements tab

Open JohnKlenk opened this issue 9 months ago • 0 comments

In the inspector, go to the Elements tab and click on Font on the right side (you may need to first open the "styles" panel by clicking the icon that looks like a square with a vertical line near its right side).

Bug: The inspector crashes with:

TypeError:​ null is not an object (evaluating 'axis.match(WI.FontStyles.SettingPattern)​')​ (at FontStyles.js:​254:​46)​
    _parseFontFeatureOrVariationSettings @ FontStyles.js:​254:​46
    _calculateFontVariationAxes @ FontStyles.js:​223:​91
    _calculateFontProperties @ FontStyles.js:​166:​63
    refresh @ FontStyles.js:​153:​38
    FontStyles @ FontStyles.js:​47:​21
    layout @ FontDetailsPanel.js:​131:​45
    _layoutSubtree @ View.js:​304:​20
    _layoutSubtree @ View.js:​315:​32
    _layoutSubtree @ View.js:​315:​32
    _visitViewTreeForLayout @ View.js:​383:​36

It will then crash every time you use it, until you delete file__0.localstorage (or possibly sometimes file__00.localstorage) in %AppData%\<company>\<app>\default.

The problem does not happen with the WebCore "minibrowser.exe".

(Testing with UL 1.4.0.1b4b800 on Win 10.)

JohnKlenk avatar Jun 02 '25 22:06 JohnKlenk