Skip to content
Snippets Groups Projects

Bug 42306: Prevent crashes and actually clear the clipboard on Wayland

Merged ma1 requested to merge ma1/tor-browser:bug42306_crash into tor-browser-115.5.0esr-13.5-1

Merge Info

Related Issues

Backporting

Timeline

  • Immediate: patchset needed as soon as possible
  • Next Minor Stable Release: patchset that needs to be verified in nightly before backport
  • Eventually: patchset that needs to be verified in alpha before backport
  • No Backport (preferred): patchset for the next major stable

(Optional) Justification

  • Emergency security update: patchset fixes CVEs, 0-days, etc
  • Censorship event: patchset enables censorship circumvention
  • Critical bug-fix: patchset fixes a bug in core-functionality
  • Consistency: patchset which would make development easier if it were in both the alpha and release branches; developer tools, build system changes, etc
  • Sponsor required: patchset required for sponsor
  • Localization: typos and other localization changes that should be also in the release branch
  • Other: please explain

Merging

  • Merge to tor-browser - !fixups to tor-browser-specific commits, new features, security backports
  • Merge to base-browser - !fixups to base-browser-specific commits, new features to be shared with mullvad-browser, and security backports
    • NOTE: if your changeset includes patches to both base-browser and tor-browser please clearly label in the change description which commits should be cherry-picked to base-browser after merging

Issue Tracking

Review

Request Reviewer

  • Request review from an applications developer depending on modified system:
    • NOTE: if the MR modifies multiple areas, please /cc all the relevant reviewers (since gitlab only allows 1 reviewer)
    • accessibility : henry
    • android : clairehurst, dan
    • build system : boklm
    • extensions : ma1
    • firefox internals (XUL/JS/XPCOM) : ma1
    • fonts : pierov
    • frontend (implementation) : henry
    • frontend (review) : donuts, richard
    • localization : henry, pierov
    • macos : clairehurst, dan
    • nightly builds : boklm
    • rebases/release-prep : dan, ma1, pierov, richard
    • security : ma1
    • signing : boklm, richard
    • updater : pierov
    • misc/other : pierov, richard

Change Description

How Tested

Checked that:

  1. The old behavior is kept identical on X11 (content copied from private windows is removed from the clipboard on shutdown)
  2. The crash on extension popup with MOZ_WAYLAND_ENABLED=1 doesn't happen anymore
  3. Content copied from private windows is removed from the clipboard on shutdown with MOZ_WAYLAND_ENABLED=1 as well
Edited by ma1

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Pier Angelo Vendrame
  • Pier Angelo Vendrame marked the checklist item Merge to tor-browser - !fixups to tor-browser-specific commits, new features, security backports as completed

    marked the checklist item Merge to tor-browser - !fixups to tor-browser-specific commits, new features, security backports as completed

    • Resolved by ma1

      As I wrote on IRC, I still have a few doubts about this protection, I'm wondering if we should revert it instead (or maybe revert it from stable, let the new version bake a little bit in alpha before backporting it and re-enable it).

      Maybe I'm missing something, but I think this gives us the possibility to re-evaluate the initial decision we took for 13.0.

      The original issues (#42019 (closed) and #42013 (closed)) are tagged Linkability, but I'd say clipboard isn't a linkability threat on content. Firefox still doesn't support clipboard reading, except for extensions and with a dedicated pref set to true (default is false).

      For all the other threats, we don't do anything while the browser is running (which makes sense, doing anything more than this about the clipboard would be a great usability issue).

      But again, maybe I'm not considering something.

      Maybe could we talk about this in this afternoon's meeting?

  • ma1 added 1 commit

    added 1 commit

    • 80d7e717 - fixup! Bug 42019: Empty browser's clipboard on browser shutdown

    Compare with previous version

  • ma1 marked this merge request as draft from ma1/tor-browser@80d7e717

    marked this merge request as draft from ma1/tor-browser@80d7e717

  • ma1 added 1 commit

    added 1 commit

    • 410b9a4c - fixup! Bug 42019: Empty browser's clipboard on browser shutdown

    Compare with previous version

  • Pier Angelo Vendrame resolved all threads

    resolved all threads

  • Pier Angelo Vendrame approved this merge request

    approved this merge request

  • ma1 marked this merge request as ready

    marked this merge request as ready

  • morgan approved this merge request

    approved this merge request

  • ma1 resolved all threads

    resolved all threads

  • ma1 merged

    merged

  • Author Maintainer
  • ma1 marked the checklist item Immediate: patchset needed as soon as possible as completed

    marked the checklist item Immediate: patchset needed as soon as possible as completed

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading