New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
REGRESSION(253037@main): [ iOS macOS ] http/tests/workers/service/basic-timeout.https.html is a constant timeout #3387
REGRESSION(253037@main): [ iOS macOS ] http/tests/workers/service/basic-timeout.https.html is a constant timeout #3387
Conversation
finishSWTest(); | ||
let iframe = frame.contentDocument.createElement("iframe"); | ||
iframe.src = url; | ||
let iframeTimeoutHandle = setInterval(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
iframe and iframeTimeoutHandle could be const
}, function(error) { | ||
log(error); | ||
}); | ||
frameText = function(testFrame) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why frameText = function(testFrame) instead of function frameText(testFrame)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It needs to have global scope otherwise I couldn't use it inside shouldBeEqualToString().
frameText = function(testFrame) | ||
{ | ||
let innerText = testFrame.contentDocument.body.innerText; | ||
let newLineIndex = innerText.indexOf('\n'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could be const
eb88421
to
d488b07
Compare
…ic-timeout.https.html is a constant timeout https://bugs.webkit.org/show_bug.cgi?id=244001 <rdar://98739421> Reviewed by Youenn Fablet. After 253037@main, we no longer terminate service workers that do not respond in a timely fashion to loads, unless those loads are navigations. This test was testing the hung service worker termination logic using fetch requests and would thus no longer behave as expected after 253037@main. To address the issue, I rewrote the test to use iframe navigations instead of fetch requests. * LayoutTests/http/tests/workers/service/basic-timeout.https-expected.txt: * LayoutTests/http/tests/workers/service/basic-timeout.https.html: * LayoutTests/http/tests/workers/service/resources/basic-timeout.js: (async test.addTestFrame): (async test.frameText): (async test.testFrame4Loaded): (async test.frameLoaded): (async test): (async test.finishThisTest): Deleted. (async test.try): Deleted. (async test.try.checkSuccessAgain): Deleted. * LayoutTests/platform/glib/TestExpectations: * LayoutTests/platform/ios/TestExpectations: * LayoutTests/platform/mac-wk2/TestExpectations: Canonical link: https://commits.webkit.org/253540@main
d488b07
to
a7d7335
Compare
Committed 253540@main (a7d7335): https://commits.webkit.org/253540@main Reviewed commits have been landed. Closing PR #3387 and removing active labels. |
a7d7335