Chromium: Permit blocking of view-source: with URLBlocklist
chromium-review.googlesource.com
chromium-review.googlesource.com
That said, I highly doubt that Google would take this feature request seriously if this were not associated with another Google property. For example, I can't imagine that if Typeform users opened a similar bug ticket that it would see any traction. To me this highlights a danger I had not considered before around the monopoly power of Google - inane requests that would benefit properties within the Google ecosystem get undue consideration despite it harming the broader ecosystem.
The bug is from 2018, and was fixed three years later. So it doesn't seem like there was any kind of special prioritization going on here. It was also fixed by a person working at Microsoft, not by somebody at Google.
BTW Google already allowed MDM (device) admins to disable devtools, but everyone involved in the issue also wanted it to disable view-source since it allowed students to look at the HTML.
0: https://bugs.chromium.org/p/chromium/issues/detail?id=895462...
1: https://bugs.chromium.org/p/chromium/issues/detail?id=895462...
Your suggestion seems equally invalid. The Chromium bug tracker currently has about 9k open feature requests. A lot of them are more niche than this, have no indication on the bug that they're relevant to Google, and have still not been closed as WONTFIX.
So it really was not a valid point to start with, and I don't understand why you're doubling down on it like that.
Your local policy is yours, but in much the same way that I don't think it's a good idea for an OS provider to provide a single, easy-to-use button saying "spy on this user who I pinky-swear is a member of my family under 18 and tell me everything they do and where their mobile is", an option to permit the disabling of view-source in a mainstream browser does not fit easily with me. I accept that there might be some situations in which you'd want to do it, but honestly it's the thin-edge of the wedge.
"Benign dictatorship" is a common form of open-source project governance; it's not unreasonable to expect that is the case here (with Google, or a part of it, as the dictator). That being said, many open-source projects are managed in a way other than "benign dictatorship". Debian, for example, famously uses the Condorcet method [1] if there are any significant ideological disputes; see this vote [2] about Richard Stallman for an example.
To my mind, a browser supporting -- in whatever form -- an option to disallow "view-source" could well be a controversial enough decision to necessitate a vote through this means. I don't know how Chromium is governed, and all I meant to do was ask how.
[1] https://en.wikipedia.org/wiki/Condorcet_method [2] https://www.debian.org/vote/2021/vote_002#outcome
if you're invisible your vote doesn't count anywhere ....
I think you may have some core assumption that open source software has a voting system when none really exists and it’s either a committee or a corporation that gives no voting rights whatsoever. Participation instead gets things in when your are both trusted and the governance approves.
Sites cannot enable it.
> With Schools using Google Forms as a testing platform, students are able to use this shortcut to search through the source of the page, and determine the correct answers.
So they're serving the answers with the questions, and get annoyed when the students figure this out. What a lark. How about using a system which doesn't do that?I wonder what chain of events lead this PR being filed.
How did the kid(s) get caught? Did a teacher decide to tell the IT department head? Did the head of department then tell the IT maintenance team? Then the IT maintenance team told the test vendor?
Very odd chain of events to lead to such a dangerous change.
Edit: are you intentionally or unintentionally trying to justify any and all cheating as a means to get the highest grade possible?
I don't understand what the term "cheating" means in a post-school context.
When you're taking a math quiz, the goal is to learn how to solve math problems, not bypassing the quiz.
What I really should have said is that in life, shortcuts aren't always appropriate. If you're an engineer confronted with the task of calculating the load the bridge can take, you're supposed to do the hard slog of calculating how much the bridge will take. Let's suppose that engineer didn't understand math, but simply cheated their way through University and took a guess - will you be stepping foot on the bridge?
Teaching kids it's okay to take inappropriate shortcuts is bad, because in the real world, inappropriate shortcuts can have nasty consequences.
1. I landed this fix because there was a policy that did not work properly. We could instead document that the URLBlocklist policy works for every scheme but one, or we could fix it. Fixing it makes more sense.
2. This policy only can be set on managed machines.
3. This policy, in isolation, is trivially circumvented. Managed environments block many things, including many of the proposed circumventions here.
4. I've built one of the world's most popular tools for viewing and modifying web traffic. The narrative that this feature has broad implications for anything is absurd.
I realize that if they really wanted, they could give up on Chrome and use something else, but for many of them, they will simply lock everything down out of laziness and probably wouldn't without a convenient way of doing so.
An example out of many: why give admins a simple way to disable the built-in password manager? This just enables dumb and archaic password policies for no good reason.
The young generation in IT already has issues because many of them don’t understand files, and many of them can’t even use a computer anymore.
They grow up with tech all around them, but because all of it is closed and proprietary and restricted, they never even try to look behind the curtain.
We call ourselves software engineers, then we also need to take on the ethical responsibility of our actions just like engineers do.
If you contribute to this culture of closed technology, you are just as well at fault as developers of DRM tech or Android SafetyNet.
Also not understanding files can be a benefit. Files are a legacy computing abstraction. Not knowing legally cruft can give you an open mind.
Every experience they'll make during their teenage years with computers is shaped by these managed experiences.
Files have multiple advantages over other approaches, such as being independent from the application that created them (even if the company subsequently goes under), being editable with a different application from the one that created them (though imperfectly sometimes), and being self-contained bundles of data that need no infrastructure to support them other than a local application (compared to other approaches, where a large cloud infrastructure is basically mandatory and you're SOL if it goes away for you).
Recency bias is a thing. Try to work counter to it.
Some students get a managed device from their school - and are allowed to take it home.
There have been already some scandals revolving around those devices. From school accessing their webcam - and trying to discipline someone for taking drugs when they ate jelly beans.
Have you ever been a LISA scale administrator? A K-12 level County Office of Education administrator? Have you ever helped patch embargoed bugs in codebases such as BIND, used billions of times per hour by oh, more or less everyone online?
Were you buddies with Doug Engelbart?
Do you have anything personally signed by Dr. Marshall Kirk McKusick?
Have you ever even met Tim Berners-Lee?
What about John Gilmore?
I'm guessing, your answer to those rhetorical questions would be no, but please: surprise me!
What uhh, "world's most popular tools for viewing and modifying web traffic" did you build? Because, this is the first time I have ever encountered you, and I have been root/Enterprise Admins/enable/etc/sudoers/wheel/etc. for the company which runs the cross-browser development framework utilized by Fortune 1 among others. I know a lot of people in this field going back to the 1970s, at least, and you found about the worst wage imaginable to become known to my periphery.
Moreover, since this is not NNTP, and I am guessing you are too young to even know what it means when someone writes: "welcome to my .killfile" do you want to have a career in this, or any other solar system in the next several lifetimes?
Because I am betting on: you will be in the realm of: no one, anywhere, ever, will want to hire you, ever, again from what I have read from you so far, and yes, I spent the time to peruse your pathetic commits since 2019 on Chromium too.
Know spoonm? I helped him get a job at Google, back before it became Alphabet, he worked on Chrome's V8 engine, among other things. I knew him before he even had a commit in the Metasploit Project. Ever heard of Chris Palmer? Because I was root/etc. at iSEC Partners, which is one of the places he worked before he went over to Google/Alphabet to supposedly help with Chrome's security, among other things.
How young were you when even NIST got on board with recommending against "security through obscurity"?
Bonus: others have already found workarounds, and begun to document them publicly. However, that seems to be begging the question: why make them jump through extra hoops unnecessarily? If it can be "trivially circumvented" then it is, IMHO, better to avoid, entirely.
Learn from your elders: “Simple things should be simple, complex things should be possible.”ーAlan Kay
You attempting to change the "narrative" and discount others' to fit your perspective, is worse than mere abject ignorance of how discourse and comments function, or did you forget that RFCs built the intergalactic network of computers? It’s down right rude, dehumanizing even. You do not get to unilaterally decide that people objecting to your boneheaded idiocy are uncertain of the implications, when I know quite well how GPOs and other draconian centralized ACL management systems operate at scale. I haven’t just deployed some, I am personal friends with the authors of firewall engines used in places best not to mention by name at the moment and am versed in a panoply of configuration management languages they do not tend to even teach at postgraduate levels, but hey, at least some of them have source code readily available and are, IMHO, far more critical to network operations than a browser has ever been, or will ever be.
If you wanted to get clout and attention and make a bunch of enemies from people you have never bothered to learn about, you sure picked a hell of a way to do it, emphasis on hell. I do not envy your karma.
Step out from behind your sock-puppet if you’re going to make attacks like this.
If you don't want to be banned, you're welcome to email hn@ycombinator.com and give us reason to believe that you'll follow the rules in the future. They're here: https://news.ycombinator.com/newsguidelines.html.
Second: It's still a really bad idea, because it feeds into the narrative that inherently unsafe client side restrictions are a viable security barrier e.g. dangerously incompetent politicians like Mike Parson already want to put the F12 key behind bars rather than admit to leaking PII on official websites.
What makes more sense - a small documentation update to explain an edge case scenario, or a breaking change across the web? Hint: it's not the one that involves code changes.
https://github.com/w3ctag/design-reviews/issues/606#issuecom...
> > "NOTE: [RFC7258] treats pervasive monitoring as an attack, but it doesn’t apply to managed devices."
> We don't think this is adequate. Given the power dynamics at play in an employer-employee relationship, the UA should still be working in the best interests of the end-user (the employee) even if the device being used is managed by an administrator. That is to say, pervasive monitoring is never a feature.
Chrome may not consider it part of the "web-exposed platform", since the code doesn't live in blink/, but the same logic applies to view-source. The needs of the users are more important than the security theatre you wish to put on for their teacher's benefit.
What about kids in school? So only the poor kids who don't have access to their own hardware will be subject to these rules that prevent them from viewing source? Sounds pretty insane.
What's truly absurd is the apparent lack of critical thought that went into this decision.
Keep patting yourself on the back though, Eric. You're obviously totally 100% right on this one /s
I've responded here https://news.ycombinator.com/item?id=29213370 I'd bet it's pretty obvious the internet thinks this was a mistake (and we all know how sound and reasonable the internet always is :D ) but I thought the why it's so infuriating was important to point out too.
DRM and related technologies are an effort to wrest control of devices away from their owners, and give control the manufacturers and software companies. For managed devices, this is a bit more reasonable (a school should be able to manage its devices I suppose) but the technological framework here also eliminates software freedom.
[1] https://support.google.com/chrome/a/answer/7532419?hl=en [2] https://bugs.chromium.org/p/chromium/issues/detail?id=895462
Any script that was doing a password comparison client-side was laughed at in the past -- rightly so --, but now that MS & Google see a business case it's fine? (And a password being a secret, is basically the same as the answer to a question).
The existence of badly-written apps that rely on this crutch become justification for keeping this stupid feature in.
Lazy admins will use `view-source: *` rather than blocking specific sites.
So frustrating: Everyone doing bad/lazy things 'wins', and the users suffer because now these devices basically can't be used to learn or do web development.
> With Schools using Google Forms as a testing platform, students are able to use this shortcut to search through the source of the page, and determine the correct answers.
How do I add a new feature to Chromium, submit a pull request to Google, get it past their various layers of checks and policies, and mandate that all schools use this new option?
https://news.ycombinator.com/item?id=28867562
https://arstechnica.com/tech-policy/2021/10/viewing-website-...
Maybe just don't put things in source you don't want to be seen?
my next step was to look at the chromium bug tracker and apparently that was "fixed" in 2019. weather it still is or not, i don't know. https://chromium.googlesource.com/chromium/src.git/+/ccda1d8...
On the other hand, with the current state of the source, one sees oneself having to use the debugger to get the damn things to even work.
That gibberish produced by the framework du jour, most of the time is creapily bloated, sometimes even shockingly redundant (read: you could strip 50% to 75% without loosing any functionality).
Modern web: bloat website, than use clown cars full of dependencies to "minimize" instead of having a slim and readable source in the first place.
- Active Directory/Group Policy/Managed Devices have hundreds of thousands of ways to lock machines down based on the IT staff’s needs (eg disabling USB ports, disabling devtools, etc)
- You will not be affected by this in ANY way if you don’t have a managed machine
- The feature is already there, just broken
If you’re mad about this, get mad at your IT staff?
Extrapolate this mindset into the future and you have removal/alternation of other browser features because someone can not code a website properly.
Browser is supposed to be the 'user agent', the 'unstoppable force', and it has been that since the dawn of the web and it should stay that way.
h.f.s.
Certainly seems like we'll need tools which don't close things off like this.
Notice on the bug report that the reproduction steps include setting a "DeveloperToolsDisabled" registry entry. Curl / wget wouldn't always be accessible in this kind of locked down setup (and they're probably trying to make it difficult even if it's impossible to block completely).
It's nearsighted to the point of disbelief.
Just saying. Apart from drug addicts doing blunt cybercrimes, I find the most creapy things are done by devs that got used to a big paycheck -- additionally, sometimes got fkd in academia before and just became a well trained cynic.
javascript:alert(document.body.innerHTML); javascript:document.body.innerHTML="<plaintext>"+document.body.innerHTML
From MDN[1]:> The <plaintext> HTML element renders everything following the start tag as raw text, ignoring any following HTML. There is no closing tag, since everything after it is considered raw text.
You could use the <pre> tag, but that can be "escaped" from if a </pre> tag exists on the page. Escaping the angle brackets with < and > would fix it, but <plaintext> is more elegant IMO.
[0]: https://html.spec.whatwg.org/#plaintext-state
[1]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/pl...
You could also install another browser if that was allowed.