Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MakoTV (False Positive) #1492

Closed
IsraeliUser opened this issue Feb 7, 2018 · 11 comments
Closed

MakoTV (False Positive) #1492

IsraeliUser opened this issue Feb 7, 2018 · 11 comments

Comments

@IsraeliUser
Copy link

https://www.mako.co.il/mako-vod?partner=NavBar
(You need EasyList Hebrew)

Please remove mako.co.il from:
101greatgoals.com,allthetests.com,ancient-origins.net,biology-online.org,calcalist.co.il,convert-me.com,diffen.com,eurweb.com,globes.co.il,grammarist.com,jerusalemonline.com,mako.co.il,nysun.com,reshet.tv,roadracerunner.com,textsfromlastnight.com,trifind.com,walla.co.il,x17online.com,yad2.co.il,ynet.co.il,yocore.com##script:inject(abort-on-property-write.js, upManager)
and add:
mako.co.il##script:inject(nowebrtc.js)

Thanks

@mapx-
Copy link
Contributor

mapx- commented Feb 7, 2018

Which is the issue ?

@IsraeliUser
Copy link
Author

I get a blank page on Firefox.

@okiehsch
Copy link
Contributor

okiehsch commented Feb 7, 2018

What does the filter mako.co.il##script:inject(nowebrtc.js) achieve?

I will remove mako.co.il##script:inject(abort-on-property-write.js, upManager).

okiehsch added a commit that referenced this issue Feb 7, 2018
@IsraeliUser
Copy link
Author

They use WebRTC to serve ads.
There are commercials before the videos.

@mapx- mapx- closed this as completed in 163f301 Feb 8, 2018
@IsraeliUser
Copy link
Author

IsraeliUser commented Feb 14, 2018

Same issue (blank page) with mako.co.il##script:inject(nowebrtc.js), and sometimes ads slip through (outside MakoTV).

Please readd mako.co.il to:
101greatgoals.com,allthetests.com,ancient-origins.net,biology-online.org,calcalist.co.il,convert-me.com,diffen.com,eurweb.com,globes.co.il,grammarist.com,jerusalemonline.com,nysun.com,reshet.tv,roadracerunner.com,textsfromlastnight.com,trifind.com,walla.co.il,x17online.com,yad2.co.il,ynet.co.il,yocore.com##script:inject(abort-on-property-write.js, upManager)
and remove:
mako.co.il##script:inject(nowebrtc.js)
until we find a better solution.

Thanks

mapx- added a commit that referenced this issue Feb 15, 2018
@IsraeliUser
Copy link
Author

Do you have any idea how to fix it? MakoTV works fine on Chrome. But I get a blank page on Firefox.
Please open this issue.

@gorhill
Copy link
Member

gorhill commented Feb 20, 2018

Ok, I added a hidden setting to control whether scriptlets are injected through stream filtering or not, and the page renders fine if scriptlets are injected as with Chrome (though late), but it does not work if they are injected using stream filtering. I have no idea why at this point. I will continue investigating.

@gorhill
Copy link
Member

gorhill commented Feb 20, 2018

Ok I think I know why: the page has a HTML error inside the last noscript tag on the page (<ul> instead of </ul>), and this causes the following script tags (which are responsible for the page loading properly) to end up being inside the noscript tag after serializing back the document. End result: the needed script tags at the end are not being seen by Firefox.

@gorhill
Copy link
Member

gorhill commented Feb 20, 2018

For now I am going to push an update which causes scriptlets to be injected the "slow" way -- just as before, and just as is done in Chromium. There is no obvious way to work around the issue here which is caused by an HTML error in the page: the DOMParser object used internally by uBO does not ignore noscript tags as opposed to the browser internal parser, and I have no way to force DOMParser to ignore noscript tags. So for now I need to roll back scriptlet injection through stream filtering. This will also address other (unrelated) issue gorhill/uBlock#3526.

@gorhill
Copy link
Member

gorhill commented Feb 20, 2018

This is the part of the DOMParser spec which causes issue here (my emphasis):

script elements get marked unexecutable and the contents of noscript get parsed as markup.

@mapx-
Copy link
Contributor

mapx- commented Feb 22, 2018

uBo/ FF issue, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants