Closed Bug 1449807 Opened 6 years ago Closed 6 years ago

Don't flush in nsXBLResourceLoader::NotifyBoundElements.

Categories

(Core :: DOM: Core & HTML, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla61
Tracking Status
firefox61 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(1 file)

      No description provided.
Blocks: 1303605
Depends on: 1357142
Comment on attachment 8963440 [details]
Bug 1449807: Don't flush in nsXBLResourceLoader::NotifyBoundElements.

https://reviewboard.mozilla.org/r/232350/#review238236

::: dom/xbl/nsXBLResourceLoader.cpp:238
(Diff revision 1)
>      content->OwnerDoc()->UnblockOnload(/* aFireSync = */ false);
>  
>      bool ready = false;
>      xblService->BindingReady(content, bindingURI, &ready);
>  
> -    if (ready) {
> +    if (!ready) {

It's not actually clear to me whether "ready" can end up false here... seems odd.  Might be worth a followup to make that API saner.

::: dom/xbl/nsXBLResourceLoader.cpp:242
(Diff revision 1)
>  
> -    if (ready) {
> +    if (!ready) {
> +      continue;
> +    }
> +
> -      // We need the document to flush out frame construction and
> +    // We need the document to flush out frame construction and

We're not flushing anything anymore.  Please fix this comment.
Attachment #8963440 - Flags: review?(bzbarsky) → review+
Pushed by ecoal95@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/526edefabb8c
Don't flush in nsXBLResourceLoader::NotifyBoundElements. r=bz
https://hg.mozilla.org/mozilla-central/rev/526edefabb8c
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: