Closed Bug 528881 Opened 16 years ago Closed 6 years ago

AddBinding doesn't render content

Categories

(Core :: XBL, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: asaf, Unassigned)

Details

Applying a binding using document.addBinding does not layout the binding's content (anonymous and children). The elements do show up in the DOM (and you can see the anonymous content in the DOMi), but they're not rendered. Note that forcing a simple reflow (for example, by getBoundingRect) does not render the content. One needs to actually hide and unhide the element.
Is this a chrome binding (so it's sync-loading)? Does adding this: aContent->GetOwnerDoc()->GetPrimaryShell()->RecreateFramesFor(aContent); to the |if (binding)| block at the end of nsBindingManager::AddLayeredBinding make the problem go away?
Actually, this wouldn't work for the non-chrome case either... It's not clear how to make it work sanely for that case, in fact.
It's a chrome binding indeed.

XBL is now disabled in Firefox (Bug 1583314) and is in the process of being removed from Gecko (Bug 1566221), so closing bugs requesting changes to its implementation as wontfix.

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.