New issue
Advanced search Search tips

Issue 882024 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Oct 12
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Feature



Sign in to add a comment

Allow to create iframe with view-source:

Reported by ji...@warting.se, Sep 7

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36

Steps to reproduce the problem:
<iframe src="view-source:http://example.com"></iframe>

What is the expected behavior?
Having to use any javascript framework like highlight.js to create example code snippets are so tedious. The browser already have code highlighting built in into the browser so why can't i just simple just use it and create a iframe with the view-source protocol? wouldn't care if its sandboxed or not... the benefit would be that i don't have to use any javascript. browser can have javascript turned off and it would work nicely.

view-source:blob:http://example.com/214...456
view-source:http://example.com/code-snippet.js
view-source:data:;base64,AAAAA

What went wrong?
get a error message saying: "Not allowed to load local resource: view-source:<url>"

Did this work before? No 

Does this work in other browsers? N/A

Chrome version: 68.0.3440.106  Channel: n/a
OS Version: OS X 10.13.6
Flash Version:
 
Labels: Needs-Triage-M68
Components: Blink>HTML>IFrame
Labels: -Type-Bug -Pri-2 Pri-3 Type-Feature
Cc: tkent@chromium.org mea...@chromium.org
Components: Blink>ViewSource
meacer@, do web block view-source IFRAME intentionally?

Status: WontFix (was: Unconfirmed)
I assume this is intentional.

Yes, intentional:  Bug 196636 

Sign in to add a comment