Closed
Bug 314427
Opened 20 years ago
Closed 20 years ago
nsIDOMPopupBlockedEvent should expose the blocked window's target name
Categories
(Core :: DOM: Events, defect, P2)
Core
DOM: Events
Tracking
()
RESOLVED
FIXED
mozilla1.9alpha1
People
(Reporter: Gavin, Assigned: Gavin)
References
()
Details
Attachments
(1 file, 1 obsolete file)
|
11.73 KB,
patch
|
Details | Diff | Splinter Review |
See http://lxr.mozilla.org/seamonkey/source/browser/base/content/browser.js#421.
Patch coming up.
| Assignee | ||
Comment 1•20 years ago
|
||
Attachment #201360 -
Flags: superreview?(jst)
Attachment #201360 -
Flags: review?(jst)
| Assignee | ||
Updated•20 years ago
|
Status: NEW → ASSIGNED
Whiteboard: [patch-r?]
| Assignee | ||
Updated•20 years ago
|
Priority: -- → P2
| Assignee | ||
Comment 2•20 years ago
|
||
Looking at the patch again, I suppose windowName should be popupWindowName to match popupWindowFeatures.
Comment 3•20 years ago
|
||
Comment on attachment 201360 [details] [diff] [review]
patch
- In nsDOMPopupBlockedEvent::GetWindowName(nsAString &aWindowName):
+ if (mEvent->eventStructType == NS_POPUPBLOCKED_EVENT) {
+ nsPopupBlockedEvent* event = NS_STATIC_CAST(nsPopupBlockedEvent*, mEvent);
+ aWindowName = event->mWindowName;
+ return NS_OK;
+ }
+ aWindowName.Truncate();
+ return NS_OK; // Don't throw an exception
I'd remove the return in the if statement and put the call to truncate in an else...
but r+sr=jst either way with the rename you suggested.
Attachment #201360 -
Flags: superreview?(jst)
Attachment #201360 -
Flags: superreview+
Attachment #201360 -
Flags: review?(jst)
Attachment #201360 -
Flags: review+
| Assignee | ||
Updated•20 years ago
|
Whiteboard: [patch-r?]
| Assignee | ||
Comment 4•20 years ago
|
||
I left the code as it was to match the rest of the file, and this includes the change to nsGUIEvent.h that I forgot to include in the previous file.
Attachment #201360 -
Attachment is obsolete: true
| Assignee | ||
Comment 5•20 years ago
|
||
Trunk:
mozilla/content/events/src/nsDOMPopupBlockedEvent.cpp; new revision: 1.6;
mozilla/dom/public/idl/events/nsIDOMPopupBlockedEvent.idl; new revision: 1.5;
mozilla/dom/src/base/nsGlobalWindow.cpp; new revision: 1.800;
mozilla/dom/src/base/nsGlobalWindow.h; new revision: 1.265;
mozilla/widget/public/nsGUIEvent.h; new revision: 3.126;
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
| Assignee | ||
Updated•20 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•