Closed
Bug 682587
Opened 14 years ago
Closed 14 years ago
Application.activeWindow is undefined
Categories
(SeaMonkey :: General, defect)
Tracking
(seamonkey2.4 fixed, seamonkey2.5 fixed)
RESOLVED
FIXED
People
(Reporter: stanio, Assigned: neil)
Details
Attachments
(1 file)
|
2.03 KB,
patch
|
Callek
:
review+
philip.chee
:
approval-comm-aurora+
philip.chee
:
approval-comm-beta+
|
Details | Diff | Splinter Review |
1. Install Open in Browser extension [1] (currently at version 1.11), and restart. You'll need to install Add-on Compatibility Reporter [2] prior that;
2. Try to open any of the attachments to <https://www.mozdev.org/bugs/show_bug.cgi?id=22167>;
3. When you get the "Open with" dialog, choose:
(x) Open in browser as [_Image______]
and click "OK".
Now, apparently nothing happens and observing the Error Console one sees:
Error: Application.activeWindow is undefined
Source File: chrome://openinbrowser/content/openInBrowser.js
Line: 139
Philip Chee has suggested [3] there's need to port the relevant parts of:
Bug 658632 (Provide easy way to add non-leaky classinfo to JS components)
[1] https://addons.mozilla.org/seamonkey/addon/open-in-browser/
[2] https://addons.mozilla.org/seamonkey/addon/add-on-compatibility-reporter/
[3] http://groups.google.com/group/mozilla.dev.apps.seamonkey/msg/dbe765637717454b
Comment 1•14 years ago
|
||
Changes in Bug 658632 look relatively non-trivial and have *some* API change issues. That said, I think these JS errors warrant a drive into aurora/beta.
I'll work on this among my other duties this coming week, anyone agree that we should take this in beta/aurora?
Assignee: nobody → bugspam.Callek
Status: UNCONFIRMED → ASSIGNED
tracking-seamonkey2.4:
--- → ?
tracking-seamonkey2.5:
--- → ?
Ever confirmed: true
| Assignee | ||
Comment 2•14 years ago
|
||
We should take the changes to smileApplication.js in aurora/beta, but I don't know which flags to set for that.
| Assignee | ||
Comment 3•14 years ago
|
||
Attachment #556397 -
Flags: review?(bugspam.Callek)
Comment 4•14 years ago
|
||
Comment on attachment 556397 [details] [diff] [review]
Proposed patch
>diff --git a/suite/smile/src/smileApplication.js b/suite/smile/src/smileApplication.js
>--- a/suite/smile/src/smileApplication.js
>+++ b/suite/smile/src/smileApplication.js
>@@ -673,37 +673,37 @@ var ApplicationFactory = {
> function Application() {
> this.initToolkitHelpers();
> this._bookmarks = null;
> }
>
> //=================================================
> // Application implementation
> Application.prototype = {
>- // for nsIClassInfo + XPCOMUtils
>+ // for XPCOMUtils
> classID: Components.ID("{c9ba8f65-c936-4ac6-a859-8936832b0c12}"),
Nit: would rather this pulled out to a CONST, but not a requirement.
> // for nsISupports
> QueryInterface : XPCOMUtils.generateQI(
> [Components.interfaces.smileIApplication,
> Components.interfaces.extIApplication,
> Components.interfaces.nsIObserver,
> Components.interfaces.nsIClassInfo]),
need to drop Ci.nsIClassInfo from here.
The rest of this file looks good, I wanted to treat this bug to be used for all these classInfo usages in suite/ (http://mxr.mozilla.org/comm-central/search?string=nsIClassInfo&find=suite/) but if you want to land JUST this part, please resolve the bug, request approvals, and open a new bug for the rest of our uses.
If you go the new bug route, please file one for Fallen and calendar, as there are a lot of uses there as well.
Attachment #556397 -
Flags: review?(bugspam.Callek) → review+
| Assignee | ||
Comment 5•14 years ago
|
||
Pushed changeset ff9cd429ade8 to comm-central with the nsIClassInfo change.
Assignee: bugspam.Callek → neil
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
| Assignee | ||
Updated•14 years ago
|
Attachment #556397 -
Flags: approval-comm-beta?
Attachment #556397 -
Flags: approval-comm-aurora?
Comment 6•14 years ago
|
||
Comment on attachment 556397 [details] [diff] [review]
Proposed patch
a=me for comm-aurora and comm-beta
Attachment #556397 -
Flags: approval-comm-beta?
Attachment #556397 -
Flags: approval-comm-beta+
Attachment #556397 -
Flags: approval-comm-aurora?
Attachment #556397 -
Flags: approval-comm-aurora+
| Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Whiteboard: [transplant changeset ff9cd429ade8 from c-c to c-b and c-a]
Comment 7•14 years ago
|
||
Pushed
http://hg.mozilla.org/releases/comm-aurora/rev/8d6af20d3293
http://hg.mozilla.org/releases/comm-beta/rev/fbdf31492ffc
status-seamonkey2.4:
--- → fixed
status-seamonkey2.5:
--- → fixed
Keywords: checkin-needed
Whiteboard: [transplant changeset ff9cd429ade8 from c-c to c-b and c-a]
Updated•14 years ago
|
tracking-seamonkey2.4:
? → ---
tracking-seamonkey2.5:
? → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•