Closed
Bug 236844
Opened 21 years ago
Closed 19 years ago
[beos] search for helper apps in mozilla directory before $PATH
Categories
(Core Graveyard :: File Handling, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: Biesinger, Assigned: Niels.Reedijk)
References
Details
(Keywords: fixed1.8)
Attachments
(1 file)
3.01 KB,
patch
|
sergei_d
:
review+
asa
:
approval1.8b5+
|
Details | Diff | Splinter Review |
Beos version of bug 229636
the new expectation for GetFileTokenFromPath is that it searches in the mozilla
directory, too.
Assignee | ||
Comment 1•19 years ago
|
||
I think this will solve all the issues.
The old behaviour was: enter the path in BPath and it would take absolute and
relative paths, on the latter translate this one into a absolute path, and
check whether or not the file exists. This means that our implementation
already did what bug 229636 tried to do.
The behaviour of the new GetFileTokenforPath implementation is as follows:
a) check if it is an absolute path. By feeding the path into NS_NewLocalFile
you automatically rule out relative paths, because the internals of that
function only recognise paths starting with '~/' and with '/'.
b) check if the file exists in the mozilla directory. The entered path is
appended to the path of the mozilla directory. Then it is ran through
NS_NewLocalFile (which succeeds) and then is checked by NSIFile::Exists(). The
BeOS implementation runs this through BPath so we in fact get the
implementation found in our old implementation.
One note remains: the initial comment mentions something about PATH, but since
the old implementation never looks at PATH, the new one doesn't have to do that
either.
So, we can remove our implementation and rely on the provided one, which (a bit
less efficient) does the same. In order to reduce code complexity, I vote this
sollution :-).
P.S. Any way to test this?
Assignee: file-handling → Niels.Reedijk
Status: NEW → ASSIGNED
Comment 3•19 years ago
|
||
I've installed the patch but don't know a test methodology. Would it be
relevant to install the general coffee flash player with plugin in the firefox
plugin directory?
Assignee | ||
Comment 4•19 years ago
|
||
Comment on attachment 196633 [details] [diff] [review]
Remove our implementation and rely on the base implementation
As it doesn't seem to affect anything running with it succesfully and no
problem opening things), can this bug be committed?
Attachment #196633 -
Flags: review?(sergei_d)
Comment 5•19 years ago
|
||
I probably will test this patch in next two days.
Actually i had look in that part of code, but that was long ago. So ath the
moment i remember nothing:(
How did you test it?
With plugins?
With Reveal from download manager?
With autoopening for example *.rtf with Gobe and *.pdf with BePDF when clicking
on links?
Assignee | ||
Comment 6•19 years ago
|
||
(In reply to comment #5)
> I probably will test this patch in next two days.
> Actually i had look in that part of code, but that was long ago. So ath the
> moment i remember nothing:(
It's not at all that intimidating (at least, this part of the changes), so
you'll get the hang of it pretty fast.
> How did you test it?
Okay, I'm currently checking where exactly the function is called. Okay,
http://lxr.mozilla.org/mozilla/ident?i=GetFileTokenForPath . So it seems that it
is called all over the place, meaning that if it didn't work, breakage would be
all over the place. But it does need some testing, naturally.
> With plugins?
Unfortunately, I have none. Anything you could point me to?
> With Reveal from download manager?
Just tried it: it works flawlessly. Reveal, open and the moz_icon patch all work
like expected: they show/open the file.
> With autoopening for example *.rtf with Gobe and *.pdf with BePDF when clicking
> on links?
Well, it doesn't auto-open, but I'm not sure it did before this patch. It does
start the open dialog and BePDF as default.
So at the moment nothing seems broken yet.
Updated•19 years ago
|
Attachment #196633 -
Flags: review?(sergei_d) → review+
Assignee | ||
Comment 7•19 years ago
|
||
2005-09-26 21:51 timeless%mozdev.org mozilla/ uriloader/ exthandler/ beos/
nsOSHelperAppService.cpp 1.14 0/28 Bug 236844 [beos] search for helper apps
in mozilla directory before $PATH patch by Niels.Reedijk@gmail.com r=sergei_d
Committed in HEAD
Assignee | ||
Comment 8•19 years ago
|
||
Comment on attachment 196633 [details] [diff] [review]
Remove our implementation and rely on the base implementation
Approval requested. This is a BeOS only change (in a BeOS-only location), and
it will therefore not affect any other build, so it is a safe patch. Tested and
verified here.
Attachment #196633 -
Flags: approval1.8b5?
Updated•19 years ago
|
Attachment #196633 -
Flags: approval1.8b5? → approval1.8b5+
Assignee | ||
Updated•19 years ago
|
Updated•9 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•