3 ms·
If the hole exists and is not going to be closed, why refuse to add other useful features that use the same hole? It's like taking a room, and refusing to add
by admax88q 5y ago
If the hole exists and is not going to be closed, why refuse to add other useful features that use the same hole?
It's like taking a room, and refusing to add a back door for "security" when the front door already exists.
- dmitriid 5y agoWhy expand the surface are of the hole? Besides, it's quite possible that the hole in WebPush does not allow for some/many scenarios that a background sync would.
- admax88q 5y agoBecause if the hole exists at all, malicious actors will find a way to abuse it. But if non malicious developers have to jump through too many hoops to provide useful functionality to users they will just give up and users lose out.
- dmitriid 5y ago> Because if the hole exists at all, malicious actors will find a way to abuse it. Yes, they will. So the question remains: why expand the hole?
- admax88q 5y agoBecause it makes no difference if the hole is small or large. To an attacker its the same size.
- dmitriid 5y agoIt does make the difference. You don't deliberately increase the surface of attack if you can help it.
- admax88q 5y agoI feel like your speaking in atitides, but not looking at this situation specifically. If I can unlock your computer with your password or with the word "hello" and you have no intention of removing the "hello" feature, would you not agree that we might as well remove the password entirely? How do we increase the attack surface of service workers by adding background sync, when we can get nearly identical behaviour using push? If you goal is purely to not increase the attack surface, you might as well never add any new APIs ever.
- admax88q 5y agos/atitides/platitudes
- dmitriid 5y agoIf you're going down the analogies rabbit hole: let's say your front door is unlocked. Should you then just open all your windows because, you know, everyone already has access to your house? > when we can get nearly identical behaviour using push? The devil is in the details: is it nearly identical behaviour? How nearly is it identical? I personally don't know.
- admax88q 5y agoOne wakes up the background page on a timer, the other wakes it up based upon a external controllable trigger. It's trivial to fire that external trigger based upon a timer.