Closed
Bug 1229293
Opened 9 years ago
Closed 9 years ago
Forbid HierarchicalStringList.__setattr__
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(firefox45 fixed)
RESOLVED
FIXED
mozilla45
Tracking | Status | |
---|---|---|
firefox45 | --- | fixed |
People
(Reporter: glandium, Assigned: glandium)
References
Details
Attachments
(1 file)
8.01 KB,
patch
|
gps
:
review+
|
Details | Diff | Splinter Review |
We have multiple cases of things like this in the tree:
RESOURCE_FILES.html = [
'folder.png',
]
This totally overrides all type checking, starting with enforcing order on the list (see intl/unicharutil/tables/moz.build for example)
Assignee | ||
Comment 1•9 years ago
|
||
Actually, it's not so much of a problem, what *is* a problem is the lack of order enforcement on the StrictOrderingOnAppendList that HierarchicalStringList contain, and the fact that it's possible to overwrite a FOO.foo.
Assignee | ||
Comment 2•9 years ago
|
||
The current implementation of HierarchicalStringList allows the following:
FOO.bar = [
'foo',
'bar',
]
while
FOO.bar += [
'foo',
'bar',
]
would be invalid because of the StrictOrderingOnAppendList enforcement.
It also allows to overwrite the entire list with a subsequent
FOO.bar = [
'baz',
]
while we've explicitly forbidden such things for every other list.
While in the vicinity, fix HierarchicalStringList._get_export_variable to not
call the HierarchicalStringList constructor uselessly.
Attachment #8694093 -
Flags: review?(gps)
Updated•9 years ago
|
Attachment #8694093 -
Flags: review?(gps) → review+
Comment 4•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox45:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•