Closed
Bug 637413
Opened 14 years ago
Closed 14 years ago
Use blank blocklist xml with addon manager tests
Categories
(Toolkit :: Add-ons Manager, defect)
Toolkit
Add-ons Manager
Tracking
()
VERIFIED
FIXED
mozilla2.0
Tracking | Status | |
---|---|---|
blocking2.0 | --- | final+ |
People
(Reporter: joe, Assigned: joe)
References
Details
(Whiteboard: [hardblocker])
Attachments
(1 file, 1 obsolete file)
10.93 KB,
patch
|
mossop
:
review+
|
Details | Diff | Splinter Review |
Bug 637008 was caused by us adding a <gfxItems> tag to the xml we ship with Firefox. Dave says in bug 637008 comment 11:
"In order to tell what add-ons have been newly blocked we load the old list
first to compare it to the new. This has the side effect of notifying about the
GFX entries.
You could fix this by creating an empty blocklist.xml file in the profile
directory before starting the load."
I'm going to do exactly that.
Assignee | ||
Updated•14 years ago
|
Comment 1•14 years ago
|
||
Note that I fixed another test in exactly this way in bug 614868
Assignee | ||
Comment 2•14 years ago
|
||
Well, that's pretty awesome! I don't even have to write the code.
This is currently going through try with an updated blocklist xml file to ensure it fixes this bug.
Attachment #515770 -
Flags: review?(dtownsend)
Assignee | ||
Updated•14 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
Version: 1.9.2 Branch → Trunk
Assignee | ||
Comment 3•14 years ago
|
||
Blocks a hardblocker => blocks.
blocking2.0: --- → final+
Whiteboard: [hardblocker][has patch]
Comment 4•14 years ago
|
||
Comment on attachment 515770 [details] [diff] [review]
move the creation of an empty blocklist file to head_addons.js
Assuming it passes tests this is fine.
Attachment #515770 -
Flags: review?(dtownsend) → review+
Comment 5•14 years ago
|
||
OK. This might be what we need to get to release, but it would seem to me that a test having to do with addon blocklisting shoud be completely ignoring blocklist entries it does not understand (like gfx ones or whatever else we make up later on) or this is just going to come back to bite us later on.
I really think the test should be fixed at some point so that this issue does not recur later.
Making everyone else who wants to add a new blocklist have to workaround the way this test works just seems wrong to me.
Comment 6•14 years ago
|
||
(In reply to comment #5)
> OK. This might be what we need to get to release, but it would seem to me that
> a test having to do with addon blocklisting shoud be completely ignoring
> blocklist entries it does not understand (like gfx ones or whatever else we
> make up later on) or this is just going to come back to bite us later on.
>
> I really think the test should be fixed at some point so that this issue does
> not recur later.
>
> Making everyone else who wants to add a new blocklist have to workaround the
> way this test works just seems wrong to me.
Not sure what you're saying here. The patch makes it so all tests in the add-ons manager directory ignore the shipped blocklist so this issue won't occur again in those cases. What more would you want?
Comment 7•14 years ago
|
||
OK. Sorry, I did not follow completely. I thought this was a fix just for the GFX blocklist. if it works for that and all future added blocklists, then that is exactly what I thought was required. Guess I should have made sure I knew what I was taking about before commenting.
Assignee | ||
Comment 8•14 years ago
|
||
Insanely, nsIFile.copyFile throws an error if the file exists already. So, in every test that needs to overwrite blocklist.xml in the profile directory, we have to delete that file if it already exists.
This revised patch is making its way through try.
Attachment #515770 -
Attachment is obsolete: true
Attachment #515835 -
Flags: review?(dtownsend)
Assignee | ||
Comment 9•14 years ago
|
||
This patch passed try!
Whiteboard: [hardblocker][has patch] → [hardblocker][has patch][needs review mossop]
Updated•14 years ago
|
Attachment #515835 -
Flags: review?(dtownsend) → review+
Assignee | ||
Comment 10•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: [hardblocker][has patch][needs review mossop] → [hardblocker]
Comment 11•14 years ago
|
||
Marking as verified fixed based on no test failures.
Status: RESOLVED → VERIFIED
Flags: in-testsuite+
Flags: in-litmus-
Target Milestone: --- → mozilla2.0
You need to log in
before you can comment on or make changes to this bug.
Description
•