Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement HTMLMediaElement poster attribute #22399
Conversation
highfive
commented
Dec 10, 2018
|
Heads up! This PR modifies the following files:
|
highfive
commented
Dec 10, 2018
|
@bors-servo try=wpt |
WIP Implement HTMLMediaElement poster attribute - [X] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #22288 - [ ] There are tests for these changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22399) <!-- Reviewable:end -->
|
|
|
r? @jdm |
|
|
|
Can we add a reftest that compares a paused video with a poster attribute against a page with an image element? |
Implement HTMLMediaElement poster attribute - [X] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22288 - [x] There are tests for these changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22399) <!-- Reviewable:end -->
|
|
|
|
The last commit fixes the timeout. We need independent load blockers. r? @jdm |
| // <video poster="poster.png"></video> | ||
| // (which triggers no media load algorithm unless a explicit call to .load() is done) | ||
| // will block the document's load event forever. | ||
| let mut blocker = self.load_blocker.borrow_mut(); |
This comment has been minimized.
This comment has been minimized.
jdm
Jan 14, 2019
Member
Does this still work correctly if we switch the poster attribute value while the poster is loading? I think we probably need to call LoadBlocker::terminate.
This comment has been minimized.
This comment has been minimized.
|
@bors-servo r+ |
|
|
Implement HTMLMediaElement poster attribute - [X] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22288 - [x] There are tests for these changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22399) <!-- Reviewable:end -->
|
|
ferjm commentedDec 10, 2018
•
edited
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is