Open Bug 978742 Opened 10 years ago Updated 2 months ago

Accel-click / Middle Click should always open source links in view source

Categories

(DevTools :: Console, defect, P3)

x86
macOS
defect

Tracking

(Not tracked)

People

(Reporter: rcampbell, Unassigned)

Details

(Whiteboard: [lang=js][status:backlog])

Attachments

(1 obsolete file)

Currently, middle clicking and cmd/alt clicking appear to do different things depending on file type.

Example:
1. Open yahoo.com
2. Middle click reference to yahoo.com in the console

Expected:

Page opens in View Source window.

Actual:

Page opens in new tab

Another example from the same page (I'm seeing ca.yahoo.com because of my location).

2. Cmd click ca.yahoo.com in console.

Expected:

View Source window opens with source

Actual:

We might get a view source window? Might open in debugger.

Another example:

2. middle click combo.js in source view

Expected:

View source

actual:

Combo.js opens as raw text in new tab.
Whiteboard: [mentor=msucan][lang=js]
alternately we could open JS files in Scratchpads.

We should:
1) hide the toolbar
2) make it read only

Should also file a Soft Wrap option for our source editor (though pretty printing will take care of this somewhat).
Prettyprinting doesn't preserve line numbers, unlike soft wrap, right?  Though if it did, that would be pretty awesome.

Also, prettyprinting seems to not work so hot when the JS is in an HTML file, when I just tried.
Priority: -- → P3
Mentor: mihai.sucan
Whiteboard: [mentor=msucan][lang=js] → [lang=js]
Whiteboard: [lang=js] → [lang=js][status:backlog]
Mentor: mihai.sucan
Product: Firefox → DevTools
Severity: normal → S3
Attachment #9381367 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: