Closed Bug 306492 Opened 19 years ago Closed 19 years ago

PFS doesn't take relative urls in pluginspage attribute into consideration

Categories

(Toolkit Graveyard :: Plugin Finder Service, defect, P1)

1.8.0 Branch
defect

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.8final

People

(Reporter: doronr, Assigned: Gavin)

References

Details

(Keywords: fixed1.8.1, regression, Whiteboard: [a?])

Attachments

(2 files, 2 obsolete files)

so if a pluginspage is specified as a relative url ("/bar"), we fail to load the
correct page.

Easy bug, in case someone wants to take it.
*** Bug 302995 has been marked as a duplicate of this bug. ***
Attached patch patch (obsolete) — Splinter Review
This should do it. I tested that it works with frames.
Assignee: doronr → gavin.sharp
Status: NEW → ASSIGNED
Attachment #195598 - Flags: review?(mconnor)
Whiteboard: [patch-r?]
Change looks fine.  I guess there is no other way to do this other than using
docshell?
Well, it would be possible to use the
gBrowser.selectedBrowser.webNavigation.currentURI, since this code should
theoretically only run when the corresponding page is displayed, but I figured
since we have a document it'd be safer to get it from that.
Hardware: PC → All
Oh, and that also wouldn't work with frames.
Comment on attachment 195598 [details] [diff] [review]
patch

We need to catch the potential exception here if pluginsPage isn't a valid URL.

r=me with that addressed
Attachment #195598 - Flags: review?(mconnor) → review+
Whiteboard: [patch-r?] → [checkin needed]
Attachment #195598 - Attachment is obsolete: true
do you need this checked in or can you?
(In reply to comment #8)
> do you need this checked in or can you?

Hrm, I thought I had checked it in. I can check it in later today, but if you
want to go ahead and do it now that's fine by me.
Trunk:
mozilla/browser/base/content/browser.js; new revision: 1.504;
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Whiteboard: [checkin needed]
Attachment #196147 - Flags: approval1.8b5?
Flags: blocking1.8b5+
Comment on attachment 196147 [details] [diff] [review]
handle invalid pluginsPage

Approved for 1.8b5 per bug meeting
Attachment #196147 - Flags: approval1.8b5? → approval1.8b5+
mozilla/browser/base/content/browser.js; new revision: 1.479.2.30;
Keywords: fixed1.8
Target Milestone: --- → Firefox1.5
Damnit, I forgot to land the contentAreaUtils.js changes from the original
patch. Will land that later today.
Status: RESOLVED → REOPENED
Keywords: fixed1.8
Resolution: FIXED → ---
Landed the other part of the patch:
Trunk: mozilla/toolkit/content/contentAreaUtils.js; new revision: 1.79;
Branch: mozilla/toolkit/content/contentAreaUtils.js; new revision: 1.77.2.2;
Status: REOPENED → RESOLVED
Closed: 19 years ago19 years ago
Keywords: fixed1.8
Resolution: --- → FIXED
Ugh, the patch is actually bad.  It will create a url for an "" pluginspage (aka no pluginspage defined), so we show the manual url button always (which will then load the site you were at).

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attached patch fix the errorSplinter Review
Only do this if we have a pluginspage
Attachment #203433 - Flags: review?
Attachment #203433 - Flags: review? → review?(mconnor)
Attached patch check for empty pluginspage (obsolete) — Splinter Review
I suck... not able to test at the moment, feel free to take and run with it.
Comment on attachment 203434 [details] [diff] [review]
check for empty pluginspage

hmm, no midair
Attachment #203434 - Attachment is obsolete: true
Attachment #203433 - Flags: review?(mconnor) → review+
Landed that on the trunk. mconnor said it`s probably not 1.8.0.1-worthy, so targetting for 1.8.1, I guess...

Sorry about the regression :(

mozilla/browser/base/content/browser.js; new revision: 1.530;
Flags: blocking1.8.1?
Keywords: fixed1.8
Priority: -- → P1
+      var docShell = findChildShell(doc, gBrowser.selectedBrowser.docShell, null);

What's wrong with gBrowser.currentURI?
oh, that'd break child frames I guess. nevermind.
Version: unspecified → 1.5 Branch
Comment on attachment 203433 [details] [diff] [review]
fix the error

Requesting approval for this very low risk regression fix.
Attachment #203433 - Flags: approval1.8.1?
Attachment #203433 - Flags: approval1.8.0.1?
Flags: blocking1.8.0.1?
Comment on attachment 203433 [details] [diff] [review]
fix the error

Please consider for 1.8.1 - 1.8.0.1 is for major security and crash issues only.
Attachment #203433 - Flags: approval1.8.0.1? → approval1.8.0.1-
Whiteboard: [a?]
Comment on attachment 203433 [details] [diff] [review]
fix the error

resetting approval request, not sure it was clear this was a regression.
Attachment #203433 - Flags: approval1.8.0.1- → approval1.8.0.1?
(In reply to comment #19)
> Landed that on the trunk. mconnor said it`s probably not 1.8.0.1-worthy, so
> targetting for 1.8.1, I guess...

If this is re-fixed on the trunk please mark the bug resolved-fixed.
Keywords: regression
Yes, this was re-fixed on the trunk.

A new bug should have been filed on the regression, it would have been easier to track. To be clear, I'll resummarize:

This patch is a simple fix to the original patch that went in for Firefox 1.5. The net effect is that in Firefox 1.5, the Plugin Finder always shows the "Manual" button, and in some cases it will load the same page the user is looking at. The patch essentially reverts to the correct 1.0.x behavior without regressing the original issue fixed in this bug.
Status: REOPENED → RESOLVED
Closed: 19 years ago19 years ago
Resolution: --- → FIXED
Flags: blocking1.8.0.1? → blocking1.8.0.1-
Attachment #203433 - Flags: approval1.8.0.1? → approval1.8.0.1-
approvals not yet necessary for 1.8.1 -- you can land reviewed patches there the same as on the trunk right now.
Attachment #203433 - Flags: approval1.8.1? → branch-1.8.1?(mconnor)
Attachment #203433 - Flags: branch-1.8.1?(mconnor) → branch-1.8.1+
Fixed on the 1.8 branch.
mozilla/browser/base/content/browser.js; new revision: 1.479.2.49;
Keywords: fixed1.8.1
Product: Firefox → Toolkit
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: