Closed
Bug 822108
Opened 12 years ago
Closed 12 years ago
webapps-zip.js include too many things
Categories
(Firefox OS Graveyard :: Gaia, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: vingtetun, Assigned: vingtetun)
References
Details
Attachments
(1 file)
1.46 KB,
patch
|
ochameau
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•12 years ago
|
||
Assignee: nobody → 21
Attachment #692757 -
Flags: review?(poirot.alex)
Comment 2•12 years ago
|
||
Comment on attachment 692757 [details] [diff] [review]
Patch
Review of attachment 692757 [details] [diff] [review]:
-----------------------------------------------------------------
Please at least update EXTENSIONS_WHITELIST.
::: build/webapp-zip.js
@@ -151,4 @@
> // Put shared files, but copy only files actually used by the webapp.
> // We search for shared file usage by parsing webapp source code.
> let EXTENSIONS_WHITELIST = ['js', 'htm', 'html', 'css'];
> - let SHARED_USAGE = /shared\/([^\/]+)\/([^''\s]+)("|')/g;
Wouldn't it be safier to just update camera and emergency-call apps to avoid using '..' ? It feels like it works unintentionally.
@@ -170,3 @@
> return file.isFile() && EXTENSIONS_WHITELIST.indexOf(extension) != -1;
> }).
> forEach(function(file) {
Instead of doing this, you should update the EXTENSIONS_WHITELIST array.
Attachment #692757 -
Flags: review?(poirot.alex) → review+
Assignee | ||
Comment 3•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Device: Unagi
Build: 20130112070202
White list implemented .
Status: RESOLVED → VERIFIED
Updated•12 years ago
|
Whiteboard: [perf_tsk]
Updated•12 years ago
|
Whiteboard: [perf_tsk] → [FFOS_perf]
Updated•12 years ago
|
Whiteboard: [FFOS_perf]
You need to log in
before you can comment on or make changes to this bug.
Description
•