Closed
Bug 26402
Opened 25 years ago
Closed 24 years ago
event handlers not compiled via element.setAttribute()
Categories
(Core :: DOM: Navigation, defect, P1)
Core
DOM: Navigation
Tracking
()
VERIFIED
FIXED
M15
People
(Reporter: kinmoz, Assigned: waterson)
References
Details
(Keywords: regression)
Attachments
(2 files)
5.47 KB,
patch
|
Details | Diff | Splinter Review | |
3.67 KB,
patch
|
Details | Diff | Splinter Review |
In my 02/03/2000 WinNt debug build. Selecting a previously viewed page under the Browser's Go menu does nothing. It should take me to that page.
Cc don@netscape.com since I'm not sure if radha is on sabbatical or not.
Comment 2•25 years ago
|
||
yup. this is XP. note 'Back' and 'Forward' under 'Go' work fine, it's actually picking a site that is doing nothing. No console messages, nothing. This is also definitely a regression as it does not occur in hte 2000020108 WinNt builds. thanx kin.
OS: other → All
Hardware: PC → All
Updated•25 years ago
|
Keywords: regression
Summary: [REGRESSION] Browser's Go menu is broken → Browser's Go menu is broken
Well, this ought to be simple to fix ...
Assignee: radha → law
Priority: P3 → P1
Target Milestone: M14
This might be a webshell/new-session-history thing. Could be nasty. I'll try to have a look ASAP to find out more.
Whiteboard: [PDT+] → [PDT+] Feb15
The menu items seem to be created correctly. It seems their oncommand handlers are not getting fired. I've heard reports that a similar bug has already been reported; I've pinged Chris Waterson to try to track that one down. Will update as soon as I hear anything.
Comment 10•25 years ago
|
||
Dave Hyatt suggested a workaround. I've tweaked nsBrowserInstance.cpp so that it now sets the oncommand handler attribute on the menu items *after* the element has been added to the document. This bypasses a known problem relating to the timing of the compilation of such handlers. I am reassigning this to Chris Waterson (it may be a dup of a bug he already has). I've removed "beta1" from the keywords and would ask that the [PDT+] status now be removed. The Go menu items now work so the root cause does not have to be fixed right now.
Comment 11•25 years ago
|
||
Removing PDT+. Waterson wont be in until monday to look at this.
Whiteboard: [PDT+]
Assignee | ||
Comment 12•25 years ago
|
||
*** This bug has been marked as a duplicate of 27050 ***
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Comment 13•25 years ago
|
||
My bad. This is -not- a dup.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Assignee | ||
Comment 14•25 years ago
|
||
Taking bug. See also bug 27050 and news://news.mozilla.org/38A0E3AD.EB7882DD%40mozilla.org, where I incorrectly posted a bunch of junk. I need to talk with vidur/joki to get a clear understanding of how the DOM working group expects properties and attributes to interact in the case of event handlers. Also, rename bug to be what it really means.
Status: REOPENED → ASSIGNED
Summary: Browser's Go menu is broken → event handlers not compiled via element.setAttribute()
Assignee | ||
Comment 16•25 years ago
|
||
Assignee | ||
Comment 17•25 years ago
|
||
*** Bug 30503 has been marked as a duplicate of this bug. ***
Comment 18•25 years ago
|
||
*** Bug 28238 has been marked as a duplicate of this bug. ***
Comment 19•24 years ago
|
||
Let's get this bad boy checked in. Have you made sure inline style works as well?
Comment 20•24 years ago
|
||
What's holding this bug up? waterson? waterson? :)
Assignee | ||
Updated•24 years ago
|
Target Milestone: M14 → M15
Assignee | ||
Comment 21•24 years ago
|
||
bonk. fix checked in. r=hyatt
Status: ASSIGNED → RESOLVED
Closed: 25 years ago → 24 years ago
Resolution: --- → FIXED
Comment 22•24 years ago
|
||
inline styles don't work :(
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 23•24 years ago
|
||
Neither do the event handlers. Looking at the code, I couldn't find evidence that this bug had been fixed (maybe I'm blind). I didn't see a walk in SetDocument.
Assignee | ||
Comment 24•24 years ago
|
||
Look in AddSubtreeToDocument(). It's firing allright, because it helped keep the tree closed yesterday :-).
Comment 25•24 years ago
|
||
Is AddSubtreeToDocument not called from SetDocument? THat would explain why this didn't fix XBL, since anonymous content isn't ever placed in using DOM calls (there's only a back pointer to the parent from the child anonymous content).
Assignee | ||
Comment 26•24 years ago
|
||
No, it's not. It's only called when a "noisy" append/insert happens. Can you not do that? I'd be a bit nervous about adding the call on SetDocument() because it gets fired on a lot of different paths, but maybe that's the right place to do it... I'll tinker with it.
Assignee | ||
Comment 27•24 years ago
|
||
Ok, I remember why we can't do it on nsXULElement::SetDocument(). We want to force HTML elements to update themselves as well. I guess we could just punt on HTML elements for now and make this be vidur & jst's problem. XUL would work.
Assignee | ||
Comment 28•24 years ago
|
||
Comment 29•24 years ago
|
||
Let's fix it in XUL and then reassign the bug to jst, who can presumably make a fix in HTML at his leisure.
Assignee | ||
Comment 30•24 years ago
|
||
I've checked in the second attempt. Johnny, you can take this bug if you want, or open a new one for HTML elements.
Status: REOPENED → RESOLVED
Closed: 24 years ago → 24 years ago
Resolution: --- → FIXED
Comment 31•24 years ago
|
||
Verified 2000-07-13-08-M17 : Linux 2000-07-13-09-M17 : WinNT & Win98 2000-07-13-08-M17 : Mac
Status: RESOLVED → VERIFIED
Comment 32•23 years ago
|
||
What are the odds that this is still broken for key events? oncommand's set manually for tree and outliner columnpickers don't fire upon pressing enter, but they do when clicked. (See http://lxr.mozilla.org/seamonkey/source/xpfe/global/resources/content/bindings/o utliner.xml#577) That seems unlikely, though, so this is probably a separate bug.
Component: History: Session → Document Navigation
QA Contact: jcarpenter0524 → docshell
You need to log in
before you can comment on or make changes to this bug.
Description
•