Closed Bug 1449383 Opened 7 years ago Closed 3 years ago

With "Facebook Container" extension, some shift-clicked external links *open in Facebook's container*, & crash if you drag them off, in mozilla::dom::TabChild::RecvSwappedWithOtherRemoteLoader: MOZ_CRASH("Update to TabContext after swap was denied.")

Categories

(Core :: DOM: Content Processes, defect, P3)

defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox-esr52 --- unaffected
firefox-esr60 --- wontfix
firefox60 --- wontfix
firefox61 --- wontfix
firefox62 --- wontfix
firefox65 --- wontfix
firefox66 --- wontfix
firefox67 --- fix-optional
firefox68 --- fix-optional

People

(Reporter: dholbert, Unassigned)

References

()

Details

(Keywords: crash, regression, Whiteboard: [sci-exclude])

Crash Data

Attachments

(1 file)

STR: 1. Install the "Facebook Container" add-on: https://addons.mozilla.org/en-US/firefox/addon/facebook-container/ 2. Visit https://www.facebook.com/ and log in. 3. Right click on your facebook tab and choose "Pin Tab". 4. In that pinned tab, visit e.g. https://www.facebook.com/mozilla/posts/10156136938527381 (or just scroll down your feed to find a post an external link) 5. Shift+Click the external link (the "blog.mozilla.com" link in the post above; either the link-text or the "tile", doesn't matter). ---> A new window opens with a tab at the external site. 6. Ctrl+T in that new window to open a second tab. 7. Now drag the blog.mozilla.com tab off of that window. EXPECTED RESULTS: - After step 5, the new window (from shift-click) should be a normal tab. - No crash. ACTUAL RESULTS: - After step 5: the blog.mozilla.com tab is in the Facebook container! (it has a blue underline and says "Facebook" at the right of the URL bar, despite the fact that it's a non-Facebook site!) This doesn't always happen, but it's happened in at least 50% of my attempts. If it doesn't happen for you, try repeating step 5. - After step 7: the dragged-off tab and the pinned facebook tab both show "content process crashed" pages. Sample crash report: bp-71f130a9-9670-4cc6-ac34-db6ee0180328 I'm not sure where this bug should go -- I'm guessing the "After step 5" vs. "After step 7" results might be two independent bugs, where the latter one only happens after we've triggered the first one. Not sure though.
A few updates: - You don't actually need the tab to be pinned. So you can skip step 3. - So far, I *think* this only seems to happen for links that shows "l.facebook.com/l.php?u=..." in the link-target-preview status-bubble when you hover it them. (It's not entirely predictable which external links will show up this way, but typically one of the link-text or the "tile" or the text below the tile will show up that way, at https://www.facebook.com/mozilla/posts/10156136938527381 ) Note that links only seem to show up this way the first time you click them, and then Facebook immediately updates them, or something. - Also worth noting: I haven't been able to trigger this bug by *directly visiting* a l.facebook.com link. I can only trigger it by shift-clicking one on Facebook, in a pinned tab. - At the end of my STR, the facebook tab doesn't always seem to crash, but the dragged-off tab always does.
Summary: With "Facebook Container" extension & pinned facebook tab, shift-clicked external links open in Facebook's container, and then crash if you drag them off of of that new window → With "Facebook Container" extension, a some shift-clicked external links *open in Facebook's container*, and then crash if you drag them off of of that new window
Attached video screencast of bug
Looks like the crash (from crash report in comment 0) is: > MOZ_CRASH(Update to TabContext after swap was denied.) Also looks like we've had versions of this same issue previously: bug 1294237, bug 1280105. CC'ing baku & mconley who were involved with fixing those bugs...
(baku, maybe you could take a first look here?)
Crash Signature: [@ mozilla::dom::TabChild::RecvSwappedWithOtherRemoteLoader]
Flags: needinfo?(amarchesini)
Summary: With "Facebook Container" extension, a some shift-clicked external links *open in Facebook's container*, and then crash if you drag them off of of that new window → With "Facebook Container" extension, some shift-clicked external links *open in Facebook's container*, & crash if you drag them off, in mozilla::dom::TabChild::RecvSwappedWithOtherRemoteLoader: MOZ_CRASH("Update to TabContext after swap was denied.")
Keywords: crash
Version: 57 Branch → Trunk
Hi jim, Baku isn't available to work on this, can you find someone else to take a look?
Flags: needinfo?(amarchesini) → needinfo?(jmathies)
Component: IPC → DOM: Content Processes
Flags: needinfo?(jmathies)
OS: Unspecified → All
Priority: -- → P2
Hardware: Unspecified → All
Is this still reproducible in 62? I still see the crash signature at a fairly low volume.
Yes it is. I just triggered it now with Friday's Nightly (hadn't quite gotten today's yet when I tried to repro) -- here's the crash report: bp-72a7988d-d6d3-486e-bbfd-b95f80180604
FWIW, this bug's STR got a bit worse a few days ago -- see bug 1475699. (Basically, we now get a blank new window, rather than a new window with the right content in the wrong container. bug 1475699 has the details.) I suspect that once that regression has been addressed, this will go back to being broken in the same way that it was before; but it'd be worth retesting at that point to be sure.
See Also: → 1475699

Updating affected branches. Fairly low volume on all branches.

Jim, could you please find someone to look into this?

Flags: needinfo?(jmathies)

This is pretty corner case so I really don't have anyone with the cycles for it right now.

Flags: needinfo?(jmathies)
Priority: P2 → P3
Crash Signature: [@ mozilla::dom::TabChild::RecvSwappedWithOtherRemoteLoader] → [@ mozilla::dom::TabChild::RecvSwappedWithOtherRemoteLoader] [@ mozilla::dom::BrowserChild::RecvSwappedWithOtherRemoteLoader ]
Whiteboard: [sci-exclude]

Closing because no crashes reported for 12 weeks.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: