News for hackers. Stuff that matters.
Re:UnGoogled Chromium: Chromium with enhanced privacy, contr... by rplnt on Monday September 26, 2016 @11:58AM (#12582912)
You can hardly see source in Chrome without the dev tools. The Ctrl+U "functionality" just generates huge HTML document (a table filled with spans to highlight syntax) and it is very slow on large websites (both generating it and rendering I'd assume).
Re:UnGoogled Chromium: Chromium with enhanced privacy, contr... by lanterk on Monday September 26, 2016 @01:19PM (#12583691)
The CTRL-U is just the HTML part of the page. Not the CSS, images, or the other stuff.
Re:UnGoogled Chromium: Chromium with enhanced privacy, contr... by rplnt on Tuesday September 27, 2016 @04:24AM (#12588126)
Source HTML even, so whatever javascript changed is not there.

But for fun and laughs I saved js-generated source of a pretty big web page, opened it, and then pressed CTRL-U. It took 50 seconds to generate and render the source view. No wonder...

> document.getElementsByTagName('*').length

< 956632

(should be fun to go deeper and save this html, and then go ctrl+u on that)

edit: Tried it and it's been choking on the next "level" for the past 9 minutes. The tab is at over 1.5GB memory, I'm going to kill it.

Re:UnGoogled Chromium: Chromium with enhanced privacy, contr... by vardump on Monday September 26, 2016 @07:29PM (#12586483)
I'm using Chrome and pressed Ctrl-U. Nothing happened. What was supposed to happen?
Re:UnGoogled Chromium: Chromium with enhanced privacy, contr... by justratsinacoat on Monday September 26, 2016 @11:52PM (#12587330)
Usually, a new tab opens whose address is "view-source:$URL_OF_PREV_PAGE". Obviously, it's not terribly hard to replicate by hand, but that's weird. As has been said since the days of old, "it worked on my machine".
Re:UnGoogled Chromium: Chromium with enhanced privacy, contr... by witty_username on Monday September 26, 2016 @01:51PM (#12583975)
That's nothing to do with Chrome though, that's how the HTML is.
Re:UnGoogled Chromium: Chromium with enhanced privacy, contr... by rplnt on Tuesday September 27, 2016 @04:19AM (#12588115)
But the idea to generate that huge HTML by javascript to display source is weird. Especially when it takes half a minute for a big web page.