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)

defect

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: Gavin, Assigned: Gavin)

References

()

Details

Attachments

(1 file, 1 obsolete file)

Attached patch patch (obsolete) — — Splinter Review
Attachment #201360 - Flags: superreview?(jst)
Attachment #201360 - Flags: review?(jst)
Status: NEW → ASSIGNED
Whiteboard: [patch-r?]
Priority: -- → P2
Looking at the patch again, I suppose windowName should be popupWindowName to match popupWindowFeatures.
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+
Whiteboard: [patch-r?]
Attached patch for checkin — — Splinter Review
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
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
Blocks: 314700
No longer blocks: 311851
Blocks: 343734
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: