Closed Bug 846888 Opened 11 years ago Closed 11 years ago

need to support swapping doc shells when only one is in a popup

Categories

(Core :: Web Painting, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla22

People

(Reporter: tnikkel, Assigned: tnikkel)

Details

Attachments

(2 files)

Attached patch patchSplinter Review
In nsSubDocumentFrame::BeginSwapDocShells we assert that we are not doing this. But sadly this is a common thing to do with the addon sdk for example: opening a panel and swapping a document into the panel.
Attachment #720077 - Flags: review?(matt.woodrow)
While you're here:
s/the current frame and all descendant frames/aFrame and its descendants/

Would it be possible to write a testcase?

The existing nsGkAtoms::listControlFrame check ... shouldn't it also check that
the frame IsInDropDownMode() ?  (maybe it doesn't matter in practice though)
(In reply to Mats Palmgren [:mats] from comment #1)
> The existing nsGkAtoms::listControlFrame check ... shouldn't it also check
> that
> the frame IsInDropDownMode() ?  (maybe it doesn't matter in practice though)

Good call. I fixed one case of that in bug 843979 already. I'll add a separate patch to fix that.
Attachment #720174 - Flags: review?(matspal) → review+
Attachment #720077 - Flags: review?(matt.woodrow) → review+
https://hg.mozilla.org/mozilla-central/rev/0e774158e873
https://hg.mozilla.org/mozilla-central/rev/a3d0d869bd50
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
Component: Layout: View Rendering → Layout: Web Painting
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: