Closed Bug 1389861 Opened 8 years ago Closed 8 years ago

Remove extra serialization/deserialization overhead from same-process policy initialization

Categories

(WebExtensions :: General, enhancement)

enhancement
Not set
normal

Tracking

(firefox57 fixed)

RESOLVED FIXED
mozilla57
Tracking Status
firefox57 --- fixed

People

(Reporter: kmag, Assigned: kmag)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

We currently serialize and deserialize extension data that we use to initialize policy objects when setting them up in the parent process. This overhead is unnecessary, and simple enough to remove.
Comment on attachment 8896665 [details] Bug 1389861: Remove needless overhead from same-process policy initialization. https://reviewboard.mozilla.org/r/167972/#review173148 ::: toolkit/components/extensions/extension-process-script.js:59 (Diff revision 1) > } > > var extensions = new DefaultWeakMap(policy => { > - let extension = new ExtensionChild.BrowserExtensionContent(policy.initData); > + let data = policy.initData; > + if (data.serialize) { > + data = data.serialize(); nit: could use a comment as well.
Attachment #8896665 - Flags: review?(tomica) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/5ca3247d2f8b3be150510b910f2d7583a5b43eea Bug 1389861: Remove needless overhead from same-process policy initialization. r=zombie
Pushed by maglione.k@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/5ca3247d2f8b Remove needless overhead from same-process policy initialization. r=zombie
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: