brave-browser icon indicating copy to clipboard operation
brave-browser copied to clipboard

Rendering a website according to web standards

Open kuckir opened this issue 1 year ago • 5 comments

Description

Is there any chance that Brave will render my website according to web standards? You can find the web standards at https://www.w3.org/

Steps to reproduce

  1. Open www.photopea.com

Actual result

Website looks like this: Image

Expected result

It should look like this: Image

Reproduces how often

Easily reproduced

Brave version (brave://version info)

Latest: Version 1.70.126 Chromium: 129.0.6668.100 (Official Build) (64-bit)

Channel information

  • [x] release (stable)
  • [ ] beta
  • [ ] nightly

Reproducibility

  • [ ] with Brave Shields disabled
  • [ ] with Brave Rewards disabled
  • [ ] in the latest version of Chrome

Miscellaneous information

As I undrstand, you are trying to stretch the website, in order to make my ads invisible. However, if people decide to pay me for Premium and I remove ads, you still stretch the editor, making it unusable: Image

Many people reported it to me, and I don't know how to help them :(

https://www.reddit.com/r/photopea/comments/1fzs0xa/comment/lr3nhu5/ https://github.com/photopea/photopea/issues/7226

I understand, that you think it is wrong for creators of websites to make money. But if you decide to remove ads, at least do it properly and don't make the life of your users harder.

P.S. I had to write this from a different Github account, since you have blocked my original account @photopea many years ago, when I was discussing a different bug here.

kuckir avatar Oct 10 '24 16:10 kuckir

https://saastrappers.com/interviews/ivan-kutskir-photopea/ you do not get to complain about "creators of websites making money" when you pull in $200,000 a MONTH. this issue is disingenuous at best

https://www.reddit.com/r/IAmA/comments/i8j5te/i_made_a_free_alternative_to_photoshop_that_is/g18ush0/ in this reddit comment you mention you pull in $250,000 a month. these are insane figures for a year, let alone a MONTH. i don't understand why you think you have the right to complain about adblockers when you already earn so much money

not-nullptr avatar Oct 10 '24 20:10 not-nullptr

@not-nullptr I disagree with you. If a person is offering me an apple for X dollars, the fact that the person already made $1 / $1000 / $100000000 selling apples does not give a right to steal that apple from the person.

Just to be clear: I have been letting users of Photopea use ad blockers for the past 12 years, and I still do (it is about 20% of my users). This issue is not about ad blocking, but about Brave rendering Photopea incorrectly.

kuckir avatar Oct 10 '24 23:10 kuckir

if this issue is about web standards then why fish for sympathy with that comment about the brave developers thinking it's wrong for website creators to make money?

not-nullptr avatar Oct 11 '24 00:10 not-nullptr

The "stretching" seems to be related to a specific ad provider shown. I can replicate the issue in Arc with uBlock Origin by refreshing the page: sometimes it renders correctly, other times it doesn't.

fl0werpowers avatar Oct 11 '24 13:10 fl0werpowers

"i don't understand why you think you have the right to complain about adblockers when you already earn so much money"

You do not understand this, because of the collective socialist belief, that someone is evil, because he earns a lot of money. He's providing a service for better price or more quality, so He Actualy Has The Right To Complain And Earn Money With It.

This comes from one of the 7 sins, the envy (one of the worst). That's how this poor thoughts are born.

At least greed (if you want to call it so), brings prosperity and thrive to humanity, because of the desire of reaching more. This leads to more taxes paid and more money for the government, who shares it, because noone can escape taxes.

Every product and service needs to be paid, it doesn't matter if public or private. Charity cannot pay everything.

Afrodark avatar Oct 20 '24 07:10 Afrodark

guys GUYS, it's a technical issue, I don't care how much money someone makes or how. Let's focus on the bug at hand.

So I appreciate Brave blocking these ads very successfully, however I am a paid customer for this and now you're screwing up the design for those people, which is silly, and not intended, it's a bug. I am assuming it only happens for paid customers, correct me if I am wrong. But in any case, this is fixed by removing Brave Shields, pretty sure ublock origin blocks the ads without breaking the page. I assume its because Brave added a thing to slide away the dead space when the ads are blocked, so you gotta fix the code which also does it when ads are not even showing - Which would be a general bug, this could happen on ANY page where there are ads that happen to be disable because of a premium account.

So please focus on the technical bug here.

Love you Brave, big ups.

XOCODE-OP avatar Oct 20 '24 13:10 XOCODE-OP

however I am a paid customer for this and now you're screwing up the design for those people, which is silly, and not intended, it's a bug.

Which bug is this?

ryanbr avatar Oct 26 '24 05:10 ryanbr

the right hand side of the screen shows a row of ads. so I assume the code like blocked the element in a way where it pushed them out or something. so it works in ad mode. but in paid mode you would see what you see in the screenshot above where the right side is cut off, indicating that it also does this in paid mode when the ads arent even there, so now its pushing the actual UI out.

That being said, this was a bug at the time this was reported and currently I cannot reproduce it. Not sure if that is because Brave fixed it somehow or because the dev of Photopea got so annoyed by the reports that they adjusted their code to play nice with Brave's behavior now. Or maybe it's still a bug but I just cant reproduce it anymore.

XOCODE-OP avatar Oct 26 '24 11:10 XOCODE-OP

Brave shields blocks ads.

In the same vain people pay for youtube premium we also block youtube ads there also. The user is free to pay for these services, even with shields up there is nothing stopping any user for paying/using for them. I pay for a number of services myself, which we also block ads, but not everyone will or can afford.

The user has the option to disable shields for specific sites or globally, what ever suits. If you want to see ads on the site, just disable shields.

Thanks

ryanbr avatar Oct 26 '24 12:10 ryanbr

The issue title is extremely misleading so I have changed it. It looks like the report was actually talking about photopea.com being broken for Premium/paying customers. It doesn't look like that issue can be reproduced now. Please let us know if that is not the case. Thanks.

ShivanKaul avatar Oct 26 '24 16:10 ShivanKaul

I do not consider it to be fixed. www.Photopea.com still looks different in Brave than in other browsers (when you open it for the first time and start the editor).

My "business strategy" is, that anyone can use www.photopea.com for free, but it will run only on 80% of their screen. I encourage users to pay for a Premium account, to be able to use it on 100% of their screen.

Your web browser is re-building the structure of my website, to allow your users to use this "premium feature" without paying for it. Please, don't do it.

kuckir avatar Oct 28 '24 14:10 kuckir

it would probably help to be technical and specific for the claim of "looks different". Im sure it doesnt rebuilt every single html tag, so lets be specific

I'm sure Brave doesnt have special code for one website, so we they won't spend time debugging one specific page like that trying to understand where the difference is.

the claim about w3 standards is silly because we all understand the Brave Shields are the to manipulate the existing code, so obviously it would change the page. It just has to do it in a way where it doesnt overstretch the viewport like we saw initially.

Currently I dont see any difference, so it depends what the persisting issues actually would be.

XOCODE-OP avatar Oct 28 '24 15:10 XOCODE-OP

You are very wrong. Brave DOES have special code for one website (Photopea). We would be able to see this code if Brave was open-source.

The issue is already described at the top - Photopea looks differently in Brave than in other browsers.

kuckir avatar Oct 28 '24 15:10 kuckir

Also, it looks like nothing was fixed, because I still receive about five reporst a day from my Premium users who use www.photopea.com in Brave.

E.g. here: https://github.com/photopea/photopea/issues/7278

kuckir avatar Oct 28 '24 16:10 kuckir

We would be able to see this code if Brave was open-source.

Brave is open source: https://github.com/brave/brave-core/

@kuckir I'm genuinely trying to engage with you in a productive manner because I care about Brave users being able to use and support any website they want, while still blocking privacy-harmful 3rd party ads and trackers. Your attitude thus far has been extremely unhelpful and misleading. You have made several incorrect claims in this issue: "Brave is not following web standards", "Brave is not open source". If you want to engage productively with us to make sure your site is fixed and usable for Brave users, for both your free and Premium users, please let us know. I see @ryanbr has already responded to https://github.com/photopea/photopea/issues/7278, an issue that you pre-emptively closed.

Just a reminder that Brave (and I) believe that users deserve a private and user-first Web, so we will actively work against adblock-hostile website behaviour.

ShivanKaul avatar Oct 29 '24 06:10 ShivanKaul

If Brave is open-source, could you show me a part of your code, which treats a website differently if it is "photopea.com"? Either it is located in a different repository, or you did not make this part of your code open-source.

I tihnk it is completely unacceptable, that you call ads in my website "harmful". Hundreds of thousands of people use Photopea daily with ads. I also visit all websites on the internet the way they were created (including the ads the authors wanted me to see), without letting anyone process (and possibly modify) every content that I see on the web.

kuckir avatar Oct 29 '24 07:10 kuckir

I dont understand why you are making this assumption. Brave has built-in ad blockers, which have the purpose of doing this to ads in general. I don't know why you assume there is custom code for just one website.

XOCODE-OP avatar Oct 29 '24 09:10 XOCODE-OP

Open any website in Brave, right-click it and choose "Inspect". Switch to "Console" and run the following script:

window.innerWidth

When you do it in Photopea, it shows a different value than for any other website. Can you see it?

Brave DOES HAVE a special code for Photopea, and if you had access to the full source code of Brave, you would be able to see it somewhere in that code. Maybe @ShivanKaul could tell us more?

The expected value is described here: https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth so yes, I think we can clearly say that Brave is breaking web standards.

kuckir avatar Oct 29 '24 13:10 kuckir

Brave (and uBlock, and every other adblocker) uses filter lists and filter rules that operate on a per-website basis to both counter ads and to unbreak websites. EasyList and EasyPrivacy and other lists are open source. You can see Brave's adblock resources here and lists here. It seems like you're conflating browser source code with ad and tracker blocking lists. In any case, it's all open source.

I also visit all websites on the internet the way they were created (including the ads the authors wanted me to see), without letting anyone process (and possibly modify) every content that I see on the web.

Understood that this is your position, and this goes to the heart of our disagreement. We believe that the Web should be user-first and that users should be able to modify content they see on the Web, especially when it comes to 3rd party ads and trackers that are well-known to be privacy-harmful.

Again, we're interested in making sure photopea.com works for Brave users, so if there's anything productive you can tell us to help you, let us know. Otherwise, I'll be muting discussion of other topics, which is not appropriate on a reported webcompat issue.

ShivanKaul avatar Oct 29 '24 15:10 ShivanKaul

I have found Photopea mentioned in these three files of your code: https://github.com/search?q=repo%3Abrave%2Fadblock-lists%20photopea&type=code I don't know what you call "source code" and "blocking lists", but since you decided to make your software use a certain piece of data (which leads to incorrect rendering of my website), you should take responsibility for such a decision.

BTW. what does it mean that you marked this issue as "completed"? Does it mean that "window.innerWidth" in Photopea will work according to web standards? If yes, do you know when will the issue disappear from your web browser?

kuckir avatar Oct 29 '24 15:10 kuckir