Closed
Bug 69292
Opened 25 years ago
Closed 24 years ago
popup blocking works too well
Categories
(Bugzilla :: Bugzilla-General, defect)
Tracking
()
VERIFIED
WORKSFORME
People
(Reporter: cesarb, Assigned: gerv)
References
()
Details
Attachments
(1 file)
|
919 bytes,
text/html
|
Details |
The bugzilla helper uses a popup. This is not a problem, UNLESS you enabled
popup blocking. I think the helper should be redesigned to allow it to work
without having to open a new window.
Comment 1•25 years ago
|
||
The helper is part of the Mozilla web pages, not the Bugzilla code,
so reassigning to mozilla.org.
Component: Bugzilla → Miscellaneous
OS: Linux → other
Product: Webtools → mozilla.org
Hardware: PC → Other
Comment 2•25 years ago
|
||
really reassigning this time
Assignee: tara → mitchell
QA Contact: matty → mitchell
| Assignee | ||
Comment 4•25 years ago
|
||
The problem here is that, AIUI, Mozilla currently doesn't remember the form
contents from previous forms in the history. So, if the new info opened in the
same window, you couldn't go "back" to change stuff. If Bugzilla was down, you'd
have just lost all your bug report.
I could get it to check for popup blocking and open in the same window if it's
turned on, if someone can tell me how to tell the difference. I suspect it's
something to do with the return value of the window.open() call or somesuch.
Gerv
| Assignee | ||
Comment 5•25 years ago
|
||
I've worked out how to detect when popup blocking is working - catch the
SecurityException - but I can't work out how to adapt the code which opens a new
window, writes a form to it and submits it, to make it modify the current window
instead.
How does one get a [object Window] representing the current window?
Gerv
If nobody ever answered this, can't you use this.window (assuming you're using
javascript calls).
| Assignee | ||
Comment 7•25 years ago
|
||
I still can't work out how to adapt the code which opens a new window, writes a
form to it and submits it, to make it modify the current window instead. I need
some way of clearing the current window of all its content - nuking the entire
content model. Anyone got any ideas?
Gerv
Component: Miscellaneous → Bugzilla Helper
Product: mozilla.org → Webtools
QA Contact: mitchell → nobody
| Assignee | ||
Comment 9•25 years ago
|
||
Now I've run into the problem that Netscape 4 doesn't like try/catch blocks,
which I need to use to catch the security exception. <sigh>.
Gerv
Comment 10•25 years ago
|
||
I'm afraid you lost me. What security exception?
| Assignee | ||
Comment 11•25 years ago
|
||
The one Mozilla throws when you try and open a new window when popup blocking is
enabled.
Gerv
Comment 12•25 years ago
|
||
Then the only solution I can think of is to wrap the throw/catch section in
something similar to this:
if (document.getElementById) {
code here....
}
The only downside being that certain versions of OE will run that code.
Since I'm not that good at browser detection, you might want to ask Martin
Honnen for a second opinion.
| Assignee | ||
Comment 13•25 years ago
|
||
*** Bug 94884 has been marked as a duplicate of this bug. ***
Comment 14•25 years ago
|
||
Gerv wrote:
>The problem here is that, AIUI, Mozilla currently doesn't remember the form
>contents from previous forms in the history. So, if the new info opened in the
>same window, you couldn't go "back" to change stuff.
Going back and getting the old form input seems to work with my copy of Mozilla
(0.9.3). Why not use the same window now?
On a related note: I tried to unblock window.open by setting
user_pref("capability.policy.default.Window.open", "noAccess");
user_pref("capability.policy.trusted.sites", "http://www.mozilla.org");
user_pref("capability.policy.trusted.Window.open", "allAccess");
in my user.jf. But it doesn't work. Should I file another bug report or does
someone spot an error in these settings??
| Assignee | ||
Comment 15•25 years ago
|
||
Did you make sure to shut down Mozilla before editing prefs.js? I.e. are the
prefs still in the file?
Gerv
| Assignee | ||
Comment 16•25 years ago
|
||
OK, the current plan is to rewrite Bugzilla Helper as a .cgi which is part of
Bugzilla. This will eliminate this problem. Look for that in the next few weeks.
Gerv
Comment 17•25 years ago
|
||
Opening the new window works now. There is an alert dialog with an "8" in it
first, but then the window pops up. And yes, I restart mozilla after I edit user.js.
| Assignee | ||
Comment 18•25 years ago
|
||
That was debugging code. I suck.
Gerv
| Assignee | ||
Comment 19•25 years ago
|
||
*** Bug 103283 has been marked as a duplicate of this bug. ***
| Assignee | ||
Comment 20•24 years ago
|
||
*** Bug 113440 has been marked as a duplicate of this bug. ***
Comment 21•24 years ago
|
||
With Mozilla 2002040108 under PC/Linux, the popup in the bugzilla helper no
longer appears (I've tried twice). My prefs.js contains:
user_pref("capability.policy.allowpopups.Window.open", "sameOrigin");
user_pref("capability.policy.allowpopups.sites", "http://www.mozilla.org
http://bugzilla.mozilla.org http://www.xxxxxxxxx.com");
user_pref("capability.policy.default.Window.open", "noAccess");
but it used to work.
| Assignee | ||
Comment 22•24 years ago
|
||
Bugzilla Helper hasn't changed. If it used to work, then file a bug on Mozilla :-)
Gerv
Comment 23•24 years ago
|
||
Looks like he did, bug 144857.
Comment 24•24 years ago
|
||
Ummm, Ok, this works because onSubmit is allowed to call window.open now via the
pref for unrequested windows. (See bug 159036 about this possibly changing...)
Since this works, the text about it not working with popup blocking on should be
removed. once that is done, this is fixed.
| Assignee | ||
Comment 25•24 years ago
|
||
WFM, then.
Gerv
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
Comment 26•24 years ago
|
||
Gerv, can you remove the red-text comment that says this won't work if popup
blocking is turned on? Its kind of misleading and people may start thinking
pop-up blocking is broken...
| Assignee | ||
Comment 27•24 years ago
|
||
Done. Wait 1 hour for the update.
Gerv
Comment 29•23 years ago
|
||
Webtools/Bugzilla Helper is being retired.
Component: Bugzilla Helper → Bugzilla-General
Product: Webtools → Bugzilla
Target Milestone: --- → Bugzilla old
Version: other → unspecified
Comment 30•23 years ago
|
||
clearing milestone on all DUPLICATE/WONTFIX/WORKSFORME/INVALID so they'll show
up as untriaged if they get reopened. "Jiminy Cricket!" for the filters (and I
don't care if it's spelled wrong ;)
Target Milestone: Bugzilla old → ---
Updated•15 years ago
|
QA Contact: nobody → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•