Closed
Bug 958585
Opened 11 years ago
Closed 11 years ago
Packaged apps do not work with symlinks
Categories
(DevTools Graveyard :: WebIDE, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 31
People
(Reporter: kgrandon, Assigned: lancelot)
Details
(Whiteboard: [good first bug][lang=js][mentor=jryans])
Attachments
(1 file, 1 obsolete file)
977 bytes,
patch
|
jryans
:
review+
|
Details | Diff | Splinter Review |
I have a web application which I publish to many different web devices. Because of this I symlink my content folder, then have a launch_path which points inside of that folder. Unfortunately it seems that symlinks are not supported with the simulator.
Comment 1•11 years ago
|
||
(In reply to Kevin Grandon :kgrandon from comment #0)
> I have a web application which I publish to many different web devices.
> Because of this I symlink my content folder, then have a launch_path which
> points inside of that folder. Unfortunately it seems that symlinks are not
> supported with the simulator.
It works with a device but not with the simulator?
Reporter | ||
Comment 2•11 years ago
|
||
(In reply to Paul Rouget [:paul] from comment #1)
> It works with a device but not with the simulator?
Symlinks do work with the gaia Makefile. I have not tried creating a symlink through adb, though I imagine it would/should work?
Updated•11 years ago
|
Component: Developer Tools: App Manager → Simulator
Product: Firefox → Firefox OS
Comment 3•11 years ago
|
||
Paul
I assume we have the same issue when linking js files using the script tag in a packaged app. If the link points to a symlink the jsfile will not load when debugging in the simulator.
We noticed over IRC that we currently ignore symlinks when zipping them up for installation.
If we update the app-actor-front[1] to handle symlinks by copying, I think it should resolve this.
[1]: https://mxr.mozilla.org/mozilla-central/source/toolkit/devtools/apps/app-actor-front.js#20
Whiteboard: [good first bug][lang=js][mentor=jryans]
Assignee | ||
Comment 5•11 years ago
|
||
Hi
I would like to work on this bug with some guidance.
Component: Simulator → Developer Tools: App Manager
Product: Firefox OS → Firefox
Summary: [simulator] does not work with symlinks → Packaged apps do not work with symlinks
Lancelot, that sounds great! I've assigned the bug to you.
Check out our hacking guide[1] to get started with our code base.
Also, take a look at the Mercurial FAQ[2] for tips on formatting patches, etc.
For this bug, you'll want to test a packaged app in the App Manager where your local directory contains a symlink to some files somewhere else. Currently, the symlink is ignored when we install the app, so the app does not work correctly.
Most likely this can be fixed by updating the code I linked to in comment 4.
[1]: https://wiki.mozilla.org/DevTools/Hacking
[2]: https://developer.mozilla.org/en-US/docs/Mercurial_FAQ#How_can_I_generate_a_patch_for_somebody_else_to_check-in_for_me.3F
Assignee: nobody → lancelot
Status: NEW → ASSIGNED
Assignee | ||
Comment 7•11 years ago
|
||
Thanks Ryan, I will checkout the code on comment 4 and revert if I have any questions.
Assignee | ||
Comment 8•11 years ago
|
||
Rynan. I'm failing to open the add attachment page. Been trying since yesterday. Is this a permission issue, as I can open the attach page for bug 970047
Hmm, I have never heard of such an issue before... Do you get some kind of error message?
Assignee | ||
Comment 10•11 years ago
|
||
No errors, is appears to be connecting perpetually. Can I paste the patch as a comment?
Hmm, we really need to have it as an attachment. I'd suggest talking to someone in the #bmo IRC room about this issue.
Assignee | ||
Comment 12•11 years ago
|
||
Attachment #8393995 -
Flags: feedback?(jryans)
Comment on attachment 8393995 [details] [diff] [review]
Updated the app-actor-front to handle symlinks by copying
Review of attachment 8393995 [details] [diff] [review]:
-----------------------------------------------------------------
Have you tried this out on your own app that uses symlinks?
Attachment #8393995 -
Flags: feedback?(jryans)
Assignee | ||
Comment 14•11 years ago
|
||
Yes, I symlinked a folder with images. Before I made the change the images will not appear in the app and after that change they were displayed properly.
Attachment #8393995 -
Flags: feedback?(jryans)
Comment on attachment 8393995 [details] [diff] [review]
Updated the app-actor-front to handle symlinks by copying
Review of attachment 8393995 [details] [diff] [review]:
-----------------------------------------------------------------
Huh, so it does! Sorry for doubting, I just expected more changes to be needed! :)
Update your patch, and then I'll submit it to try to be sure we aren't breaking any tests.
::: toolkit/devtools/apps/app-actor-front.js
@@ +23,5 @@
> while (files.hasMoreElements()) {
> let file = files.getNext().QueryInterface(Ci.nsIFile);
>
> if (file.isHidden() ||
> + //file.isSymlink() || /*Bug 958585 Add support for symlinks
Actually remove this line...
Attachment #8393995 -
Flags: feedback?(jryans) → feedback+
Assignee | ||
Comment 16•11 years ago
|
||
Attachment #8393995 -
Attachment is obsolete: true
Attachment #8395192 -
Flags: feedback?(jryans)
Comment on attachment 8395192 [details] [diff] [review]
Updated the app-actor-front to handle symlinks by copying
Great, thanks!
I've submitted a try run: https://tbpl.mozilla.org/?tree=Try&rev=f81f743f333a
If it goes well, we can check this in.
Attachment #8395192 -
Flags: feedback?(jryans) → review+
Looks okay to me, we'll have a sheriff land it for us. Thanks again!
Keywords: checkin-needed
Comment 19•11 years ago
|
||
Keywords: checkin-needed
Comment 20•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 31
Updated•7 years ago
|
Product: Firefox → DevTools
Updated•5 years ago
|
Product: DevTools → DevTools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•