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
Intermittent crash in /html/browsers/windows/nested-browsing-contexts/window-parent-null.html and /html/browsers/windows/nested-browsing-contexts/window-top-null.html and /html/browsers/windows/noreferrer-null-opener.html #16574
changed the title [-]Intermittent crash in /html/browsers/windows/nested-browsing-contexts/window-parent-null.html[/-][+]Intermittent crash in /html/browsers/windows/nested-browsing-contexts/window-parent-null.html and /html/browsers/windows/nested-browsing-contexts/window-top-null.html[/+]on Apr 23, 2017
changed the title [-]Intermittent crash in /html/browsers/windows/nested-browsing-contexts/window-parent-null.html and /html/browsers/windows/nested-browsing-contexts/window-top-null.html[/-][+]Intermittent crash in /html/browsers/windows/nested-browsing-contexts/window-parent-null.html and /html/browsers/windows/nested-browsing-contexts/window-top-null.html and /html/browsers/windows/noreferrer-null-opener.html[/+]on Apr 23, 2017
implIframeFragmentInfo{/// Creates the information specific to an iframe fragment.pubfnnew<N:ThreadSafeLayoutNode>(node:&N) -> IframeFragmentInfo{let browsing_context_id = node.iframe_browsing_context_id();let pipeline_id = node.iframe_pipeline_id();IframeFragmentInfo{browsing_context_id: browsing_context_id,pipeline_id: pipeline_id,}}}
Activity
stshine commentedon Apr 23, 2017
[-]Intermittent crash in /html/browsers/windows/nested-browsing-contexts/window-parent-null.html[/-][+]Intermittent crash in /html/browsers/windows/nested-browsing-contexts/window-parent-null.html and /html/browsers/windows/nested-browsing-contexts/window-top-null.html[/+][-]Intermittent crash in /html/browsers/windows/nested-browsing-contexts/window-parent-null.html and /html/browsers/windows/nested-browsing-contexts/window-top-null.html[/-][+]Intermittent crash in /html/browsers/windows/nested-browsing-contexts/window-parent-null.html and /html/browsers/windows/nested-browsing-contexts/window-top-null.html and /html/browsers/windows/noreferrer-null-opener.html[/+]asajeffrey commentedon May 16, 2017
My guess as to what's going on... Over in
servo/components/layout/fragment.rs
Line 484 in 0388e11
which calls
servo/components/script/dom/node.rs
Line 1131 in 0388e11
This code assumes that every iframe element has a pipeline_id, but this isn't the case: only iframes with a src attribute have an associated pipeline.
I think the simplest thing to do would be to sprinkle
Optioneverywhere.@cbrewster does this seem right to you?
cbrewster commentedon May 16, 2017
Hmm, if the iframe has been bound to the tree, it should always have a pipeline_id present, could there be a race condition somewhere?
asajeffrey commentedon May 16, 2017
@cbrewster what if it's in the tree but doesn't have a src attribute? Won't
servo/components/script/dom/htmliframeelement.rs
Lines 212 to 217 in 0388e11
cbrewster commentedon May 16, 2017
@asajeffrey a nested browsing context is always created first when an iframe is bound to the tree, which will cause a synchronous load of about:blank.
servo/components/script/dom/htmliframeelement.rs
Line 745 in 0388e11
servo/components/script/dom/htmliframeelement.rs
Lines 245 to 252 in 0388e11
asajeffrey commentedon May 16, 2017
@cbrewster I see what you mean, in particular
servo/components/script/dom/htmliframeelement.rs
Line 182 in 0388e11