Enterprise Browser CustomDOM

// Expert user has replied.
M Martin Sramo 2 years 11 months ago
7 9 0

Hi everybody, I just run into some strange situation with Enterprise Browser. I wanted to use Custom DOM feature, so I prepared some javascripts to inject. Some of them do some stuff at page load, like looking for 'bgsound' tag and playing custom sound using Notification API. Everything was looking fine until I left the device (TC8000) on the desk for a while. When I came back, device was at sleep of course. I woke it up, refreshed the page and I noticed my custom wav file sounds strange, like it tries to run it several times. So I started to dig deeper what could be the problem and finally I end with a very easy way to reproduce my situation.
 
These are the steps:
1. install EB from scratch (or delete config.xml to force EB to recreate)
2. in default config, change only the start page (I used google.com) and path to CustomDOMElements tags file (tags.txt in my case)
3. use tags file with only one javascript file (test.js in my case)
4. in the javascript file, only use alert() function to show a message at every page load
5. start EB and browse a few pages, everything should be working fine, for every page an alert should show up
6. put the device to sleep by pressing Power button and wake it up after a few seconds (or you can wait for display timeout)
7. now browse a few pages again
In my case, at this step, I got 2 to 15 (or more) alerts for every page. At first, I though that after every sleep, one alert is added, but I left the device in sleep for about a minute and after wake up, I got 15 alerts for every page.
 
Finally I turned on debug mode in EB and checked the source in Chrome developer tools. I noticed, that after initial EB startup, only one "script code" is added into HEAD section using DOM injection. But when I sleep/wake device and reload a page, "script code" is multiplied in the source code. Like this:

The number of multiplications stays the same for every page, until I sleep the device again. Then the code is multiplied even more times. When you restart EB, it will start from one again.
 
I use TC8000 with latest OS patch (Lollipop) and EB 1.7.1.0. I tried two TC8000s and TC56 (Marshmallow) with the same results. I also tried EB 1.6, again with the same results.
 
This is all I was able to gather I work with EB only for a short time so I guess I could easily make some mistake or forgot something. I tried to find an answer on techdocs at first, but I was not lucky. I also attached abovementioned files including config.xml and log.txt (enabled log for everything).
 
I would appreciate any help to solve the situation.
 
Thank you very much in advance.
 
Regards,
Martin

Please register or login to post a reply

9 Replies

M Martin Sramo

Hi Debraj,

after a quick test, it looks that version 1.7.1.7 solved the issue. I will use this version for a few days to try different situations. Hopefully everything will be OK and I will mark this thread as resolved.

Martin

D Debraj Dhar

Hi Martin,
Have you tried with the patch send by herbert? Please share us the feedback .
Thanks
Debraj

M Martin Sramo

Hi Debraj,

I'm just installing the patch, give me a moment to test it

Thanks,
Martin

H Herbert De Jong

Hello Michal,

we have sent you an fix based on EB 1.7  by mail

EnterpriseBrowser_signed_1.7.1.7.apk  please let me know if this resolves for you.

H Herbert De Jong

Hello Martin,

i was contacted by EB engineers to find out if you have an support case open with Zebra Support ?

also could you tell me what company and for which end-customer this fix is needed.

we would like to get an Support case in place as well for this issue.
contact me back on xbr786

EB engineers have identified the rootcause and are planning to add this in EB 1.8 version

M Michal Keracik

Hi Herbert,

we don't have ticket yet as we didn't assumed this is bug at first so we placed question here - do we need to create one? Will it speed up release of 1.8 version or some kind of patch?

don't get me wrong but as I understand it all EB customers using CustomDOM (one of most promoted EB functionality ) need this fix urgently and I'm quite surprised nobody reported it till now. If you need one name it's Pharmacopola.

M Martin Sramo

Hey guys,

any news please on this issue? My project relies on this feature. I would be glad for some info.

Thank you.

Regards,
Martin

M Martin Sramo

Guys, any idea?
​ or ​ maybe?

Thank you,
Martin

V Vedsatx Saddvv

I understand pdth87's team have reproduced this and it is in the backlog to be fixed.  He or somebody from his team should be able to provide an update.

Thanks,
Darryn.

CONTACT
Can’t find what you’re looking for?