Closed Bug 1323369 Opened 8 years ago Closed 7 years ago

Enable pause-remove-from-document-networkState.html

Categories

(Testing :: web-platform-tests, defect)

defect
Not set
normal

Tracking

(firefox53 fixed)

RESOLVED FIXED
mozilla53
Tracking Status
firefox53 --- fixed

People

(Reporter: ctai, Assigned: ctai)

Details

Attachments

(2 files)

The Gecko codes should follow WhatWG HTML spec not HTML5 spec. In WhatWG HTML, no check of NETWORK_EMPTY anymore.

See:

When a media element is removed from a Document, the user agent must run the following steps:

Await a stable state, allowing the task that removed the media element from the Document to continue. The synchronous section consists of all the remaining steps of this algorithm. (Steps in the synchronous section are marked with ⌛.)

⌛ If the media element is in a document, abort these steps.

⌛ Run the internal pause steps for the media element.
Component: DOM: Core & HTML → web-platform-tests
Product: Core → Testing
(In reply to Chia-hung Tai [:ctai :ctai_mozilla :cht] from comment #0)
> The Gecko codes should follow WhatWG HTML spec not HTML5 spec. In WhatWG
> HTML, no check of NETWORK_EMPTY anymore.

I am not sure which spec. the wpt follows.

See bug 1304134 comment 9 and bug 1304134 comment 10. Somehow the test is broken if we follow whatwg.
Flags: needinfo?(cpearce)
Smaug,
You might also comment on the spec issue. Thanks.
Flags: needinfo?(bugs)
Gecko should follow WhatWG HTML spec since that is the spec properly maintained. W3C HTML5 spec tends to be just a snapshot of HTML spec, meaning that it contains more bugs.
Flags: needinfo?(bugs)
Sounds very reasonable. JW and cpearce what do you think?

(In reply to Olli Pettay [:smaug] from comment #5)
> Gecko should follow WhatWG HTML spec since that is the spec properly
> maintained. W3C HTML5 spec tends to be just a snapshot of HTML spec, meaning
> that it contains more bugs.
Flags: needinfo?(jwwang)
Comment on attachment 8818467 [details]
Bug 1323369 - Make HTMLMediaElement::UnbindFromTree to follow WhatWG HTML spec.

https://reviewboard.mozilla.org/r/98516/#review99052
Attachment #8818467 - Flags: review?(jwwang) → review+
Comment on attachment 8818468 [details]
Bug 1323369 - Enable pause-remove-from-document-networkState.html.

https://reviewboard.mozilla.org/r/98518/#review99054
Attachment #8818468 - Flags: review?(jwwang) → review+
Let's see if any test will be broken.
Flags: needinfo?(jwwang)
If so, then you should file a bug to fix the test case.
Doesn't it, smaug, JW?
(In reply to JW Wang [:jwwang] [:jw_wang] from comment #9)
> Let's see if any test will be broken.
Flags: needinfo?(bugs)
Summary: Enable resource-selection-invoke-insert-source.html → Enable pause-remove-from-document-networkState.html
Not sure what I'm supposed to comment here.
If our code follows the spec and there are failing tests, that in general means that tests need to be
fixed. If other browsers have different behavior, it would be nice to file bugs on their bug trackers.
Flags: needinfo?(bugs)
Pushed by cbook@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6bf4393db489
Make HTMLMediaElement::UnbindFromTree to follow WhatWG HTML spec. r=jwwang
https://hg.mozilla.org/integration/autoland/rev/8f5ee59daee2
Enable pause-remove-from-document-networkState.html. r=jwwang
Keywords: checkin-needed
had to back this out for leaks like https://treeherder.mozilla.org/logviewer.html#?job_id=7949571&repo=autoland that started with this push
Flags: needinfo?(ctai)
Backout by cbook@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/507ed4bc9275
Backed out changeset 8f5ee59daee2 
https://hg.mozilla.org/integration/autoland/rev/180cdc0296a3
Backed out changeset 6bf4393db489 for causing memory leaks on a CLOSED TREE
I agree with Olli. Clearing need-info.
Flags: needinfo?(cpearce)
Fixed. See try result: https://treeherder.mozilla.org/#/jobs?repo=try&revision=d1a70d43f9350fe19d2cd58a452437acc9dd5e90

(In reply to Carsten Book [:Tomcat] from comment #13)
> had to back this out for leaks like
> https://treeherder.mozilla.org/logviewer.html#?job_id=7949571&repo=autoland
> that started with this push
Flags: needinfo?(ctai)
Pushed by ihsiao@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/15ed85da015c
Make HTMLMediaElement::UnbindFromTree to follow WhatWG HTML spec. r=jwwang
https://hg.mozilla.org/integration/autoland/rev/67777e24d05c
Enable pause-remove-from-document-networkState.html. r=jwwang
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/15ed85da015c
https://hg.mozilla.org/mozilla-central/rev/67777e24d05c
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: