fune/toolkit/components/extensions
Rob Wu 8b6f2a74f2 Bug 1826867 - Use NS_GetFinalChannelURI instead of GetURI in SessionHistoryEntry a=dmeehan
When redirects are involved, `DocumentLoadListener::DoOnStartRequest`
may call `ReplaceLoadingSessionHistoryEntryForLoad`, which updates the
history entry with the destination of a redirect. But if the redirection
target is a `moz-extension:`-URL, the URL becomes a jar:file:/file: URL.
This is because SessionHistoryInfo (in SessionHistoryEntry.cpp) looks up
the URL with `nsIChannel::GetURI`. For `moz-extension:`-URLs, the
underlying channel has a `jar:file:` or `file:` URL, as provided by
ExtensionProtocolHandler (via SubstitutingProtocolHandler::NewChannel).
For details, see https://bugzilla.mozilla.org/show_bug.cgi?id=1826867#c7

To fix this, this patch switches to `NS_GetFinalChannelURI` instead. For
more history on this type of bug and SessionHistoryInfo, see
https://bugzilla.mozilla.org/show_bug.cgi?id=1826867#c9

Original Revision: https://phabricator.services.mozilla.com/D234333

Differential Revision: https://phabricator.services.mozilla.com/D236901
2025-02-08 13:31:59 +00:00
..
child Bug 1905505 - Remove unnecessary resetIdleOnEvent from child modules a=dmeehan 2024-07-20 12:21:06 +00:00
docs Bug 1885449 - Move GV code shared between Android and iOS to a shared directory. r=geckoview-reviewers,frontend-codestyle-reviewers,nalexander,owlish 2024-05-16 22:08:51 +00:00
parent Bug 1932263 - Support persistent listeners in notifications API a=RyanVM 2025-01-15 16:02:38 +00:00
schemas Bug 1939087 - Truncate long name and log warning a=dmeehan 2025-02-06 14:16:44 +00:00
storage
test Bug 1826867 - Use NS_GetFinalChannelURI instead of GetURI in SessionHistoryEntry a=dmeehan 2025-02-08 13:31:59 +00:00
types Bug 1894532 - Add Glean and GleanPings globals to extension API sandboxes.r=chutten,extension-reviewers,robwu 2024-06-05 19:25:11 +00:00
webidl-api Bug 1885449 - Move GV code shared between Android and iOS to a shared directory. r=geckoview-reviewers,frontend-codestyle-reviewers,nalexander,owlish 2024-05-16 22:08:51 +00:00
webrequest Bug 1910243 - Add test coverage for ChannelWrapper + fix minor issues a=dmeehan 2024-08-07 00:51:45 +00:00
.eslintrc.js
components.conf
ConduitsChild.sys.mjs
ConduitsParent.sys.mjs
DocumentObserver.h
dummy.xhtml
ext-browser-content.js
ext-toolkit.json
Extension.sys.mjs Bug 1939087 - Truncate long name and log warning a=dmeehan 2025-02-06 14:16:44 +00:00
ExtensionActions.sys.mjs
ExtensionActivityLog.sys.mjs
ExtensionChild.sys.mjs
ExtensionChildDevToolsUtils.sys.mjs
ExtensionCommon.sys.mjs Bug 1905153 - Support loadModule after asyncLoadModule a=dmeehan 2024-07-15 18:31:51 +00:00
ExtensionContent.sys.mjs Bug 1900410 - Redact filename from MAIN world scripts a=dmeehan 2024-06-27 12:35:54 +00:00
ExtensionDNR.sys.mjs Bug 1939981 - Avoid skipping domains in DNR requestDomains/initiatorDomains. a=RyanVM 2025-01-11 02:17:54 +00:00
ExtensionDNRLimits.sys.mjs Bug 1896628 - [DNR] Enforce a limit to the maximum number of static rules disabled individually. r=robwu 2024-05-29 15:59:49 +00:00
ExtensionDNRStore.sys.mjs Bug 1921353 - Ensure up-to-date flags in DNR cache a=dmeehan 2024-11-04 15:32:51 +00:00
ExtensionMenus.sys.mjs Bug 1771328 - Persist WebExtensions menus across sessions for extensions with a non-persistent background context. r=robwu 2024-05-23 09:21:45 +00:00
ExtensionPageChild.sys.mjs
ExtensionParent.sys.mjs Bug 1771328 - Persist WebExtensions menus across sessions for extensions with a non-persistent background context. r=robwu 2024-05-23 09:21:45 +00:00
ExtensionPermissionMessages.sys.mjs
ExtensionPermissions.sys.mjs Bug 1851083 - Do not show the attention badge for mv3 extensions requiring the activeTab permission. r=robwu, a=dmeehan 2024-07-01 11:40:34 +00:00
ExtensionPolicyService.cpp
ExtensionPolicyService.h
ExtensionPreferencesManager.sys.mjs
ExtensionProcessScript.sys.mjs
extensionProcessScriptLoader.js
extensions-toolkit.manifest
ExtensionsChild.cpp
ExtensionsChild.h
ExtensionScriptingStore.sys.mjs Bug 1736575 - Expose world in scripting.RegisteredContentScript r=willdurand 2024-06-03 20:32:11 +00:00
ExtensionSettingsStore.sys.mjs
ExtensionShortcuts.sys.mjs
ExtensionsParent.cpp
ExtensionsParent.h
ExtensionStorage.sys.mjs
ExtensionStorageIDB.sys.mjs
ExtensionStorageSync.sys.mjs
ExtensionStorageSyncKinto.sys.mjs
ExtensionTelemetry.sys.mjs
ExtensionTestCommon.sys.mjs
ExtensionUtils.sys.mjs
ExtensionWorkerChild.sys.mjs
ExtensionXPCShellUtils.sys.mjs
extIWebNavigation.idl
FindContent.sys.mjs
jar.mn
MatchGlob.h
MatchPattern.cpp Bug 1897759 - Don't run content scripts at view-source r=rpl 2024-05-23 11:00:32 +00:00
MatchPattern.h Bug 1411641 - Support content scripts on sandboxed http(s)/file:-URLs r=rpl 2024-05-13 17:06:49 +00:00
MatchURLFilters.sys.mjs
MessageChannel.sys.mjs
MessageManagerProxy.sys.mjs
metrics.yaml Bug 1844044 - Keep event page alive while waiting for permissions.request() r=robwu 2024-05-30 20:39:27 +00:00
moz.build Bug 1771328 - Persist WebExtensions menus across sessions for extensions with a non-persistent background context. r=robwu 2024-05-23 09:21:45 +00:00
mozIExtensionAPIRequestHandling.idl
mozIExtensionProcessScript.idl
NativeManifests.sys.mjs
NativeMessaging.sys.mjs
PExtensions.ipdl
ProxyChannelFilter.sys.mjs
Schemas.sys.mjs Bug 1892669 - Allow multiple function and event definitions using the same name for different manifest version targets. r=robwu,rpl 2024-05-24 15:47:56 +00:00
tsconfig.json
WebExtensionContentScript.h Bug 1901894 - Stop scheduling content script injection for initial about:blank of top-level opaque origins a=RyanVM 2024-06-18 20:40:18 +00:00
WebExtensionPolicy.cpp Bug 1901894 - Stop scheduling content script injection for initial about:blank of top-level opaque origins a=RyanVM 2024-06-18 20:40:18 +00:00
WebExtensionPolicy.h
WebNavigation.sys.mjs
WebNavigationFrames.sys.mjs