Closed Bug 720344 Opened 12 years ago Closed 12 years ago

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

Categories

(Add-on SDK Graveyard :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: admin, Unassigned)

Details

Attachments

(1 file)

154.45 KB, application/octet-stream
Details
Attached file 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
Component: Untriaged → General
Product: Firefox → Add-on SDK
Version: 9 Branch → unspecified
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
Closed: 12 years ago
Resolution: --- → WORKSFORME
QA Contact: untriaged → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: