Closed
Bug 1146834
Opened 10 years ago
Closed 10 years ago
Uint8Array.slice does not exist in Fx37 so context decryption will fail
Categories
(Hello (Loop) :: Client, defect, P1)
Hello (Loop)
Client
Tracking
(firefox40 fixed)
| Tracking | Status | |
|---|---|---|
| firefox40 | --- | fixed |
People
(Reporter: mikedeboer, Assigned: mikedeboer)
References
Details
(Whiteboard: [context])
Attachments
(1 file)
|
1.39 KB,
patch
|
standard8
:
review+
|
Details | Diff | Splinter Review |
Proposed fix:
```js
if (!Uint8Array.prototype.slice)
Uint8Array.prototype.slice = Uint8Array.prototype.subarray;
```
Flags: qe-verify-
Flags: firefox-backlog+
| Assignee | ||
Updated•10 years ago
|
Points: --- → 1
Comment 1•10 years ago
|
||
Am I understanding the impact correctly here - this only affects link clickers who will be using Firefox 37 when clicking links from people who generated them in Firefox 39?
| Assignee | ||
Comment 2•10 years ago
|
||
Yes. (which is quite likely when this feature is riding the trains and not in release yet)
| Assignee | ||
Comment 3•10 years ago
|
||
You can validate this patch by loading the Shared marionette tests (http://localhost:3000/test/shared) in Firefox 37 or lower and see them fail without the patch applied, but succeed with the patch applied.
| Assignee | ||
Updated•10 years ago
|
Iteration: --- → 40.1 - 13 Apr
Updated•10 years ago
|
Rank: 5
Whiteboard: [context]
Comment 4•10 years ago
|
||
Comment on attachment 8586697 [details] [diff] [review]
Patch v1: use Uint8Array's subarray when slice is not available in Loop content pages
Review of attachment 8586697 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/components/loop/content/shared/js/utils.js
@@ +170,5 @@
>
> + // We can alias `subarray` to `slice` when the latter is not available, because
> + // they're semantically identical.
> + if (!Uint8Array.prototype.slice)
> + Uint8Array.prototype.slice = Uint8Array.prototype.subarray;
nit: please enclose this in braces.
Attachment #8586697 -
Flags: review?(standard8) → review+
| Assignee | ||
Comment 5•10 years ago
|
||
Pushed to fx-team with comment addressed: https://hg.mozilla.org/integration/fx-team/rev/72be1e6e2f31
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in
before you can comment on or make changes to this bug.
Description
•