Open Bug 707261 Opened 13 years ago Updated 12 years ago

Error in mgmtapi.js logged into the console

Categories

(Web Apps :: Extension, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

People

(Reporter: clochix, Unassigned)

Details

(Whiteboard: devPreviewNonBlocker [testday-20111202])

Attachments

(1 file)

[testday-20111202]
After installing the extension in a new profile, each time I start Firefox I have the following message in the console:

DOMApplicationRegistry::init() [object Window]
error: An exception occurred.
Traceback (most recent call last):
  File "/home/clochix/.mozilla/firefox/2hdhssy6.OWA/extensions/openwebapps@mozillalabs.com//resources/openwebapps/data/mgmtapi.js", line 74, in null
[Exception... "Cannot modify properties of a WrappedNative"  nsresult: "0x80570034 (NS_ERROR_XPC_CANT_MODIFY_PROP_ON_WN)"  location: "JS frame :: /home/clochix/.mozilla/firefox/2hdhssy6.OWA/extensions/openwebapps@mozillalabs.com//resources/openwebapps/data/mgmtapi.js :: <TOP_LEVEL> :: line 74"  data: no]
Whiteboard: [testday-20111202]
what version of firefox?  and I'm assuming it's on linux per that field in the bug.
FF nightly
ok, it's related to nightly. I launched my 8.0.1 on the same profile and was able to install an app. Then I closed the 8.0.1 and launched again the nightly, and got this error in the console:

error: An exception occurred.
Traceback (most recent call last):
  File "/home/clochix/.mozilla/firefox/2hdhssy6.OWA/extensions/openwebapps@mozillalabs.com//resources/openwebapps/data/mgmtapi.js", line 74, in null
[Exception... "Cannot modify properties of a WrappedNative"  nsresult: "0x80570034 (NS_ERROR_XPC_CANT_MODIFY_PROP_ON_WN)"  location: "JS frame :: /home/clochix/.mozilla/firefox/2hdhssy6.OWA/extensions/openwebapps@mozillalabs.com//resources/openwebapps/data/mgmtapi.js :: <TOP_LEVEL> :: line 74"  data: no]
error: An exception occurred.
Traceback (most recent call last):
  File "resource://openwebapps-at-mozillalabs-dot-com/addon-kit/lib/panel.js", line 313, in _onShow
    this._frameLoadersSwapped = true;
  File "resource://openwebapps-at-mozillalabs-dot-com/addon-kit/lib/panel.js", line 95, in 
    .swapFrameLoaders(this._viewFrame);
  File "resource://openwebapps-at-mozillalabs-dot-com/addon-kit/lib/panel.js", line 290, in 
    get _viewFrame() this.__xulPanel.children[0],
TypeError: this.__xulPanel is null


Seems like a recent regression. I tried the extension 2 or 3 days ago with my nightly, and was able to install the only free app in the store.
Ok, I think this is related to Bug 707104.  

The problem is that the new APIs have landed into nightlies, and our injector is trying to inject the same APIs.  I don't know if this problem is solvable in the short term (ie. before developer preview release).

Nightly is Firefox 11.  The current release is Fx8, and Fx9 will be released soon (end of month or early jan?).

So, should we be testing on nightly, or should we be testing on fx9/10?
I highly recommend getting rid of the awful injector once Firefox 9 is released as stable and bug 641552 will be available in all released Firefox versions.
(In reply to Philipp von Weitershausen [:philikon] from comment #6)
> I highly recommend getting rid of the awful injector once Firefox 9 is
> released as stable and bug 641552 will be available in all released Firefox
> versions.

My previous comment is slightly incorrect.

The injector has been rewritten as a backwards compat shim that is compatible with what is happening in fx9. The shim is only used pre-fx9.  So this really has nothing to do with the injector shim.

The issue is that we are injecting APIs (via the proper mechanism) that the nightlies now also inject.  They are colliding and I expect that anything in owa would fail.
Whiteboard: [testday-20111202] → devPreviewNonBlocker [testday-20111202]
There is a different error in the error console related to an "injector".  Will the following error be resolved by this bug or shall I file another:

Error: uncaught exception: [Exception... "Cannot modify properties of a WrappedNative"  nsresult: "0x80570034 (NS_ERROR_XPC_CANT_MODIFY_PROP_ON_WN)"  location: "JS frame :: resource://openwebapps-at-mozillalabs-dot-com-api-utils-lib/securable-module.js -> resource://openwebapps-at-mozillalabs-dot-com-openwebapps-lib/injector.js :: <TOP_LEVEL> :: line 134"  data: no]

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:11.0a1) Gecko/20111212 Firefox/11.0a1
Extension version: 0.5.1
Bump? I sorely miss fx share :(
A Pivotal Tracker story has been created for this Bug: http://www.pivotaltracker.com/story/show/24808713
Not sure if this applicable to mozilla-central or not. It might not be (as this is referring to possibly old vs. new API conflicts), but I need someone to confirm. David Clarke - Is this or not applicable to mozilla-central?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: