04-10-2026 01:12 PM - edited 04-10-2026 01:14 PM
Since updating to Firefox 157, the behavior of copy pasting text from a webpage into OneNote has changed.
Before (and in other browsers): you would get a From <full webpage> text appended afterwards.
After in Firefox 157: The source URL only shows the domain name, for example From <https://connect.mozilla.org> instead of the full link.
Personally I would prefer the original behavior.
06-10-2026 04:51 AM - edited 06-10-2026 04:52 AM
I've already noticed this change—in version 157, the source link has been shortened.Why?
e.g. in my onenote version(Microsoft® OneNote® LTSCMSO ( 2408 Build 16.0.17932.20910) 64 bit) From <https://connect.mozilla.org> instead of the full link.
12-10-2026 07:54 AM
I also noticed this and have been trying to resolve it since last night, to no avail!
I tested a few versions of Firefox ESR Portable and found the links were fine on 153.3.0 but not 153.4.0 - though I don't know which normal version numbers these correspond to!
I tried to diff the prefs.js for 153.3.0 and 153.4.0 and didn't see any significant differences. I also checked for any prefs that looked relevant here: https://cat-in-136.github.io but none of the ones I tried changing affected the result. So I don't know what has changed.
IIRC I tried changing:
(hmm, I thought I already had a profile here. I must be confusing it with SUMO.)
12-10-2026 08:04 AM
Versions 153.3.0 and 153.4.0 — this information is very useful.
If I have time, I'll get an AI to compare them and see what's changed.
12-10-2026 08:11 AM
I don't know if this will help, but these are the most recent commits that may relate to the clipboard: https://github.com/search?q=repo%3Amozilla-firefox%2Ffirefox+clipboard&type=commits&s=committer-date...
but this is too much information for me to deal with right now 😅
12-10-2026 08:18 AM
I checked the commit , and it looks like there are quite a few changes.
12-10-2026 01:40 PM
Good find. Seems like it also censors copied links in private browsing mode as well so none even show up.
16-10-2026 08:42 AM
I also would prefer the original behaviour, or at least the option to turn off this new behaviour. For some things, I'm switching to using another browser, because when I copy excerpts of text from webpages, then I don't have to manually copy the original URL. Now it is very inefficient for me to copy things from Firefox into OneNote, as I have to manually copy and paste the URL as an additional step.
It appears like the issue is by design. I don't understand the reason why this has been changed with no option for a user to opt out.
https://bugzilla.mozilla.org/show_bug.cgi?id=2079010
The clipboard data comes from nsCopySupport::GetDocumentSourceURL, which was changed in bug 2067254. Using the origin rather than URI was deliberate.
https://github.com/w3c/clipboard-apis/issues/244#issuecomment-5693406824
We will not include the whole URL as source information, instead we strip it down to just the origin, e.g. http://example.org
How can we raise this with Firefox developers to ask for an "opt-out" option?
17-10-2026 11:30 AM
Given that the change was deliberate, it is unlikely that the capability will be reinstated 😞
So I asked about workarounds (I envisioned a userscript) and eventually ended up with a vibe-coded AutoHotkey script, which is working well for me, on Windows anyway.
It requires AutoHotkey v2.0, and a library for UI Automation from Github. I have made a Gist with links, an explanation and a video here: https://gist.github.com/p1usminus/2306426d9198cd499184c793deed8b55
07-11-2026 06:09 AM
I'm using Firefox 159.0.1. When I run the script it can't find an URL.
Using SciTE4AutoHotKey I found that the problem is in FindUrlBar() at the this line "for cb in root.FindElements({Type: "ComboBox"}) {". It is not finding any ComboBox elements and therefore returns fallback, which is 0.
I find it strange that a URL would be in a ComboBox control.
Any suggestions?
07-11-2026 09:33 AM
I figured out why a ComboBox is being used. And for some unknown reason FindUrlBar is working as expected.
Next problem I'm trying to debug in Fix() where Log("abort: clipboard changed while reading address bar") because seq is 2 less than DllCall("GetClipboardSequenceNumber", "UInt") even though I'm only doing one copy.
07-11-2026 09:42 AM
Since I couldn't figure out what is causing seq and DllCall("GetClipboardSequenceNumber", "UInt") to be off by 2, I just subtracted 2 from DllCall("GetClipboardSequenceNumber", "UInt") in the if statement
if DllCall("GetClipboardSequenceNumber", "UInt") != seq {
which appears in Fix() and RewriteClipboard().
Now I get the full URL when pasting in OneNote.