Closed
Bug 506212
Opened 15 years ago
Closed 15 years ago
UI elements inside XBL are drawn incorrectly when initialized with broadcasters
Categories
(Core :: XUL, defect, P2)
Tracking
()
VERIFIED
FIXED
Tracking | Status | |
---|---|---|
status1.9.2 | --- | beta1-fixed |
blocking1.9.1 | --- | .4+ |
status1.9.1 | --- | .4-fixed |
People
(Reporter: ynvich, Assigned: smaug)
References
()
Details
(Keywords: regression, verified1.9.0.15, verified1.9.1, Whiteboard: [needs 1.9.2 landing][needs 1.9.0/1.9.1 patch or approval request])
Attachments
(3 files, 1 obsolete file)
(deleted),
application/x-xpinstall
|
Details | |
(deleted),
patch
|
sicking
:
review+
dveditz
:
approval1.9.1.4+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
dveditz
:
approval1.9.0.15+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1) Gecko/20090626 Firefox/3.5
Build Identifier: 1.9.1
A XUL application uses xul:buttons in XBL bindings which observe broadcasters which in turn reside in an overlay file. Buttons are set to observe "collapsed" and "disabled" attributes. Something has changed between 1.9.0 and 1.9.1, and as a result buttons are drawn neither collapsed, nor disabled, tough the broadcasters has these attributes set to true.
Nevertheless, the buttons report correct values for those attributes when asked with getAttribute().
Reproducible: Always
This is a regression 1.9.1 against 1.9.0
Comment 1•15 years ago
|
||
This bug needs reasonable steps to reproduce, not just a pointer to a source repository.... Ideally, it would just have a simple testcase (either zipped-up xul+overlays+xbl or a Firefox extension if this needs to run as chrome to show the problem).
Updated•15 years ago
|
Keywords: regression,
testcase-wanted
Whiteboard: [needs steps to reproduce and a testcase]
Version: unspecified → 1.9.1 Branch
Reporter | ||
Comment 2•15 years ago
|
||
1. Install this extension into Firefox and restart
2. open chrome://abstract/content/entity.xul
Actual results:
"submit" and "discard" buttons are visible
Expected results:
They are "hidden" and "collapsed"
Buttons have the attributes set to "true". If either button is pointed with mouse, its status is updated and it disappears.
Reporter | ||
Updated•15 years ago
|
Keywords: testcase-wanted
Whiteboard: [needs steps to reproduce and a testcase]
Reporter | ||
Comment 3•15 years ago
|
||
The extension fails with 3.0.12, but it works well with 3.0b5.
Reporter | ||
Comment 4•15 years ago
|
||
Does the test case demonstrate the bug?
Any pointers how to fix this or work around?
Updated•15 years ago
|
Attachment #390752 -
Attachment mime type: application/octet-stream → application/x-xpinstall
Comment 5•15 years ago
|
||
OK, this regressed between 2009-01-31-02 (rev d27323792a59) and 2009-02-01-02 (rev 2cd22042f7ef) on m-c. Pushlog: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=d27323792a59&tochange=2cd22042f7ef
Relevant patches in that range that also landed on branches: bug 471166 and bug 468211.
Those in fact touched broadcasters. Smaug, any idea what's up here?
Updated•15 years ago
|
Status: UNCONFIRMED → NEW
Component: XBL → XUL
Ever confirmed: true
QA Contact: xbl → xptoolkit.widgets
Updated•15 years ago
|
Updated•15 years ago
|
blocking1.9.1: ? → .4+
Flags: blocking1.9.0.15? → blocking1.9.0.15+
Assignee | ||
Updated•15 years ago
|
Assignee: nobody → Olli.Pettay
Assignee | ||
Comment 6•15 years ago
|
||
This fixes the problem, but I need to run the tests etc.
Bug 468211 made us synchronize later (at safe time) in some cases, but
unfortunately mInitialLayoutComplete seem to be set quite late.
Other option might be to set mInitialLayoutComplete a bit earlier, but that would
be more like a hack.
Assignee | ||
Updated•15 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 7•15 years ago
|
||
Comment on attachment 394021 [details] [diff] [review]
patch
Safer patch coming
Attachment #394021 -
Attachment is obsolete: true
Assignee | ||
Comment 8•15 years ago
|
||
Assignee | ||
Comment 9•15 years ago
|
||
Comment on attachment 394037 [details] [diff] [review]
better
This is the safest I can think of.
Attachment #394037 -
Flags: review?(jonas)
Flags: blocking1.9.2? → blocking1.9.2+
Priority: -- → P2
Comment on attachment 394037 [details] [diff] [review]
better
I can't really say I know this code very well, but this looks reasonable.
Attachment #394037 -
Flags: review?(jonas) → review+
Assignee | ||
Comment 11•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•15 years ago
|
Whiteboard: [needs 1.9.2 landing][needs 1.9.0/1.9.1 patch or approval request]
Assignee | ||
Comment 13•15 years ago
|
||
Attachment #401812 -
Flags: approval1.9.0.15?
Assignee | ||
Updated•15 years ago
|
Attachment #394037 -
Flags: approval1.9.1.4?
Assignee | ||
Comment 14•15 years ago
|
||
status1.9.2:
--- → beta1-fixed
Comment 15•15 years ago
|
||
Comment on attachment 394037 [details] [diff] [review]
better
Approved for 1.9.1.4, a=dveditz for release-drivers
Attachment #394037 -
Flags: approval1.9.1.4? → approval1.9.1.4+
Comment 16•15 years ago
|
||
Comment on attachment 401812 [details] [diff] [review]
190
Approved for 1.9.0.15, a=dveditz for release-drivers
Attachment #401812 -
Flags: approval1.9.0.15? → approval1.9.0.15+
Assignee | ||
Comment 17•15 years ago
|
||
Checking in content/xul/document/src/nsXULDocument.cpp;
/cvsroot/mozilla/content/xul/document/src/nsXULDocument.cpp,v <-- nsXULDocument.cpp
new revision: 1.837; previous revision: 1.836
done
Checking in content/xul/document/src/nsXULDocument.h;
/cvsroot/mozilla/content/xul/document/src/nsXULDocument.h,v <-- nsXULDocument.h
new revision: 1.213; previous revision: 1.212
done
Keywords: fixed1.9.0.15
Assignee | ||
Comment 18•15 years ago
|
||
Comment 19•15 years ago
|
||
(In reply to comment #2)
> Created an attachment (id=390752) [details]
> test case extension
>
> 1. Install this extension into Firefox and restart
> 2. open chrome://abstract/content/entity.xul
>
> Actual results:
> "submit" and "discard" buttons are visible
>
> Expected results:
> They are "hidden" and "collapsed"
>
> Buttons have the attributes set to "true". If either button is pointed with
> mouse, its status is updated and it disappears.
This testcase doesn't work in 3.0.14. I don't see these buttons. This makes it a bit hard to verify the fix. Any suggestions?
Assignee | ||
Comment 20•15 years ago
|
||
(In reply to comment #19)
> This testcase doesn't work in 3.0.14.
Really? IIRC, I did test this on the latest 3.0.x without patch and then with patch.
Without the patch the buttons were there, and with the patch they weren't.
Reporter | ||
Comment 21•15 years ago
|
||
(In reply to comment #19)
> > Expected results:
> > They are "hidden" and "collapsed"
>
> This testcase doesn't work in 3.0.14. I don't see these buttons. This makes it
> a bit hard to verify the fix. Any suggestions?
That's the correct behavior. The buttons shouldn't be visible.
Comment 22•15 years ago
|
||
Yes, but 3.0.14 is *before* the fix was checked in. I verify the bug before verifying the fix. I'm not seeing "submit" and "discard" buttons in 3.0.14 when running the repro steps above.
Reporter | ||
Comment 23•15 years ago
|
||
(In reply to comment #22)
> Yes, but 3.0.14 is *before* the fix was checked in. I verify the bug before
> verifying the fix. I'm not seeing "submit" and "discard" buttomayns in 3.0.14 when
> running the repro steps above.
I didn't test 1.9.0 tree. My app works with 1.9.1 and later. The bug may well not be there.
Comment 24•15 years ago
|
||
Verified for 1.9.1 with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.4pre) Gecko/20090924 Shiretoko/3.5.4pre (.NET CLR 3.5.30729).
Verified for 1.9.0 with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.15pre) Gecko/2009092805 GranParadiso/3.0.15pre (.NET CLR 3.5.30729) (I got the test case working - my mistake before).
You need to log in
before you can comment on or make changes to this bug.
Description
•