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)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: xavier.loup, Assigned: shliang)
References
Details
Attachments
(2 files)
|
631 bytes,
patch
|
Details | Diff | Splinter Review | |
|
979 bytes,
patch
|
bzbarsky
:
review+
jag+mozilla
:
superreview+
|
Details | Diff | Splinter Review |
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.
Comment 1•23 years ago
|
||
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
| Reporter | ||
Comment 2•23 years ago
|
||
May be you could change the regexp :
host.replace(/^\s*([-\w]*:\/*)?/, "");
with :
host.replace(/^\s*([-:\w]*\/\/*)?/, "")
Works for me ...
| Reporter | ||
Comment 3•23 years ago
|
||
cleaner :
host.replace(/^\s*([-:\w]*\/+)?/, "");
it doesn't solve the proble of the protocol (http, https, ...)
| Reporter | ||
Comment 4•23 years ago
|
||
Is it possible to apply the fix ?
Comment 5•23 years ago
|
||
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....
Comment 6•23 years ago
|
||
*** Bug 195774 has been marked as a duplicate of this bug. ***
| Reporter | ||
Comment 7•23 years ago
|
||
| Reporter | ||
Comment 8•23 years ago
|
||
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)
Comment 10•23 years ago
|
||
Comment on attachment 116258 [details] [diff] [review]
i prefer this
sr=jag
Attachment #116258 -
Flags: superreview+
Comment 11•23 years ago
|
||
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+
| Assignee | ||
Comment 12•23 years ago
|
||
resolving
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Updated•23 years ago
|
Attachment #116245 -
Flags: superreview?(jaggernaut)
Attachment #116245 -
Flags: review?(shliang)
Updated•21 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•