Don't access the webkitNotifications object while processing namespaces....

... This causes crashes inside some Android WebViews, including the Verizon LG G2, which is a fairly popular device.

We started seeing a weird crash on several devices after rewriting our mobile web app (which is viewed through a WebView on Android) using Ember: https://gist.github.com/BenV/d40ce92b544ffbdfe53f

I got my hands on a Verizon LG G2 (the device that seems most likely to crash from our reports), and I was able to reproduce the issue easily. Any time I loaded up an ember app in a WebView and then tried to change the URL, the application would crash.

After much trial and error, I figured out that this was due to the findNamespaces function, which enumerates the window object at startup. For some reason touching the window.webkitNotifications object on this device inside a WebView in our application causes the crash when navigating away from the page.

I wish I had more information on how to reproduce in a less specific scenario, but this is a weird bug. We are running a forked version of Ember now in production and the crashes have stopped, where previously we were getting hundreds of them.

Please let me know if there is anything else I can do to help. I know this isn't exactly an ideal bug report, but hopefully the change is harmless enough that we can figure out how to get it (or something similar) into master.