gecko-dev/docshell/base
Andreas Farre 4b493b6a30 Bug 1595491 - Part 1: Make <embed> and <object> behave more like <iframe>. r=smaug,emilio
By making image loading in <embed> and <object> behave more like when
an <iframe> loads an image, we can make sure that the synthetic
document generated is process switched if the image is cross
origin. This is done by making image loading in nsObjectLoadingContent
follow the document loading path.

We also make sure that we pass the image size back to the embedder
element to not get stuck with the intrinsic size.

To avoid named targeting being able to target these synthetic
documents, as well as showing up in `Window.frames` and being counted
in `Window.length`, we keep a filtered list of non-synthetic browsing
contexts for that use-case.

This feature is controlled by two prefs:

* browser.opaqueResponseBlocking.syntheticBrowsingContext

  This triggers the creation of synthetic documents for images loaded
  in <object> or embed.

* browser.opaqueResponseBlocking.syntheticBrowsingContext.filter

  This turns on the filtering of synthetic browsing contexts in named
  targeting, `Window.length` and `Window.frames`.

Differential Revision: https://phabricator.services.mozilla.com/D148117
2022-08-16 16:42:58 +00:00
..
crashtests Bug 1753136 - Explicitly escape and unescape precursor origins in null principal queries, r=valentin 2022-02-08 15:18:21 +00:00
timeline Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato 2022-08-03 16:39:41 +00:00
BaseHistory.cpp Bug 1760674. r=mak 2022-03-29 12:15:52 +00:00
BaseHistory.h
BrowsingContext.cpp Bug 1595491 - Part 1: Make <embed> and <object> behave more like <iframe>. r=smaug,emilio 2022-08-16 16:42:58 +00:00
BrowsingContext.h Bug 1595491 - Part 1: Make <embed> and <object> behave more like <iframe>. r=smaug,emilio 2022-08-16 16:42:58 +00:00
BrowsingContextGroup.cpp Bug 1780614 - Track potential crossoriginisolated status on BCG, r=smaug,kmag 2022-08-03 15:58:27 +00:00
BrowsingContextGroup.h Bug 1780614 - Track potential crossoriginisolated status on BCG, r=smaug,kmag 2022-08-03 15:58:27 +00:00
BrowsingContextWebProgress.cpp Bug 1767838 - Fix incorrect log message in BrowsingContextWebProgress, r=farre 2022-05-04 22:12:38 +00:00
BrowsingContextWebProgress.h Bug 1768189 - Part 1: Apply modernize-concat-nested-namespaces to docshell/base/BrowsingContextWebProgress.h ... r=andi 2022-05-09 20:41:03 +00:00
CanonicalBrowsingContext.cpp Bug 1781936 - Propagate GeckoView settings on BrowsingContext replacement. r=nika 2022-07-29 00:30:24 +00:00
CanonicalBrowsingContext.h Bug 774398 - Hack to make print and viewport media query listeners fire when printing. r=geckoview-reviewers,owlish,dholbert 2022-08-11 23:11:37 +00:00
ChildProcessChannelListener.cpp
ChildProcessChannelListener.h Bug 1768189 - Part 1: Apply modernize-concat-nested-namespaces to docshell/base/BrowsingContextWebProgress.h ... r=andi 2022-05-09 20:41:03 +00:00
IHistory.h Bug 1776609: Record source and triggeringPlaceId for sponsored tile on newtab. r=mak,geckoview-reviewers,m_kato 2022-08-01 00:27:50 +00:00
LoadContext.cpp Bug 1769290 - Part 12: Apply mozilla-js-handle-rooted-typedef against docshell r=andi 2022-07-04 20:57:18 +00:00
LoadContext.h
SerializedLoadContext.cpp
SerializedLoadContext.h Bug 1754037 - Part 3c: Automatically update all ParamTraits implementations, r=ipc-reviewers,media-playback-reviewers,bryce,mccr8 2022-03-04 15:39:41 +00:00
SyncedContext.h Bug 1754037 - Part 3c: Automatically update all ParamTraits implementations, r=ipc-reviewers,media-playback-reviewers,bryce,mccr8 2022-03-04 15:39:41 +00:00
SyncedContextInlines.h Bug 1766561 - Adapt formatting to the difference in ProcessId type across platforms. r=nika,necko-reviewers,kershaw 2022-05-03 20:49:04 +00:00
URIFixup.jsm Bug 1744243: Fallback to nsIHandlerService if don't trust nsIExternalProtocolService. r=mak 2022-08-10 22:38:45 +00:00
WindowContext.cpp Bug 1595491 - Part 1: Make <embed> and <object> behave more like <iframe>. r=smaug,emilio 2022-08-16 16:42:58 +00:00
WindowContext.h Bug 1595491 - Part 1: Make <embed> and <object> behave more like <iframe>. r=smaug,emilio 2022-08-16 16:42:58 +00:00
moz.build Bug 1746115 - Perform data URI blocking from DocumentLoadListener, r=smaug 2022-02-11 16:34:24 +00:00
nsAboutRedirector.cpp Bug 1514936, part 2 - Drop the outer arguments from static components. r=xpcom-reviewers,nika 2022-05-17 20:24:19 +00:00
nsAboutRedirector.h Bug 1514936, part 2 - Drop the outer arguments from static components. r=xpcom-reviewers,nika 2022-05-17 20:24:19 +00:00
nsCTooltipTextProvider.h
nsDSURIContentListener.cpp Bug 1746115 - Perform data URI blocking from DocumentLoadListener, r=smaug 2022-02-11 16:34:24 +00:00
nsDSURIContentListener.h Bug 1728760 - require all nsITimerCallback native implementations to also implement nsINamed, r=smaug. 2021-09-07 08:01:18 +00:00
nsDocShell.cpp Bug 1784387 - Crash in [@ nsDocShell::Reload] in ContentChild::RecvReload, r=mccr8 2022-08-15 15:50:27 +00:00
nsDocShell.h Bug 1781936 - Propagate GeckoView settings on BrowsingContext replacement. r=nika 2022-07-29 00:30:24 +00:00
nsDocShellEditorData.cpp
nsDocShellEditorData.h
nsDocShellEnumerator.cpp
nsDocShellEnumerator.h
nsDocShellLoadState.cpp Bug 1762374 - Part 1: Add a Histogram to count amount of query parameters stripped per navigation. r=anti-tracking-reviewers,necko-reviewers,dragana,timhuang 2022-05-24 18:57:17 +00:00
nsDocShellLoadState.h Bug 1729662 - UNED exam page flickers / reloads infinitely. r=smaug 2021-10-04 15:01:30 +00:00
nsDocShellLoadTypes.h
nsDocShellTelemetryUtils.cpp Bug 1737032 - Removed traces of "remote XUL". r=Gijs,fluent-reviewers 2021-10-25 11:00:47 +00:00
nsDocShellTelemetryUtils.h
nsDocShellTreeOwner.cpp Bug 1773813 - Incorporate OS zoom factor in window sizing calculations. r=tnikkel 2022-06-14 15:01:52 +00:00
nsDocShellTreeOwner.h Bug 1756323 - Move ChromeTooltipListener out of a header file. r=smaug 2022-02-21 09:17:17 +00:00
nsIContentViewer.idl Bug 1432651 p1 - Pass RemotePrintJobChild through to the places where it's needed. r=emilio 2022-05-16 08:38:01 +00:00
nsIContentViewerEdit.idl
nsIDocShell.idl Bug 1746383 - Set URLBar pageProxyState to invalid for onLocationChange triggered by SessionStore. r=nika,dao 2022-04-12 14:41:06 +00:00
nsIDocShellTreeItem.idl
nsIDocShellTreeOwner.idl Bug 1769619 - Introduce nsIDocShellTreeOwner::primaryContentBrowsingContext, r=smaug 2022-05-17 22:11:33 +00:00
nsIDocumentLoaderFactory.idl
nsILoadContext.idl
nsILoadURIDelegate.idl
nsIPrivacyTransitionObserver.idl
nsIReflowObserver.idl
nsIRefreshURI.idl Bug 1744397 - Simplify refresh code: pass around delay as an unsigned int. r=smaug 2021-12-16 22:27:08 +00:00
nsIScrollObserver.h
nsITooltipListener.idl Bug 1756323 - Fix tooltip coordinates in presence of full zoom. r=jfkthame 2022-02-21 17:30:08 +00:00
nsITooltipTextProvider.idl
nsIURIFixup.idl Bug 1737043 - add a suggestion for 'example.com' in the network error page for 'example', r=mak,eemeli,desktop-theme-reviewers,dao 2022-07-19 03:27:18 +00:00
nsIWebNavigation.idl
nsIWebNavigationInfo.idl Bug 1729843 - Remove vestigial plugin-related code from nsWebNavigationInfo. r=smaug 2021-09-09 15:03:05 +00:00
nsIWebPageDescriptor.idl
nsPingListener.cpp
nsPingListener.h
nsRefreshTimer.cpp Bug 1744397 - Simplify refresh code: remove aMetaRefresh argument. r=smaug 2021-12-16 22:27:07 +00:00
nsRefreshTimer.h Bug 1744397 - Simplify refresh code: remove aMetaRefresh argument. r=smaug 2021-12-16 22:27:07 +00:00
nsWebNavigationInfo.cpp Bug 1729843 - Remove vestigial plugin-related code from nsWebNavigationInfo. r=smaug 2021-09-09 15:03:05 +00:00
nsWebNavigationInfo.h Bug 1729843 - Remove vestigial plugin-related code from nsWebNavigationInfo. r=smaug 2021-09-09 15:03:05 +00:00