Closed Bug 1120613 Opened 10 years ago Closed 10 years ago

"Failure arg 6 [nsIContentPolicy.shouldLoad]" in RemoteAddonsParent.jsm with e10s

Categories

(Toolkit :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla38
Tracking Status
e10s ? ---

People

(Reporter: ehsan.akhgari, Assigned: mrbkap)

References

()

Details

Attachments

(1 file, 1 obsolete file)

I get a lot of errors in the error console like this when I use the browser: [Exception... "Failure arg 6 [nsIContentPolicy.shouldLoad]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: resource://gre/modules/RemoteAddonsParent.jsm :: ContentPolicyParent.shouldLoad/result< :: line 149" data: no] It's hard to say what's going on here but the 7th argument here is not an nsIPrincipal, that part is for sure!
No idea where we're tracking bugs in the shims
Component: Add-ons Manager → General
Flags: needinfo?(mrbkap)
Attached patch patch v1 (obsolete) — Splinter Review
Ugh. This should have been so much easier to find, but I got thrown off by the exact bug that this patch fixes. billm pointed out that we CPOW functions, so all of this code needs to deal with them anyway, but we especially need to handle the case of HTML <object> and <embed>, which both have typeof == "function". I thought of naming the function isWrappable but left it for now.
Attachment #8552726 - Flags: review?(wmccloskey)
Without this patch, adblock won't block Flash elements.
Assignee: nobody → mrbkap
Flags: needinfo?(mrbkap)
Comment on attachment 8552726 [details] [diff] [review] patch v1 Review of attachment 8552726 [details] [diff] [review]: ----------------------------------------------------------------- Thanks for fixing this! ::: toolkit/components/addoncompat/Prefetcher.jsm @@ +83,5 @@ > */ > > const PREF_PREFETCHING_ENABLED = "extensions.interposition.prefetching"; > > +function treatAsObject(v) { How about isPrimitive (and reverse the sense)?
Attachment #8552726 - Flags: review?(wmccloskey) → review+
Attached patch patch v1.1Splinter Review
Attachment #8552726 - Attachment is obsolete: true
Attachment #8552743 - Flags: review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: