Closed Bug 232112 Opened 21 years ago Closed 21 years ago

Copy/Paste the 'Unix' way doesn't work because the pref middlemouse.paste is set to false

Categories

(Firefox :: General, defect)

x86
Linux
defect
Not set
major

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: tulipawn, Assigned: bugzilla)

Details

(Keywords: regression)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7a) Gecko/20040124 Firebird/0.8.0+
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7a) Gecko/20040124 Firebird/0.8.0+

After marking some text with the mouse, pressing the middle button does nothing
(even inside the browser window, let alone between apps).

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Is this with a gtk2 or gtk1 build ? If it's a gtk2 build this is a
known bug.
OOps, i commented in wrong bug. Sorry.
Do you see this only in Firebird or also in Mozilla ?
Severity: major → normal
Piotr, this worskforme with a linux trunk 2004-01-11-07 nightly and with a CVS
SeaMonkey build from this morning.  So could you please provide some more
information?  Your exact build config would be a good start.

Also is this only a problem with Firebird, or with SeaMonkey builds too?  You've
filed this as a SeaMonkey bug...
Severity: normal → major
I've just checked with a nightly build of seamonkey and it turns out to be a
Firebird only issue. 
Component: Browser-General → General
Product: Browser → Firebird
Version: Trunk → unspecified
And the build config:

Build platform
target
i686-pc-linux-gnu

Build tools
Compiler 	Version 	Compiler flags
gcc 	gcc version 3.2.3 	-Wall -W -Wno-unused -Wpointer-arith -Wcast-align
-Wno-long-long -s -march=i486 -Os -pipe -pthread -pipe
c++ 	gcc version 3.2.3 	-fno-rtti -fno-exceptions -Wall -Wconversion
-Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy
-Wno-non-virtual-dtor -Wno-long-long -s -march=i486 -Os -pipe -fshort-wchar
-pthread -pipe -I/usr/X11R6/include

Configure arguments
--enable-crypto --disable-tests --disable-debug --disable-mailnews
--disable-composer --disable-toolkit-qt --disable-toolkit-xlib --disable-gtk
--enable-xft --enable-xprint --enable-freetype2 --disable-toolkit-gtk
--enable-default-toolkit=gtk2
--enable-extensions=default,-inspector,-irc,-venkman,-content-packs,-help
--enable-plaintext-editor-only --with-system-jpeg --with-system-zlib
--with-system-png --with-system-mng --enable-strip --enable-strip-libs
--disable-ldap --disable-calendar --disable-composer --disable-ldap-experimental
--enable-mathml --disable-logging --enable-reorder --enable-strip
--disable-pedantic --disable-cpp-rtti --disable-cpp-exceptions
--disable-xinerama --disable-ctl --enable-postscript
please also reassign to default owner/qa when changing components
Assignee: general → blake
Keywords: regression
QA Contact: general → bugs
QA Contact: bugs → blake
I just tried this with the latest Firebird nightly, and cannot reproduce. 
Copy/Paste seems to be working fine.

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7a) Gecko/20040124 Firebird/0.8.0+
Is your build a GTK2/Xft too? Because definitely middle click pasting doesn't
work now. I also keep an older build dated 27112003 which works fine.
i also experience this.  

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7a) Gecko/20040125 Firebird/0.8.0+

should this be tracked by bug 144260?

my configure options:  

# sh
# Build configuration script
#$(topsrcdir)/browser/config/mozconfig
MOZ_PHOENIX=1
export MOZ_PHOENIX=1
mk_add_options MOZ_INTERNAL_LIBART_LGPL=1
MOZ_INTERNAL_LIBART_LGPL=1
mk_add_options MOZ_MAKE_FLAGS=-j6
mk_add_options MOZ_PHOENIX=1
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --disable-mailnews
ac_add_options --disable-composer
ac_add_options --disable-installer
ac_add_options --disable-activex
ac_add_options --disable-activex-scripting
ac_add_options --enable-extensions
ac_add_options --with-extensions=default,irc
ac_add_options --enable-crypto #comment to disable PSM/SSL support
ac_add_options --enable-mathml #uncomment to enable mathml
ac_add_options --enable-java-supplement
ac_add_options --with-pthreads
ac_add_options --enable-xinerama
ac_add_options --enable-svg
ac_add_options --disable-toolkit-gtk2
ac_add_options --enable-default-toolkit-gtk
ac_add_options --with-x
ac_add_options --enable-xterm-updates
ac_add_options --enable-xft
ac_add_options --enable-freetype

Maybe this is a pref problem. Please have a look at about:config and check
whether middlemouse.paste is set to true. It should be true on Linux. If it's
false, please do a |grep -nr middlemouse.paste *| in your MozillaFirebird directory.
my about:config reports that middlemouse.paste is set to false, status default.

[lee@foonine lee]$ cd /usr/local/src/phoenix/mozilla/dist/bin/
[lee@foonine mozilla]$ grep -nr middlemouse.paste *
Binary file components/libeditor.so matches
defaults/pref/all.js:511:pref("middlemouse.paste", false);
greprefs/all.js:653:pref("middlemouse.paste", false);
greprefs/all.js:819:pref("middlemouse.paste", true);


That's it: Please delete defaults/pref/all.js. It got replaced by firebird.js,
which doesn't contain that pref, thus not overriding greprefs/all.js. The latter
file sets the pref to false in general (line 653), then to true on linux systems
(line 819).
See bug 231200 for details.
deleted defaults/pref/all.js
restarted firebird

pasting by middle click now works for me...  thank you!  :)
Resolving as WORKSFORME per comment 14.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → WORKSFORME
Summary: Copy/Paste the 'Unix' way doesn't work → Copy/Paste the 'Unix' way doesn't work because the pref middlemouse.paste is set to false
Reporter, please feel free to reopen the bug if this doesn't help.
Indeed it does, thanks a lot!
You need to log in before you can comment on or make changes to this bug.