pageMod contentScript contain window.frameElement will have error if you open add-ons manager

RESOLVED WORKSFORME

Status

Add-on SDK
General
RESOLVED WORKSFORME
6 years ago
6 years ago

People

(Reporter: Thomasy, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

154.45 KB, application/octet-stream
Details
(Reporter)

Description

6 years ago
Created attachment 590680 [details]
nctu_tab.xpi

User Agent: Mozilla/5.0 (Ubuntu; X11; Linux i686; rv:9.0.1) Gecko/20100101 Firefox/9.0.1
Build ID: 20111228084953

Steps to reproduce:

  contentScript: ["if (window.frameElement === null){} "] in pageMod.PageMod will have error if you open add-ons manager.


Actual results:

$ cfx run
error: An exception occurred.
Traceback (most recent call last):
  File "resource://jid1-kpgzz5f0jye5aa-at-jetpack/api-utils/data/content-proxy.js", line 757, in 
    return wrap(o, obj, name);
  File "resource://jid1-kpgzz5f0jye5aa-at-jetpack/api-utils/data/content-proxy.js", line 266, in wrap
    if ("__isXrayWrapperProxy" in value)
Error: Permission denied to access property '__isXrayWrapperProxy'
^CTraceback (most recent call last):
  File "/home/liu/tmp/addon-sdk-1.4/bin/cfx", line 29, in <module>
    cuddlefish.run()
  File "/home/liu/tmp/addon-sdk-1.4/python-lib/cuddlefish/__init__.py", line 793, in run
    mobile_app_name=options.mobile_app_name)
  File "/home/liu/tmp/addon-sdk-1.4/python-lib/cuddlefish/runner.py", line 589, in run_app
    time.sleep(0.05)
KeyboardInterrupt



Expected results:

It should show no error message
(Reporter)

Updated

6 years ago
Component: Untriaged → General
Product: Firefox → Add-on SDK
Version: 9 Branch → unspecified

Comment 1

6 years ago
window.frameElement === null returns true for me on firefox 9 on linux in about:addons. 
You must have some other page or condition than the page itself causing you to get an error.

If you want no error message to be posted, put it in a try{}catch(){} statement
Status: UNCONFIRMED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → WORKSFORME

Updated

6 years ago
QA Contact: untriaged → general
You need to log in before you can comment on or make changes to this bug.