Closed
Bug 841711
Opened 12 years ago
Closed 12 years ago
httpd.js extension in DEBUG=1 profiles is broken in current nightly
Categories
(Firefox OS Graveyard :: Gaia, defect)
Tracking
(b2g18 fixed, b2g18-v1.0.1 fixed)
RESOLVED
FIXED
People
(Reporter: julienw, Assigned: julienw)
Details
Attachments
(1 file, 4 obsolete files)
|
12.60 KB,
patch
|
julienw
:
review+
lsblakk
:
approval-gaia-v1+
|
Details | Diff | Splinter Review |
Since about this week, we can't run our Gaia unit tests in current nightly anymore.
STR:
* rm -rf profile
* DEBUG=1 make profile
* <nightly path>/firefox --no-remote -profile ./profile
* open the Error Console
In Error Console I get the following messages :
Warning: WARN addons.xpi: Exception running bootstrap method startup on httpd@gaiamobile.org: [Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIXPCComponents_Utils.import]" nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame :: resource://gre/modules/XPIProvider.jsm -> file:///home/julien/travail/git/gaia/profile/extensions/httpd/bootstrap.js :: startup :: line 13" data: no]
Source File: resource://gre/modules/XPIProvider.jsm -> file:///home/julien/travail/git/gaia/profile/extensions/httpd/bootstrap.js
Line: 13
Error: Error: No data in the file
Source File: resource://gre/modules/XPIProvider.jsm -> file:///usr/share/mozilla/extensions/%7Bec8030f7-c20a-464f-9b0e-13a3a9e97384%7D/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D/bootstrap.js -> file:///usr/share/mozilla/extensions/%7Bec8030f7-c20a-464f-9b0e-13a3a9e97384%7D/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D/lib/filterStorage.js
Line: 375
Error: Error: No data in the file
Source File: resource://gre/modules/XPIProvider.jsm -> file:///usr/share/mozilla/extensions/%7Bec8030f7-c20a-464f-9b0e-13a3a9e97384%7D/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D/bootstrap.js -> file:///usr/share/mozilla/extensions/%7Bec8030f7-c20a-464f-9b0e-13a3a9e97384%7D/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D/lib/filterStorage.js
Line: 375
Error: Error: No data in the file
Source File: resource://gre/modules/XPIProvider.jsm -> file:///usr/share/mozilla/extensions/%7Bec8030f7-c20a-464f-9b0e-13a3a9e97384%7D/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D/bootstrap.js -> file:///usr/share/mozilla/extensions/%7Bec8030f7-c20a-464f-9b0e-13a3a9e97384%7D/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D/lib/filterStorage.js
Line: 375
Warning: function withDir does not always return a value
Source File: resource://gre/modules/osfile/osfile_async_worker.js
Line: 175
Source Code:
return f.call(file);
Warning: reference to undefined property options.bytes
Source File: resource://gre/modules/osfile/osfile_shared_front.jsm
Line: 85
Error: this.docShell is null
Source File: chrome://global/content/bindings/browser.xml
Line: 323
Not sure everything is related to this problem though.
Updated•12 years ago
|
Assignee: nobody → 21
| Assignee | ||
Comment 2•12 years ago
|
||
Comment on attachment 715196 [details] [diff] [review]
patch
This makes the unit tests work in current nightly but I get strange problems in Aurora:
* the test output is sometimes disturbed (missing new lines for example
* the test-agent crashes at the end
I didn't try on b2g-desktop but I believe there will be the same problem and we need to be able to run the tests on this.
I wonder if this is possible to keep both imports ?
Attachment #715196 -
Flags: review?(felash) → feedback+
| Assignee | ||
Comment 3•12 years ago
|
||
Maybe this is possible to do better than this try/catch but this works for me in both a current Nightly and Aurora
Attachment #715433 -
Flags: review?(fabrice)
Comment 4•12 years ago
|
||
Comment on attachment 715433 [details] [diff] [review]
quick&dirty patch
Review of attachment 715433 [details] [diff] [review]:
-----------------------------------------------------------------
::: tools/extensions/httpd/bootstrap.js
@@ +18,1 @@
>
I would rather do:
try {
Cu.import('resource:///modules/devtools/dbg-client.jsm');
} catch(e) {
Cu.import('resource://gre/modules/devtools/dbg-client.jsm');
}
Attachment #715433 -
Flags: review?(fabrice)
| Assignee | ||
Comment 5•12 years ago
|
||
Load dbg-client.jsm from the correct URI in new Firefox
---
tools/extensions/httpd/bootstrap.js | 6 ++++++
1 file changed, 6 insertions(+)
Assignee: fabrice → felash
Attachment #715196 -
Attachment is obsolete: true
Attachment #715433 -
Attachment is obsolete: true
Attachment #715991 -
Flags: review?(fabrice)
Comment 6•12 years ago
|
||
Comment on attachment 715991 [details] [diff] [review]
patch v3
Review of attachment 715991 [details] [diff] [review]:
-----------------------------------------------------------------
Since we are changing stuff in httpd.js, can you bump the maxVersion in install.rdf to 22 instead of 21? thanks!
::: tools/extensions/httpd/bootstrap.js
@@ +10,5 @@
> const Cu = Components.utils;
>
> Cu.import('resource://gre/modules/Services.jsm');
> + try {
> + // FF < 21
Nit: It's actually Gecko, not FF
| Assignee | ||
Comment 7•12 years ago
|
||
* Load dbg-client.jsm from the correct URI in new Firefox
* bumped up the version
---
tools/extensions/httpd/bootstrap.js | 6 ++++++
tools/extensions/httpd/install.rdf | 6 +++---
2 files changed, 9 insertions(+), 3 deletions(-)
(note: I have also automatic space changes in my tree, I removed them from the patch. Do you think it is ok to commit them or should I remove them before pushing ?)
Attachment #715991 -
Attachment is obsolete: true
Attachment #715991 -
Flags: review?(fabrice)
Attachment #716435 -
Flags: review?(fabrice)
Comment 8•12 years ago
|
||
Comment on attachment 716435 [details] [diff] [review]
patch v4
Review of attachment 716435 [details] [diff] [review]:
-----------------------------------------------------------------
r=me with nit addressed. About the whitespace changes, I they are on fully blank lines I don't care. For others, I kind of dislike that this changes the blame.
::: tools/extensions/httpd/install.rdf
@@ +5,5 @@
>
> <Description about="urn:mozilla:install-manifest">
> <em:id>httpd@gaiamobile.org</em:id>
> <em:name>httpd.js</em:name>
> + <em:version>0.2</em:version>
Revert that change, since there's no real feature change in the add-on.
Attachment #716435 -
Flags: review?(fabrice) → review+
| Assignee | ||
Comment 9•12 years ago
|
||
carrying r=fabrice
asking for approval as I'd like to have this in v1-train and it can't be safer.
master: https://github.com/mozilla-b2g/gaia/commit/58b660c1212461f5d310a9800e16c1bcf097031b
Attachment #716435 -
Attachment is obsolete: true
Attachment #716715 -
Flags: review+
Attachment #716715 -
Flags: approval-gaia-v1?(21)
| Assignee | ||
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 10•12 years ago
|
||
Comment on attachment 716715 [details] [diff] [review]
patch v5
approving low risk uplift to v1-train.
Attachment #716715 -
Flags: approval-gaia-v1?(21) → approval-gaia-v1+
| Assignee | ||
Comment 11•12 years ago
|
||
I think this broke it for running tests in Aurora and earlier Firefoxes (whereas my patch v4 worked correctly because I specifically tested it). Filed Bug 844855.
| Assignee | ||
Comment 12•12 years ago
|
||
So, not Aurora which is Gecko 21 now, but Gecko <= 20, so probably the b2g18 branch.
| Assignee | ||
Comment 14•12 years ago
|
||
Forget my comments 11 and 12, I was misleaded. See more information in Bug 844855.
Comment 15•12 years ago
|
||
Any chance of getting this patch landed on v1.0.1 for the benefit/efficiency of people who working on that branch?
| Assignee | ||
Comment 16•12 years ago
|
||
Just did it :
v1.0.1: 2a514d7f1d3f34512b9df8b538922f52f4f09832
status-b2g18-v1.0.1:
--- → fixed
Comment 17•12 years ago
|
||
Fantastic; thanks for the quick turnaround!
You need to log in
before you can comment on or make changes to this bug.
Description
•