Closed Bug 192755 Opened 23 years ago Closed 23 years ago

Unable to allow popup from a site with a specified port

Categories

(SeaMonkey :: General, defect)

HP
All
defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: xavier.loup, Assigned: shliang)

References

Details

Attachments

(2 files)

User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.3b) Gecko/20030210 Build Identifier: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.3b) Gecko/20030210 The dialog "Popup Exceptions - Allowed Web Sites" is not able to handle specified ports for websites. Reproducible: Always Steps to Reproduce: 1. In preferences, select Privacy & Security, Popup Windows and choose Suppress Popups 2. Try to add the site localhost:8080 to the list of the dialog "Popup Exceptions - Allowed Web Sites" Actual Results: The site 8080 is added to the list of sites. The popups from the site localhost:8080 are blocked. Expected Results: The site localhost:8080 should have been added to the list of sites. The popups from the site localhost:8080 should be allowed.
http://lxr.mozilla.org/seamonkey/source/xpfe/communicator/resources/content/popupManager.js#348 addPermission() incorrectly trims schemes (as in, it will trim out hosts if there is a port). It also assumes that all URIs involved are HTTP....
Assignee: asa → shliang
Severity: normal → major
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: nsbeta1
OS: Windows NT → All
Hardware: PC → HP
May be you could change the regexp : host.replace(/^\s*([-\w]*:\/*)?/, ""); with : host.replace(/^\s*([-:\w]*\/\/*)?/, "") Works for me ...
cleaner : host.replace(/^\s*([-:\w]*\/+)?/, ""); it doesn't solve the proble of the protocol (http, https, ...)
Is it possible to apply the fix ?
Eiffel, if you could attach a patch (see http://www.gerv.net/software/patch-maker/ for a way to do this without having a complete Mozilla tree) and request review from "shliang@netscape.com" and super-review from jaggernaut@netscape.com, that would be a good start....
*** Bug 195774 has been marked as a duplicate of this bug. ***
Comment on attachment 116245 [details] [diff] [review] Patch to allow port in popupManager.js Asking for review.
Attachment #116245 - Flags: superreview?(jaggernaut)
Attachment #116245 - Flags: review?(shliang)
Attached patch i prefer thisSplinter Review
Comment on attachment 116258 [details] [diff] [review] i prefer this sr=jag
Attachment #116258 - Flags: superreview+
Comment on attachment 116258 [details] [diff] [review] i prefer this r=bzbarsky, then ;) (if jag and Shuehan are happy with it...)
Attachment #116258 - Flags: review+
resolving
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Attachment #116245 - Flags: superreview?(jaggernaut)
Attachment #116245 - Flags: review?(shliang)
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: