GNOME Bugzilla – Bug 779867
gnome-maps js warning on start that it will run very slowly.
Last modified: 2017-06-26 19:51:39 UTC
I see this warning on starting gnome-maps. It does indeed take a while to start (corei5 skylake processor with 8GB ram). Gjs-Message: JS WARNING: [resource:///org/gnome/Maps/js/xmldom/dom.js 21]: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create
I also see the warning with gnome-maps 3.23.92-0ubuntu1 using gjs 1.47.92-0ubuntu1 on Ubuntu GNOME 17.04 Beta.
Marcus said this is an issue in imported code from https://github.com/jindw/xmldom I filed a bug report there: https://github.com/jindw/xmldom/issues/202
Created attachment 352380 [details] [review] xmldom: Remove __proto__ accessor This is based on a change in upstream change. I kinda gave up on importing the new upstream files, as we did some patching previously, and just using the verbatim upstream files gives errors and warnings. At least, with this change loading GPX and KML layers still seem to work fine.
Attachment 352380 [details] pushed as af5cd9e - xmldom: Remove __proto__ accessor