Closed
Bug 615213
Opened 14 years ago
Closed 13 years ago
Remove nsIGlobalHistory (Components.classes["@mozilla.org/browser/global-history;1"]) code
Categories
(Core :: DOM: Navigation, defect)
Core
DOM: Navigation
Tracking
()
RESOLVED
FIXED
mozilla15
Tracking | Status | |
---|---|---|
blocking2.0 | --- | - |
People
(Reporter: sgautherie, Assigned: marco)
References
()
Details
(Keywords: addon-compat, dev-doc-complete)
Attachments
(1 file)
5.57 KB,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
http://mxr.mozilla.org/mozilla-central/source/docshell/base/Makefile.in
still has
{
55 SDK_XPIDLSRCS = \
56 nsIGlobalHistory.idl \
57 $(NULL)
}
But nsGlobalHistoryAdapter.cpp was removed by bug 568691.
http://hg.mozilla.org/mozilla-central/rev/08410c390aa9
Then it seems this interface is not registered (anywhere) anymore.
1) Was it intended or just missed?
2) Are there other interfaces in the same case?
Reporter | ||
Updated•14 years ago
|
blocking2.0: --- → ?
Reporter | ||
Comment 1•14 years ago
|
||
Fwiw,
http://mxr.mozilla.org/mozilla-central/source/docshell/base/nsIGlobalHistory.idl
42 * @status DEPRECATED. This interface is still accepted, but new
43 * implementations should use nsIGlobalHistory2.
Then you might want to take Gecko 2.0 as an opportunity to remove this interface completely.
But that's just a reminder, not a request.
Comment 2•14 years ago
|
||
This was an intentional change. We should remove the interface.
blocking2.0: ? → -
Component: XPCOM → Document Navigation
QA Contact: xpcom → docshell
Reporter | ||
Comment 3•14 years ago
|
||
"blocking2.0=?":
Stop exposing/building an interface that is actually unavailable now.
No longer blocks: data-driven-compreg
blocking2.0: - → ?
Depends on: data-driven-compreg
Flags: in-testsuite-
Keywords: regression
Summary: Components.classes["@mozilla.org/browser/global-history;1"] isn't registered anymore → Remove nsIGlobalHistory (Components.classes["@mozilla.org/browser/global-history;1"]) code
Comment 4•14 years ago
|
||
No, I don't want to remove it now because extension code which doesn't actually use it may still be trying to use Components.classes.nsIGlobalHistory.
blocking2.0: ? → -
Reporter | ||
Comment 5•14 years ago
|
||
(In reply to comment #2)
> We should remove the interface.
(In reply to comment #4)
> I don't want to remove [the code]
Wow, I'm puzzled!
So you say you want to "keep (building) the code in the tree, yet not register the interface anymore"?
(I wonder what good that does.
Maybe take bug 603031 + bug 615219 as an example.)
Comment 6•14 years ago
|
||
No, I'm saying we should remove the interface *after* we branch for Firefox 4. The *interface* is still present in Firefox 4, but there are no implementations of it, so it's vestigial.
Reporter | ||
Comment 7•14 years ago
|
||
(In reply to comment #6)
Hum (I'm not sure I fully understand, but), in other words, am I right to say that:
*this bug is Future for now (until FFv4 branches)?
*ChatZilla is now required to use nsIGlobalHistory2 (bug 615219) to keep working with Gecko 2.0b2+?
Target Milestone: --- → Future
Updated•13 years ago
|
Blocks: asyncHistory
Comment 8•13 years ago
|
||
(In reply to Benjamin Smedberg [:bsmedberg] from comment #6)
> No, I'm saying we should remove the interface *after* we branch for Firefox
> 4.
So, we are quite far from Firefox 4, we still don't have an implementation of this interface, so whoever tries to use it is likely just not doing what he thinks.
Benjamin, would you be fine to actually do the removal now? We can reach tracked add-ons authors through the AMO team, though at this point I expect those being just onowned and unmaintained add-ons.
Comment 9•13 years ago
|
||
Yes, please remove.
Assignee | ||
Comment 10•13 years ago
|
||
Remove nsIGlobalHistory (if we want to)
Reporter | ||
Updated•13 years ago
|
Attachment #620783 -
Flags: review?(benjamin)
Updated•13 years ago
|
Keywords: addon-compat
Updated•13 years ago
|
Attachment #620783 -
Flags: review?(benjamin) → review+
Comment 11•13 years ago
|
||
I assume benjamin's review here is also valid as a SR for the interface change, and after all this was already in the plan from a long time. So this can land.
Updated•13 years ago
|
Assignee: nobody → mar.castelluccio
Status: NEW → ASSIGNED
Assignee | ||
Comment 12•13 years ago
|
||
I've sent the patch to try: https://tbpl.mozilla.org/?tree=Try&rev=fce464dcb502
Assignee | ||
Updated•13 years ago
|
Keywords: checkin-needed
Comment 13•13 years ago
|
||
Keywords: checkin-needed
Target Milestone: Future → mozilla15
Updated•13 years ago
|
Keywords: dev-doc-needed
Comment 14•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 15•13 years ago
|
||
Doc updated:
https://developer.mozilla.org/en/XPCOM_Interface_Reference/nsIGlobalHistory
Mentioned on Firefox 15 for developers.
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•