Closed
Bug 941565
Opened 12 years ago
Closed 12 years ago
OS.Constants.Path.libxul is incorrect on Android
Categories
(Toolkit Graveyard :: OS.File, defect)
Toolkit Graveyard
OS.File
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla28
People
(Reporter: Yoric, Assigned: Yoric)
References
Details
(Keywords: addon-compat, dev-doc-needed)
Attachments
(1 file, 3 obsolete files)
|
3.43 KB,
patch
|
Yoric
:
review+
|
Details | Diff | Splinter Review |
OS.Constants.Path.libxul attempts to provide the full path to libxul. We generally don't need this full path, and on Android, getting the full path is a rather complex matter, as it depends on the location of the apk.
We should just provide the library name ("libxul.so", "xul.dll" or "XUL" depending on the platform).
Marking add-on compat in the unlikely case that some add-ons actually use that path information.
| Assignee | ||
Comment 1•12 years ago
|
||
Assignee: nobody → dteller
| Assignee | ||
Comment 2•12 years ago
|
||
Attachment #8335974 -
Attachment is obsolete: true
Attachment #8336081 -
Flags: review?(mh+mozilla)
Comment 3•12 years ago
|
||
Comment on attachment 8336081 [details] [diff] [review]
Fixing OS.Constants.Path.libxul, v2
Review of attachment 8336081 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/system/OSFileConstants.cpp
@@ +814,3 @@
> xulPath.Append(NS_LITERAL_STRING(DLL_PREFIX));
> xulPath.Append(NS_LITERAL_STRING("xul"));
> xulPath.Append(NS_LITERAL_STRING(DLL_SUFFIX));
while you're here, you could make that NS_LITERAL_STRING(DLL_PREFIX "xul" DLL_SUFFIX)
Attachment #8336081 -
Flags: review?(mh+mozilla) → review+
| Assignee | ||
Comment 4•12 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #3)
> while you're here, you could make that NS_LITERAL_STRING(DLL_PREFIX "xul"
> DLL_SUFFIX)
Actually, that doesn't work with VC++.
| Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 5•12 years ago
|
||
(In reply to David Rajchenbach Teller [:Yoric] <needinfo? me> from comment #4)
> (In reply to Mike Hommey [:glandium] from comment #3)
> > while you're here, you could make that NS_LITERAL_STRING(DLL_PREFIX "xul"
> > DLL_SUFFIX)
>
> Actually, that doesn't work with VC++.
O_o what does it say?
| Assignee | ||
Comment 6•12 years ago
|
||
I don't remember, but here's an extract from https://developer.mozilla.org/en-US/docs/Mozilla_internal_string_guide: « Because some platforms do runtime conversion, the use of literal string concatenation inside a NS_LITERAL_STRING/NS_NAMED_LITERAL_STRING macro will compile on these platforms, but not on platforms which support compile-time conversion. »
Comment 7•12 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/b0a4653325cc
Is this something we could have tests for?
| Assignee | ||
Comment 8•12 years ago
|
||
We already have tests for all platforms except Android.
I should be able to cook one for Android. However, the real test will be bug 854169.
| Assignee | ||
Comment 9•12 years ago
|
||
Trivial test. Self-reviewing, given the triviality.
Attachment #8336818 -
Flags: review+
Comment 10•12 years ago
|
||
Backed out for bustage on multiple platforms.
https://hg.mozilla.org/integration/fx-team/rev/299d06e4e8fc
https://tbpl.mozilla.org/php/getParsedLog.php?id=30961089&tree=Fx-Team
https://tbpl.mozilla.org/php/getParsedLog.php?id=30960686&tree=Fx-Team
https://tbpl.mozilla.org/php/getParsedLog.php?id=30961182&tree=Fx-Team
I guess you can just roll the test in with the next version of the patch :)
| Assignee | ||
Comment 11•12 years ago
|
||
Fixed typo.
Try: https://tbpl.mozilla.org/?tree=Try&rev=1e06dd3f2062
Attachment #8336081 -
Attachment is obsolete: true
Attachment #8336818 -
Attachment is obsolete: true
Attachment #8337033 -
Flags: review+
| Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 12•12 years ago
|
||
Flags: in-testsuite? → in-testsuite+
Keywords: checkin-needed
Comment 13•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → mozilla28
Updated•2 years ago
|
Product: Toolkit → Toolkit Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•