Closed Bug 1633365 Opened 5 years ago Closed 5 years ago

TypeError: WeakMap key must be an object, got permanentKey

Categories

(Firefox :: Menus, defect, P3)

defect

Tracking

()

RESOLVED FIXED
Firefox 78
Tracking Status
firefox78 --- fixed

People

(Reporter: kernp25, Assigned: Gijs)

References

Details

Attachments

(3 files, 1 obsolete file)

Attached image firefox_Hq6sVIwlm1.png

I see this TypeError in console: WeakMap key must be an object, got permanentKey

Flags: needinfo?(mconley)

Hi kernp25,

I think I need more information here. What version of Firefox are you running? Did you do something immediately before the error showed up? How easy is it for you to reproduce the problem?

Flags: needinfo?(mconley) → needinfo?(kernp25)
Attached file test.zip (obsolete) —

(In reply to Mike Conley (:mconley) (:⚙️) from comment #1)

What version of Firefox are you running?

77.0a1 (2020-04-27) (64-Bit)

How easy is it for you to reproduce the problem?

STR:

  1. Load the attached add-on in about:debugging
  2. Click on the browser action icon
Flags: needinfo?(kernp25)

I can't reproduce with the add-on as attached on nightly from today ... the popup shows an XFO block error (mozilla.org can't be framed), and no output appears in the browser console. Does the iframe loading matter? Am I missing some steps? Does the error only appear if some other prefs are enabled? I doublechecked a second clean profile and there, too, I don't see the error.

I suspect we just need to set group: "browsers", on the page style actor, but equally, without being able to reproduce it's hard to know if that's really correct or if I'm misunderstanding the problem...

Flags: needinfo?(kernp25)
Attached file test_bug_1633365.zip
Attachment #9143860 - Attachment is obsolete: true
Flags: needinfo?(kernp25) → needinfo?(gijskruitbosch+bugs)

(In reply to :Gijs (he/him) from comment #4)

Does the iframe loading matter?

Yes! If the iframe has no src or the src is about:blank then the error will not show.

(In reply to :Gijs (he/him) from comment #4)

I can't reproduce with the add-on as attached on nightly from today ... the popup shows an XFO block error (mozilla.org can't be framed)

The loading in iframe fix has been reverted, so that's why it was not working anymore.

I filed a bug for the generic version of this as bug 1635131, but we can
stop the immediate problem here by just not running this actor except
for tabbrowser browsing contexts.

Assignee: nobody → gijskruitbosch+bugs
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Flags: needinfo?(gijskruitbosch+bugs)
See Also: → 1635131
Severity: -- → S4
Priority: -- → P3
Pushed by gijskruitbosch@gmail.com: https://hg.mozilla.org/integration/autoland/rev/011b51a914cc stop loading page style actors except in tabbrowser browsers, r=florian
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 78
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: