Closed Bug 1223762 Opened 9 years ago Closed 9 years ago

webcrypto creates a new thread on each API call

Categories

(Core :: DOM: Security, defect)

42 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1152643

People

(Reporter: jiayingl, Unassigned)

Details

Attachments

(1 file)

Attached file test-crypto.html (deleted) —
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0
Build ID: 20151027170520

Steps to reproduce:

Just call crypto.subtle.encrypt() or crypto.subtle.decrypt() in a loop, refer attached sample.


Actual results:

On each call, a new OS thread will be created - so if you call 1000 times, FireFox will create 1000 threads. This consumes a lot of resources and can crash FireFox.


Expected results:

webcrypto should change to use thread pool and don't created threads more than needed.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Component: Untriaged → DOM: Security
Product: Firefox → Core
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: