Closed Bug 906633 Opened 12 years ago Closed 12 years ago

Scratchpad does not set mimetype for open/save dialogs

Categories

(DevTools Graveyard :: Scratchpad, enhancement)

x86_64
Windows 8
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 27

People

(Reporter: eldmannen+mozilla, Assigned: bbenvie)

Details

Attachments

(1 file, 1 obsolete file)

User Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0 (Beta/Release) Build ID: 20130818030219 Steps to reproduce: Opened Scratchpad. (Shift-F4). Went to File->Open File..., or File->Save As... Actual results: File dialog showed all files. Expected results: File dialog should only show .js files, and files with application/javascript mimetype.
Component: Untriaged → Developer Tools: Scratchpad
Severity: normal → enhancement
Status: UNCONFIRMED → NEW
Ever confirmed: true
Version: 26 Branch → Trunk
Attached patch bug-906633.patch (obsolete) — Splinter Review
Adds filters for JavaScript Files/All Files to Save As and Open File dialogs.
Assignee: nobody → bbenvie
Status: NEW → ASSIGNED
Attachment #810752 - Flags: review?(rcampbell)
Not sure it makes sense to add non-JavaScript files. Here are file extensions for reference. Coco - .co CoffeeScript - .coffee Dart - .dart GorillaScript - .gs Ham - .ham Kaffeine - .k TypeScript - .ts
Mimetype of interest are; text/* application/*
It is conceivable someone may want to open JSON files (extension: .json, mimetype: application/json). For things such as minification/prettyprinting.
Comment on attachment 810752 [details] [diff] [review] bug-906633.patch Review of attachment 810752 [details] [diff] [review]: ----------------------------------------------------------------- alrighty.
Attachment #810752 - Flags: review?(rcampbell) → review+
Eldamannen, I think json might make sense but I don't think the rest do since you can't run them in the Scratchpad. The Scratchpad isn't really meant to be a general purpose code editor.
Attached patch bug-906633.patchSplinter Review
Attachment #810752 - Attachment is obsolete: true
Attachment #812197 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 27
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: