Closed Bug 822108 Opened 12 years ago Closed 12 years ago

webapps-zip.js include too many things

Categories

(Firefox OS Graveyard :: Gaia, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: vingtetun, Assigned: vingtetun)

References

Details

Attachments

(1 file)

Attached patch PatchSplinter Review
Assignee: nobody → 21
Attachment #692757 - Flags: review?(poirot.alex)
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+
Device: Unagi Build: 20130112070202 White list implemented .
Status: RESOLVED → VERIFIED
Whiteboard: [perf_tsk]
Whiteboard: [perf_tsk] → [FFOS_perf]
Whiteboard: [FFOS_perf]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: