1
0
Fork 1
mirror of https://github.com/zen-browser/desktop.git synced 2025-07-08 14:09:58 +02:00
This commit is contained in:
Mr. M 2025-06-21 17:30:08 +02:00
commit 3a317daa87
No known key found for this signature in database
GPG key ID: 6292C4C8F8652B18
2 changed files with 3 additions and 3 deletions

View file

@ -72,7 +72,7 @@ var gZenCommonActions = {
let transferable = Cc['@mozilla.org/widget/transferable;1'].createInstance( let transferable = Cc['@mozilla.org/widget/transferable;1'].createInstance(
Ci.nsITransferable Ci.nsITransferable
); );
transferable.init(getLoadContext()); transferable.init(window.docShell.QueryInterface(Ci.nsILoadContext));
transferable.addDataFlavor('text/plain'); transferable.addDataFlavor('text/plain');
transferable.setTransferData('text/plain', str); transferable.setTransferData('text/plain', str);
Services.clipboard.setData(transferable, null, Ci.nsIClipboard.kGlobalClipboard); Services.clipboard.setData(transferable, null, Ci.nsIClipboard.kGlobalClipboard);
@ -110,7 +110,7 @@ var gZenCommonActions = {
let transferable = Cc['@mozilla.org/widget/transferable;1'].createInstance( let transferable = Cc['@mozilla.org/widget/transferable;1'].createInstance(
Ci.nsITransferable Ci.nsITransferable
); );
transferable.init(getLoadContext()); transferable.init(window.docShell.QueryInterface(Ci.nsILoadContext));
transferable.addDataFlavor('text/plain'); transferable.addDataFlavor('text/plain');
transferable.setTransferData('text/plain', str); transferable.setTransferData('text/plain', str);
Services.clipboard.setData(transferable, null, Ci.nsIClipboard.kGlobalClipboard); Services.clipboard.setData(transferable, null, Ci.nsIClipboard.kGlobalClipboard);

View file

@ -104,7 +104,7 @@
#zen-main-app-wrapper, #zen-main-app-wrapper,
#zen-appcontent-wrapper, #zen-appcontent-wrapper,
#zen-sidebar-splitter { #zen-sidebar-splitter {
appearance: -moz-window-sidebar !important; appearance: -moz-sidebar !important;
} }
} }