mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Really fix #3738 by only processing iframe src attributes during parsing.
This commit is contained in:
parent
012a80cc18
commit
225ec3ed4e
8 changed files with 20 additions and 7 deletions
|
@ -121,7 +121,7 @@ impl<'a> HTMLIFrameElementHelpers for JSRef<'a, HTMLIFrameElement> {
|
|||
}));
|
||||
|
||||
let doc = document_from_node(self).root();
|
||||
if doc.ReadyState() != DocumentReadyStateValues::Complete {
|
||||
if doc.ReadyState() == DocumentReadyStateValues::Loading {
|
||||
// https://github.com/servo/servo/issues/3738
|
||||
// We can't handle dynamic frame tree changes in the compositor right now.
|
||||
let ConstellationChan(ref chan) = page.constellation_chan;
|
||||
|
|
2
tests/html/test-iframe.html
Normal file
2
tests/html/test-iframe.html
Normal file
|
@ -0,0 +1,2 @@
|
|||
<iframe id="whee"></iframe>
|
||||
<script>document.getElementById('whee').src = "http://google.com"</script>
|
|
@ -1,3 +1,5 @@
|
|||
[open-url-javascript-window-2.htm]
|
||||
type: testharness
|
||||
expected: CRASH
|
||||
expected: TIMEOUT
|
||||
[XMLHttpRequest: open() - resolving URLs (javascript: ]
|
||||
expected: TIMEOUT
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
[open-url-javascript-window.htm]
|
||||
type: testharness
|
||||
expected: CRASH
|
||||
expected: TIMEOUT
|
||||
[XMLHttpRequest: open() - resolving URLs (javascript: ]
|
||||
expected: TIMEOUT
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
[Document-createElement-namespace.html]
|
||||
type: testharness
|
||||
expected: CRASH
|
||||
expected: TIMEOUT
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
[load-text-plain.html]
|
||||
type: testharness
|
||||
expected: CRASH
|
||||
expected: TIMEOUT
|
||||
[Checking document metadata for text file]
|
||||
expected: NOTRUN
|
||||
[Checking DOM for text file]
|
||||
expected: NOTRUN
|
||||
[Checking contents for text file]
|
||||
expected: NOTRUN
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
[document-base-url.html]
|
||||
type: testharness
|
||||
expected: CRASH
|
||||
expected: TIMEOUT
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
[039.html]
|
||||
type: testharness
|
||||
expected: CRASH
|
||||
[ scheduler: IFRAMEs added with DOM]
|
||||
expected: FAIL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue