Closed
Bug 1060046
Opened 10 years ago
Closed 10 years ago
e10s EventTarget shim is broken
Categories
(Firefox :: Extension Compatibility, defect, P1)
Firefox
Extension Compatibility
Tracking
()
RESOLVED
FIXED
Firefox 35
Tracking | Status | |
---|---|---|
e10s | m3+ | --- |
People
(Reporter: billm, Assigned: billm)
References
Details
(Keywords: addon-compat)
Attachments
(1 file)
10.07 KB,
patch
|
mconley
:
review+
|
Details | Diff | Splinter Review |
I found a major bug in the shim code while working on bug 1059007. When you create a new Interposition, you're allowed to pass in an existing one that it inherits from. We use the proto chain to link them together. However, when looking for shims for a particular property, we use interp.hasOwnProperty, which doesn't actually look at the prototype. The reason I switched to hasOwnPrototype is because I didn't want stuff from Object.prototype showing up as a shim. However, we can just set the prototype of the base shims to null to avoid that. I also added a name property to every shim, which helps debugging. And I fixed a variable that needed |let| in front of it. It's pretty clear that we need tests for this code though. I'll get working on that and post in this bug when I'm done.
Attachment #8480845 -
Flags: review?(mconley)
Updated•10 years ago
|
Blocks: old-e10s-m2
tracking-e10s:
--- → +
Keywords: addon-compat
OS: Linux → All
Priority: -- → P1
Hardware: x86_64 → All
Summary: EventTarget shim is broken → e10s EventTarget shim is broken
Comment 1•10 years ago
|
||
Comment on attachment 8480845 [details] [diff] [review] fix-shims Review of attachment 8480845 [details] [diff] [review]: ----------------------------------------------------------------- This makes sense, but yes please for tests. ::: toolkit/components/addoncompat/RemoteAddonsParent.jsm @@ +457,5 @@ > }, > > dispatch: function(browser, type, isTrusted, event) { > let targets = this.getTargets(browser); > + for (let target of targets) { Ouch - good catch.
Attachment #8480845 -
Flags: review?(mconley) → review+
Assignee | ||
Comment 3•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/68b381faa378
Comment 4•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/68b381faa378
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 35
You need to log in
before you can comment on or make changes to this bug.
Description
•