JS exception for first Chromium start related to getProspectiveUILanguageName_ function on the settings page
Reported by
pavel.se...@gmail.com,
Jan 15
|
|||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0 Steps to reproduce the problem: 1. Prepare machine with default language different than English (I have used russian and Win10 and Win7 machines) 2. Install Chromium from https://www.chromium.org/getting-involved/download-chromium 3. Open settings page 4. Open developer tools 5. You will see in console the following debug message lazy_load.crisper.js:39 Uncaught (in promise) TypeError: Cannot read property 'displayName' of undefined at HTMLElement.getProspectiveUILanguageName_ (lazy_load.crisper.js:39) at runMethodEffect (polymer-extracted.js:11) at Function._evaluateBinding (polymer-extracted.js:11) at Object.runBindingEffect [as fn] (polymer-extracted.js:11) at runEffectsForProperty (polymer-extracted.js:11) at runEffects (polymer-extracted.js:11) at HTMLElement._propagatePropertyChanges (polymer-extracted.js:11) at HTMLElement._propertiesChanged (polymer-extracted.js:11) at HTMLElement._flushProperties (polymer-extracted.js:11) at HTMLElement._flushProperties (polymer-extracted.js:11) getProspectiveUILanguageName_ @ lazy_load.crisper.js:39 What is the expected behavior? Clean console What went wrong? JS function in the file chrome\browser\resources\settings\languages_page\languages_page.js looks like this getProspectiveUILanguageName_: function(prospectiveUILanguage) { return this.languageHelper.getLanguage(prospectiveUILanguage).displayName; }, and prospectiveUILanguage variable contains "ru-RU" while function "getLanguage" expect language in 2 symbols format "ru" Did this work before? N/A Chrome version: 73.0.3673.0 Channel: n/a OS Version: 10.0 Flash Version:
,
Jan 16
(6 days ago)
I have mistaken with platform - error only happen on Windows 7
,
Jan 16
(6 days ago)
based on change log https://chromium.googlesource.com/chromium/src/+log/9ae66256c2c5a792fa908b7c9ba1f08b429329a6..96213b157ec9e295032b2a63163b3a80a55ddb66 I suppose that this commit can take influence to JS exception https://chromium.googlesource.com/chromium/src/+/a029f27a6e98a43e8f1492b85ca18007670d9b28
,
Jan 16
(6 days ago)
more precise information no error https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Win/521385/ contains error https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Win/521395/ so, highly probaility that this commit take influence https://chromium.googlesource.com/chromium/src/+/a029f27a6e98a43e8f1492b85ca18007670d9b28
,
Jan 18
(5 days ago)
Thank you for the precise bisect. This seems related to either WebUI-settings team, or folks working on Navigator.language, and not DevTools.
,
Jan 18
(5 days ago)
|
|||
►
Sign in to add a comment |
|||
Comment 1 by viswa.karala@chromium.org
, Jan 16