New issue
Advanced search Search tips

Issue 592867 link

Starred by 3 users

Issue metadata

Status: WontFix
Owner:
Closed: Aug 17
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug

Blocked on:
issue 490940

Blocking:
issue 866274


Participants' hotlists:
document.open


Sign in to add a comment

document.open() should cancel any timer tasks

Project Member Reported by tkent@chromium.org, Mar 8 2016

Issue description

Version: 51 canary
OS: All

What steps will reproduce the problem?
(1) Open http://w3c-test.org/html/dom/dynamic-markup-insertion/opening-the-input-stream/005.html

What is the expected output? What do you see instead?
Expected: The test passes.
Actual: The test fails.


Please use labels and text to provide additional information.
https://html.spec.whatwg.org/multipage/webappapis.html#dom-document-open
> 13. Remove any tasks associated with the Document in any task source.

setTimeout / setInternval make tasks.

The test passes on Firefox and Edge.

 

Comment 1 by tkent@chromium.org, Mar 8 2016

Labels: Hotlist-GoodFirstBug
@tkent

Can we just call Document::suspendScheduledTasks while opening the input stream? Or do we have to add support in MainThreadTaskRunner to remove pending tasks?

Comment 3 by tkent@chromium.org, Jun 24 2016

Blockedon: 490940

Comment 4 by tkent@chromium.org, Jun 24 2016

Labels: -Hotlist-GoodFirstBug
Project Member

Comment 5 by sheriffbot@chromium.org, Jun 26 2017

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 6 by tkent@chromium.org, Jun 26 2017

Labels: -Hotlist-Recharge-Cold
Status: Available (was: Untriaged)
> Can we just call Document::suspendScheduledTasks while opening the input stream? Or do we have to add support in MainThreadTaskRunner to remove pending tasks?

No and yes.

Project Member

Comment 7 by sheriffbot@chromium.org, Jun 27 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 8 by tkent@chromium.org, Jun 28 2018

Status: Available (was: Untriaged)
Owner: timothygu@chromium.org
Status: Assigned (was: Available)
Blocking: 866274
Status: Verified (was: Assigned)
The HTML Standard has decided to change to the current Chrome behavior of not canceling tasks: https://github.com/whatwg/html/pull/3918

Thus marking this as WontFix.
Status: WontFix (was: Verified)

Sign in to add a comment