Closed
Bug 993710
Opened 11 years ago
Closed 11 years ago
Don't return names when enumerating Navigator/Window if they wouldn't be resolved
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla31
People
(Reporter: peterv, Assigned: peterv)
References
Details
Attachments
(1 file)
(deleted),
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Attachment #8403589 -
Flags: review?(bzbarsky)
Comment 1•11 years ago
|
||
Comment on attachment 8403589 [details] [diff] [review]
v1
>+nsWindowSH::NameStructEnabled(JSContext* aCx, nsGlobalWindow *aWin,
>+ const nsAString& aName,
>+ const nsGlobalNameStruct& aNameStruct)
Fix indent?
>+ if (NS_FAILED(rv) || !nameStruct) {
>+ return true;
return false?
>+ if (aNameStruct.mType == nsGlobalNameStruct::eTypeStaticNameSet) {
Er, that's dead code. I forgot to remove it when I removed the resolve bits that looked at that struct type... Followup ok to nix this and the bits in the namespace manager that handle it, or you could do it here.
>+ // "Components" is marked as enumerable but only resolved on demand :-/.
Can we file a followup on fixing that one way or another?
>+++ b/dom/webidl/Window.webidl
The change here looks unrelated, but ok.
r=me
Attachment #8403589 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 3•11 years ago
|
||
> Er, that's dead code. I forgot to remove it when I removed the resolve bits
> that looked at that struct type... Followup ok to nix this and the bits in
> the namespace manager that handle it, or you could do it here.
Why is that dead code? We have at least one of these in the tree.
Flags: needinfo?(bzbarsky)
Comment 4•11 years ago
|
||
Oh, I was thinking of dynamic-nameset.
The static one is the fake PrivilegeManager. We should find a better way to do that.
Flags: needinfo?(bzbarsky)
Assignee | ||
Comment 5•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/0ad53ad7c808
Still need to file the Components bug.
Comment 6•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•