Closed Bug 410751 Opened 18 years ago Closed 18 years ago

BrowserPageInfo() in Firefox 3.0b2 breaks API compatibility with earlier versions of Firefox and with SeaMonkey

Categories

(Firefox :: Page Info Window, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED
Firefox 3 beta3

People

(Reporter: philip.chee, Assigned: philip.chee)

Details

Attachments

(1 file)

In firefox 2.0: BrowserPageInfo(null, "securityTab"); In Minefield 3.0b2: BrowserPageInfo(null, "security"); This is the Firefox equivalent of a patch I filed against the Suite: <https://bugzilla.mozilla.org/attachment.cgi?id=295015&action=edit> I was porting the View Dependencies Page Info extension <http://mozilla.queze.net/> to the new Page Info in Minefield and SuiteRunner when I noticed this change. See Bug 410391 Comment #4 on why this might cause problems for extension authors adapting their extensions to the new Page Info window. Since there is only one caller of BrowserPageInfo() that makes use of the second parameter, it doesn't make sense to optimize out the trailing "Tab" in the element ID passed to BrowserPageInfo(). Also this removes the unnecessary restriction on names of the element IDs ending with "Tabs". This patch re-establishes backward compatibility and makes for a smoother experience by extension authors (like Florian Quèze)
Attachment #295342 - Flags: review?(mano)
Comment on attachment 295342 [details] [diff] [review] Patch to make BrowserPageInfo() backward compatible. This change in the API looks silly. I can't even remember why I made it. I agree we should revert it.
Attachment #295342 - Flags: review+
Do I still need a second review by mano? I am unfamiliar with the review rules for Firefox.
Thanks for the CC and to quote from IRC for your answer Philip... <Mossop> Callek: Florian isn't a browser peer so yes still needs review
Comment on attachment 295342 [details] [diff] [review] Patch to make BrowserPageInfo() backward compatible. r=mano
Attachment #295342 - Flags: review?(mano) → review+
Attachment #295342 - Flags: approval1.9?
Attachment #295342 - Flags: approval1.9? → approval1.9+
Keywords: checkin-needed
Version: unspecified → Trunk
Checking in browser/base/content/browser.js; /cvsroot/mozilla/browser/base/content/browser.js,v <-- browser.js new revision: 1.921; previous revision: 1.920 done Checking in browser/base/content/pageinfo/pageInfo.js; /cvsroot/mozilla/browser/base/content/pageinfo/pageInfo.js,v <-- pageInfo.js new revision: 1.14; previous revision: 1.13 done
Status: NEW → RESOLVED
Closed: 18 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3 M11
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: