Closed Bug 1632805 Opened 5 years ago Closed 5 years ago

ModalPrompter falls back to window prompts for subframe BrowsingContexts

Categories

(Firefox :: Security, defect, P1)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1631362

People

(Reporter: pbz, Assigned: pbz)

References

Details

Attachments

(1 obsolete file)

Currently, when prompting with a BC of a subframe, ModalPrompter will fail to get the window actor and fallback to a window prompt.

For example, running this on a page with an iframe will result in a window prompt:

Services.prompt.alertBC(gBrowser.selectedBrowser.browsingContext.children[0], Services.prompt.MODAL_TYPE_TAB, 'title', 'body')

Using the top browsing context here probably fixes this.

I think this is a P1 and we should land it as soon as possible so this gets enough time in nightly.

Priority: -- → P1
Blocks: 615761
Pushed by pzuhlcke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/053cfd9fe86a ModalPrompter: Use top browsing context to support subframes. r=johannh
Severity: -- → normal
Fission Milestone: --- → M6a
Attachment #9143059 - Attachment is obsolete: true

The patch for Bug 1631362 fixes this.

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Flags: needinfo?(pbz)
Resolution: --- → DUPLICATE

Clearing Fission Milestone for bugs resolved as duplicates. We don't need to track duplicates.

Fission Milestone: M6a → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: