Repository navigation
WebIDL Fix ImageData constructor to take a Uint8ClampedArray instead of js_object - #31398
Conversation
|
@gterzian Do you have any idea what to do with the PR? After this change, tests are failing for all browsers, including Servo? |
|
I'll take a look, if all browsers fail the test we may actually want to align... |
|
@Taym95 What's the status of this PR? |
|
@Taym95 What is the failing test? If all browsers are failing, it may be because the test itself is not conformant. |
|
Before using |
gterzian
left a comment
There was a problem hiding this comment.
I think we should find a way to make the test pass.
acc41bb to
dccdc1a
Compare
|
🔨 Triggering try run (#14551108185) for Linux (WPT) |
dccdc1a to
933dfad
Compare
|
Test results for linux-wpt from try job (#14551108185): Flaky unexpected result (16)
Stable unexpected results that are known to be intermittent (20)
Stable unexpected results (3)
|
|
|
|
🔨 Triggering try run (#14558278734) for Linux (WPT) |
|
Test results for linux-wpt from try job (#14558278734): Flaky unexpected result (21)
Stable unexpected results that are known to be intermittent (18)
Stable unexpected results (2)
|
|
|
These two test are passing locally! |
9c0669d to
9446c5a
Compare
|
I don't even see a backtrace on this crash, which suggests it's a segfault and not a Rust panic: |
|
🔨 Triggering try run (#14681892289) for Linux (WPT) |
|
Test results for linux-wpt from try job (#14681892289): Flaky unexpected result (24)
Stable unexpected results that are known to be intermittent (15)
Stable unexpected results (1)
|
|
|
9446c5a to
992565c
Compare
|
@jdm @mrobinson this is ready for final review. |
…of object Signed-off-by: Taym Haddadi <[email protected]>
992565c to
e081fb2
Compare
|
@gterzian can you please review this ? |
|
🔨 Triggering try run (#14812000050) for Linux (WPT) |
|
Test results for linux-wpt from try job (#14812000050): Flaky unexpected result (24)
Stable unexpected results that are known to be intermittent (9)
Stable unexpected results (1)
|
|
|
gterzian
left a comment
There was a problem hiding this comment.
looks good overall, but we should find out where that crash is coming from.
| let typed_array_result = | ||
| create_buffer_source_with_length::<T>(cx, len as usize, array.handle_mut(), can_gc); | ||
| if typed_array_result.is_err() { | ||
| return Err(Error::JSFailed); |
There was a problem hiding this comment.
Are you sure about the Error::JSFailed, previously it was just a (). Also the error is mapped to JSFailed a thttps://github.com//pull/31398/files#diff-74ee6b1aa263f228fb8648bb921e80b79654506e8b39570b764649a02f881402R61
There was a problem hiding this comment.
we already do Err(_) => return Err(Error::JSFailed), make sense to return Error::JSFailed
| None, | ||
| width, | ||
| Some(height), | ||
| CustomAutoRooterGuard::new(*cx, &mut CustomAutoRooter::new(typed_array)), |
There was a problem hiding this comment.
I think you want to assign this to a variable and then call the function. May be the source of the crash actually.
There was a problem hiding this comment.
I will create variable but I don't think that crash is coming from these changes
Signed-off-by: Taym Haddadi <[email protected]>
e081fb2 to
f72ecba
Compare
|
🔨 Triggering try run (#14837180341) for Linux (WPT) |
|
Test results for linux-wpt from try job (#14837180341): Flaky unexpected result (21)
Stable unexpected results that are known to be intermittent (18)
|
|
✨ Try run (#14837180341) succeeded. |
| let mut rooted_typed_array = CustomAutoRooter::new(typed_array); | ||
| let data = CustomAutoRooterGuard::new(*cx, &mut rooted_typed_array); |
There was a problem hiding this comment.
Use the auto_root! macro for this instead:
auto_root!(in(*cx) let data = typed_array);There was a problem hiding this comment.
Done, thanks for the suggestion.
Signed-off-by: Taym Haddadi <[email protected]>
I will track it part of #30862: |
Fix ImageData constructor to take a Uint8ClampedArray instead of js_object
./mach build -ddoes not report any errors./mach test-tidydoes not report any errors