Closed Bug 152553 Opened 23 years ago Closed 23 years ago

"Show Anonymous Content" menu item doesn't reflect state

Categories

(Other Applications :: DOM Inspector, defect)

x86
Windows 2000
defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rajesh.jag, Assigned: caillon)

Details

Attachments

(1 file)

Build ID: 2002061104 In the DOM Inspector, clicking on View->Show Anonymous Content, does nothing. By default, it's on. So I can't seem to turn off the viewing of anonymous content.
I know this works because I was using this earlier today on a fresh build. Reporter, are you just not seeing anything become hidden? I suppose I should ask: do you know what anonymous content is? If you do, then try a build from like today (rather than last week) and see if that helps. If not, then please don't file bugs on a feature you don't understand. ;-)
Well, I'm currently using the build - 2002061808. (Win2k) And I guess I should have been more specific in mentioning that the check against the menu-item "Show Anonymous Content" in the "View" menu, refuses to go off, when I click on it. I'm still downloading today's build, and when I get that, I'll check with that again. I don't have any XML with anonymous content to test with, so I don't know what would happen then, but considering that the check in the menu doesn't go off, I'd think _something_ was wrong.
Build ID: 2002062408 I still see the same behaviour. The checkbox doesn't go off. If someone could direct me to the documentation about what is supposed to happen (I guess it would be too much to expect a Use Case? ;) ) when I click on the "Show Anonymous Content" menu-item, I might figure out what _I_ am doing wrong. But I must say I don't see what more I need to do than click on the menu-item to get the check to go away ... Note: I'm not saying anything about the content I see, and how that is affected. I'm only talking about the state of the menu.
the only problem is that the checkmark doesn't go away, if you inspect chrome you'll see red items in one state, and you won't in the other. I've tried fixing this, I couldn't figure out how to do it.
Severity: normal → trivial
Summary: "Show Anonymous Content" cannot be switched off → "Show Anonymous Content" menu item doesn't reflect state
well I don't know what it does, but the checkmark comes and goes just fine for me with 2002080508/trunk/win2k. reporter: can you still reproduce this bug with a recent build of mozilla? if so, please comment again with details. if not, please resolve this bug as WORKSFORME. thanks.
Ok. I'm using the latest build which I downloaded 10 minutes ago. Build ID: 2002080704 I open a random XML file on my machine. I click 'View', and "Show Anonymous Content" is checked. I click on it, and the popup menu collapses (as is should). There's nothing different in what I see on the screen, but then since I don't have any anonymous content in the XML anyway, I guess that is ok. I go back and click 'View', and "Show Anonymous Content" is still checked.
ahem. I must confess I didn't actually open a file - the checkmark works fine if you don't actually open anything :) inspecting chrome (I don't have any XML with anonymous content lying around), I see, as timeless said in comment 4, that the menu item does actually toggle some content on and off, but the checkmark doesn't change state. confirming.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached patch Patch to fixSplinter Review
Per the ECMA spec section 11.9.3 <http://www.mozilla.org/js/language/E262-3.pdf> false == null will yield false. true == null will yield false. since we are always checking for !=, we always return true and always end up with checkmarks.
me
Assignee: hewitt → caillon
Attachment #97436 - Flags: review+
Boris can I get an sr= for this silly 2 liner?
Comment on attachment 97436 [details] [diff] [review] Patch to fix sr=bzbarsky
Attachment #97436 - Flags: superreview+
Fixed
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Product: Core → Other Applications
QA Contact: timeless → dom-inspector
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: