Skip to content
  • Emilio Cobos Álvarez's avatar
    Bug 687441 - Make iframes not cause a FOUC on parent document. r=bzbarsky · afc4a66d
    Emilio Cobos Álvarez authored
    This makes subframes not start layout on the parent document when flushing,
    which fixes the FOUC issue.
    
    It does mean that some resource loads triggered by viewport-dependent media
    queries might not block onload of the frame, but other style-triggered loads,
    fonts, and such would.
    
    This makes same-origin frames act the same way as cross-origin iframes in this
    regard if there are stylesheet loads present.
    
    I think the trade-off is worth it here, and this is green on try.
    
    Differential Revision: https://phabricator.services.mozilla.com/D55860
    
    --HG--
    extra : moz-landing-system : lando
    afc4a66d