[Webkit-unassigned] [Bug 167991] New: Inspector crashes if LANG env var specifies encoding
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Feb 8 08:16:07 PST 2017
https://bugs.webkit.org/show_bug.cgi?id=167991
Bug ID: 167991
Summary: Inspector crashes if LANG env var specifies encoding
Classification: Unclassified
Product: WebKit
Version: Other
Hardware: All
OS: Linux
Status: NEW
Severity: Normal
Priority: P2
Component: Web Inspector
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mod-wkbz at mt2015.com
CC: inspector-bugzilla-changes at group.apple.com
I'm using WebKit2GTK+ 2.14.3 on Arch Linux, but this bug has been around for some time.
The only locale-related {LC_*, LOCALE, LANG} environment variable set on my system is "LANG=es_ES.utf8". In this configuration, opening the WebKit2 inspector results in a "Web Inspector encountered an internal error." page instead of a working inspector.
If I set LANG to "es_ES" or "en_US" or "C", the inspector works. If I set LANG to the (invalid) "es_ES.", the C library complains about an invalid locale as it should:
(process:15144): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
The browser then runs in English, but the inspector still crashes in the same way.
Given that no other software complains about "LANG=es_ES.utf8", the inspector should be fixed to also support such "locale.encoding" values.
The JS exception stack is attached below; it looks like IntlDateTimeFormat::initializeDateTimeFormat is really the problem here but I couldn't figure out how specifically.
-------
Inspected URL: (unknown)
Loading completed: false
Frontend User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/603.1 (KHTML, like Gecko) Version/10.0 Safari/603.1
Uncaught Exceptions:
- TypeError: failed to initialize DateTimeFormat due to invalid locale (at LogTreeElement.js:32:107)
DateTimeFormat @ [native code]
toLocaleTimeString @ [native code]
LogTreeElement @ LogTreeElement.js:32:107
contentLoaded @ Main.js:247:63
? @ [native code]
- TypeError: undefined is not an object (evaluating 'this.tabBrowser.updateLayout') (at Main.js:1512:20)
_tabBrowserSizeDidChange @ Main.js:1512:20
_windowResized @ Main.js:1401:34
? @ [native code]
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170208/d29e9da7/attachment.html>
More information about the webkit-unassigned
mailing list