You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
iframe.goBack() doesn't paint the previous pipeline #9919
// Revoke paint permission from a pipeline, and all children.
Here we traverse the frame tree, but the top level frame of that tree should not use pipeline(frame.current) but pipeline(pipeline_id). Or, revoke_paint_permission should be called before the new pipeline is set to frame.current.
But that's apparently not enough.
The right frame tree is sent to the compositor. Paint permissions appear to be properly set.
With WR, the old page is not replace by the new one.
Without WR, the new page is replaced by a blank page.
@paulrouget I'm not sure I understand what's wrong with that code. On the first iteration through that loop, pipeline_id should be equal to frame.current - is it not? From there it should loop through any iframes in the free tree from that root. The iframe goBack() code certainly used to work and I don't think that part has changed for quite some time, so I suspect a regression elsewhere.
On the first iteration through that loop, pipeline_id should be equal to frame.current - is it not?
If I understand correctly how this works, it is not.
frame.current is set to next (which is correct), and then we call revoke_paint_permission(prev) (which is correct), but within revoke_paint_permission, we use frame.current.
Activity
paulrouget commentedon Mar 15, 2016
So first, I think we revoke paint permission of the wrong pipeline:
servo/components/compositing/constellation.rs
Line 1614 in 5b28a41
Here we traverse the frame tree, but the top level frame of that tree should not use
pipeline(frame.current)butpipeline(pipeline_id). Or,revoke_paint_permissionshould be called before the new pipeline is set toframe.current.But that's apparently not enough.
The right frame tree is sent to the compositor. Paint permissions appear to be properly set.
With WR, the old page is not replace by the new one.
Without WR, the new page is replaced by a blank page.
jdm commentedon Mar 15, 2016
cc @glennw
glennw commentedon Mar 15, 2016
@paulrouget I'm not sure I understand what's wrong with that code. On the first iteration through that loop, pipeline_id should be equal to frame.current - is it not? From there it should loop through any iframes in the free tree from that root. The iframe goBack() code certainly used to work and I don't think that part has changed for quite some time, so I suspect a regression elsewhere.
paulrouget commentedon Mar 15, 2016
If I understand correctly how this works, it is not.
frame.currentis set tonext(which is correct), and then we callrevoke_paint_permission(prev)(which is correct), but withinrevoke_paint_permission, we useframe.current.paulrouget commentedon Mar 15, 2016
regression: c72d0c2
paulrouget commentedon Mar 15, 2016
@pcwalton any idea what might have gone wrong with c72d0c2?
Also - related (fixed) issue: #8081
script: Make iframes know their pipeline IDs at all times, even after
script: Make iframes know their pipeline IDs at all times, even after
script: Make iframes know their pipeline IDs at all times, even after
pcwalton commentedon Mar 24, 2016
@paulrouget Should be fixed by #10159.
paulrouget commentedon Mar 24, 2016
follow up for the
revoke_paint_permissionthing: #10162script: Make iframes know their pipeline IDs at all times, even after
pcwalton commentedon Mar 28, 2016
Can we close this in favor of #10162, in the absence of known actual browser.html problems this is causing?
paulrouget commentedon Mar 29, 2016
So this is fixed.
#10162 doesn't cause any bug afaict. Just thought I filed it just in case.
paulrouget commentedon Mar 29, 2016
Sorry, not fixed, I though #10159 landed.
pcwalton commentedon Mar 29, 2016
Oh right, sorry about that.
script: Make iframes know their pipeline IDs at all times, even after
Auto merge of #10159 - pcwalton:iframes-know-their-pipelines, r=jdm
script: Make iframes know their pipeline IDs at all times, even after
Auto merge of #10159 - pcwalton:iframes-know-their-pipelines, r=jdm