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 HTMLCanvasElement.probablySupportsContext #11461
Conversation
highfive
commented
May 27, 2016
|
Heads up! This PR modifies the following files:
|
|
r? @emilio I think this change is incorrect, because |
| cx: *mut JSContext, | ||
| id: DOMString, | ||
| attributes: Vec<HandleValue>) -> bool { | ||
| if self.GetContext(cx, id, attributes).is_some() { |
This comment has been minimized.
This comment has been minimized.
dzbarsky
May 28, 2016
•
Member
just return self.GetContext(cx, id, attributes).is_some() (and you don't actualy need the return keyword)
|
@nox is right here, we can't do this that way. In fact, there's no real support for this method in any other browser (and it's arguable), see this for example. In any case, if we plan to implement this, we should use an heuristic, and not calling In my opinion, we should return true if the That being said, I'm a bit skeptical about the utility of this method. -S-awaiting-review +S-needs-code-changes
|
|
We should probably figure out why no other browser implemented this; it's not particularly likely to be implementation difficulty. |
|
|
|
Here is whatwg thread: https://lists.w3.org/Archives/Public/public-whatwg-archive/2013Jun/0098.html and last message: https://lists.w3.org/Archives/Public/public-whatwg-archive/2013Sep/0248.html |
|
Is there any decision about this task? |
|
I just filled whatwg/html#1459 |
|
The spec has been modified in order to no longer include this method. Thanks for the contribution though @mskrzypkows, it's been crucial to raise the issue! :-) |
mskrzypkows commentedMay 27, 2016
•
edited by larsbergstrom
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is