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)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 27
People
(Reporter: eldmannen+mozilla, Assigned: bbenvie)
Details
Attachments
(1 file, 1 obsolete file)
1.53 KB,
patch
|
bbenvie
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Updated•12 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Version: 26 Branch → Trunk
Assignee | ||
Comment 1•12 years ago
|
||
Adds filters for JavaScript Files/All Files to Save As and Open File dialogs.
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
It is conceivable someone may want to open JSON files (extension: .json, mimetype: application/json).
For things such as minification/prettyprinting.
Comment 5•12 years ago
|
||
Comment on attachment 810752 [details] [diff] [review]
bug-906633.patch
Review of attachment 810752 [details] [diff] [review]:
-----------------------------------------------------------------
alrighty.
Attachment #810752 -
Flags: review?(rcampbell) → review+
Assignee | ||
Comment 6•12 years ago
|
||
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.
Assignee | ||
Comment 7•12 years ago
|
||
Adds *.json. https://tbpl.mozilla.org/?tree=Try&rev=9dee770f9c8b
Attachment #810752 -
Attachment is obsolete: true
Attachment #812197 -
Flags: review+
Assignee | ||
Comment 8•12 years ago
|
||
Retry since tree was broken. https://tbpl.mozilla.org/?tree=Try&rev=bf2ece7866f1
Assignee | ||
Comment 9•12 years ago
|
||
Different trychoose syntax. https://tbpl.mozilla.org/?tree=Try&rev=01bd712a3e8b
Assignee | ||
Comment 10•12 years ago
|
||
Whiteboard: [fixed-in-fx-team]
Comment 11•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 27
Updated•7 years ago
|
Product: Firefox → DevTools
Updated•6 years ago
|
Product: DevTools → DevTools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•