Closed Bug 1146834 Opened 9 years ago Closed 9 years ago

Uint8Array.slice does not exist in Fx37 so context decryption will fail

Categories

(Hello (Loop) :: Client, defect, P1)

defect
Points:
1

Tracking

(firefox40 fixed)

RESOLVED FIXED
mozilla40
Iteration:
40.1 - 13 Apr
Tracking Status
firefox40 --- fixed

People

(Reporter: mikedeboer, Assigned: mikedeboer)

References

Details

(Whiteboard: [context])

Attachments

(1 file)

Proposed fix:

```js
if (!Uint8Array.prototype.slice)
  Uint8Array.prototype.slice = Uint8Array.prototype.subarray;
```
Flags: qe-verify-
Flags: firefox-backlog+
Points: --- → 1
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?
Yes. (which is quite likely when this feature is riding the trains and not in release yet)
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: nobody → mdeboer
Status: NEW → ASSIGNED
Attachment #8586697 - Flags: review?(standard8)
Iteration: --- → 40.1 - 13 Apr
Rank: 5
Whiteboard: [context]
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+
Pushed to fx-team with comment addressed: https://hg.mozilla.org/integration/fx-team/rev/72be1e6e2f31
https://hg.mozilla.org/mozilla-central/rev/72be1e6e2f31
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: