Closed Bug 169825 Opened 22 years ago Closed 21 years ago

[FIX]DOM inspector does not show many attributes (GetAttributes broken in XUL)

Categories

(Core :: XUL, defect, P2)

defect

Tracking

()

VERIFIED FIXED
mozilla1.6alpha

People

(Reporter: aaronlev, Assigned: bzbarsky)

Details

Attachments

(2 files)

When using DOM inspector to look at navigator.xul, look at the <textbox> element
for the address bar. (You can search for id="urlbar").

For some reason, only about 3 attributes are showing up, when there are a lot more:

        <textbox id="urlbar" class="chromeclass-location" flex="1"
                 type="autocomplete" searchSessions="history" 
                 timeout="50" maxrows="6" alwaysopenpopup="true"
                 disablehistory="false" accesskey="d"
                 defaultSearchEngine="true" tabScrolling="true"
                 showCommentColumn="true"
                 inputtooltiptext="&locationBar.tooltip;"
                 oninput="window.XULBrowserWindow.userTyped.value=true;"
                 ontextcommand="return handleURLBarCommand(eventParam, domEvent);"
                 ontextrevert="return handleURLBarRevert();"
                 onfocus="URLBarFocusHandler(event);"
                 onmousedown="URLBarMouseDownHandler(event);"
                 onclick="URLBarClickHandler(event);">

It seems to be a big bug for Inspector.
I haven't looked into this or anything, but I bet money that 
nsXULElement::GetAttributes is what's buggy.
Mass re-assigning bugs to dom.inspector@extensions.bugs
Assignee: hewitt → dom.inspector
Attached patch PatchSplinter Review
Short story:  Attributes() is non-null if we have some attrs set to local
values that differ from the prototype.	But it only contains the attrs that are
set locally.  so if we want to use it as the return value of GetAttributes(),
we need to call MakeHeavyweight unconditionally.
Attachment #132063 - Flags: superreview?(peterv)
Attachment #132063 - Flags: review?(bugmail)
Taking.
Assignee: dom.inspector → bzbarsky
Priority: -- → P2
Summary: DOM inspector does not show many attributes → [FIX]DOM inspector does not show many attributes (GetAttributes broken in XUL)
Target Milestone: --- → mozilla1.6alpha
Attachment #132063 - Flags: superreview?(peterv) → superreview+
hmm.. please add a comment in the code why you do this btw, or just refer to
this bug
Fixed, with comment added.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Verify Fixed: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7a)
Gecko/20040125
Steps: Comment 0
Status: RESOLVED → VERIFIED
Component: DOM Inspector → XP Toolkit/Widgets: XUL
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: timeless → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: