gecko-dev/dom/plugins/base
Kris Maglione 5fdcb5a5d2 Bug 1407056: Part 1 - Provide more consistent principal/origin URL to content policies. r=bz,ckerschb
We're currently fairly vague and inconsistent about the values we provide to
content policy implementations for requestOrigin and requestPrincipal. In some
cases they're the triggering principal, sometimes the loading principal,
sometimes the channel principal.

Our existing content policy implementations which require or expect a loading
principal currently retrieve it from the context node. Since no current
callers require the principal to be the loading principal, and some already
expect it to be the triggering principal (which there's currently no other way
to retrieve), I chose to pass the triggering principal whenever possible, but
use the loading principal to determine the origin URL.

As a follow-up, I'd like to change the nsIContentPolicy interface to
explicitly receive loading and triggering principals, or possibly just
LoadInfo instances, rather than poorly-defined request
origin/principal/context args. But since that may cause trouble for
comm-central, I'd rather not do it as part of this bug.

MozReview-Commit-ID: LqD9GxdzMte

--HG--
extra : rebase_source : 41ce439912ae7b895e0a3b0e660fa6ba571eb50f
2017-10-12 15:43:55 -07:00
..
moz.build Bug 1381916 - Remove support for plugins on Android r=jchen,bsmedberg 2017-07-31 12:25:16 -05:00
npapi.h Bug 1343975: Get rid of all dos/windows linebreaks in Mozilla C++ code. r=ehsan 2017-03-02 13:08:29 -08:00
npfunctions.h Bug 1381916 - Remove support for plugins on Android r=jchen,bsmedberg 2017-07-31 12:25:16 -05:00
npruntime.h
nptypes.h
nsIHTTPHeaderListener.idl
nsIPluginDocument.idl
nsIPluginHost.idl
nsIPluginInputStream.idl
nsIPluginInstanceOwner.idl Bug 1279218 - Additional applet tag logic removal; r=bz 2017-07-28 16:44:39 -07:00
nsIPluginTag.idl Bug 558184 - Part 8 - Load js plugins in a separate process. r=billm. 2017-05-29 12:38:46 +02:00
nsJSNPRuntime.cpp Bug 1396613 - Make proxy objects override handler's objectMoved method rather than using class hook r=sfink r=mccr8 r=peterv 2017-09-19 12:31:30 +01:00
nsJSNPRuntime.h Bug 1390074 - Remove unused nsJSObjWrapper::HasOwnProperty method. r=njn 2017-08-15 16:14:21 +02:00
nsNPAPIPlugin.cpp Bug 1357575: Remove unused include prclist.h r=erahm 2017-10-04 16:42:36 -07:00
nsNPAPIPlugin.h Bug 1352573 (part 2) - Remove NPN_PluginThreadAsyncCall() and related machinery. r=bsmedberg. 2017-08-03 22:12:51 +10:00
nsNPAPIPluginInstance.cpp Bug 1406819 - Remove various bits of dead code from dom/. r=baku 2017-10-11 10:09:13 +01:00
nsNPAPIPluginInstance.h Bug 1390428 (part 6) - Remove nsXPIDLCString class members. r=erahm. 2017-08-17 14:17:27 +10:00
nsNPAPIPluginStreamListener.cpp Bug 1352567 - Remove NPAPI seekable and file streams from the dom/plugins/base code, r=jimm 2017-10-02 14:54:22 -07:00
nsNPAPIPluginStreamListener.h Bug 1352567 - Remove NPAPI seekable and file streams from the dom/plugins/base code, r=jimm 2017-10-02 14:54:22 -07:00
nsPluginDirServiceProvider.cpp
nsPluginDirServiceProvider.h Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
nsPluginHost.cpp Bug 1405312 - Remove dead code from nsPluginHost; r=jimm 2017-10-03 09:53:08 -04:00
nsPluginHost.h Bug 1405312 - Remove dead code from nsPluginHost; r=jimm 2017-10-03 09:53:08 -04:00
nsPluginInstanceOwner.cpp Bug 1402102 - Remove nsIDOMHTMLObjectElement; r=bz 2017-09-22 17:05:12 -07:00
nsPluginInstanceOwner.h Bug 1381916 - Remove support for plugins on Android r=jchen,bsmedberg 2017-07-31 12:25:16 -05:00
nsPluginLogging.h Bug 1353143 - Part 2: Remove usage of PR_LOGGING. r=froydnj 2017-04-04 14:36:16 -07:00
nsPluginManifestLineReader.h Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
nsPluginModule.cpp
nsPluginNativeWindow.cpp Bug 1338172 part E - make all the PPluginWidget stuff Windows-only. Rip out the GTK-specific native widget support from widget/gtk/nsWindow and elsewhere, r=jimm 2017-02-09 11:53:50 -05:00
nsPluginNativeWindow.h Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
nsPluginNativeWindowWin.cpp Bug 1350940 - Label Runnables in dom/plugins; r=bsmedberg 2017-03-27 13:35:25 -07:00
nspluginroot.idl
nsPluginsCID.h
nsPluginsDir.h
nsPluginsDirDarwin.cpp Bug 1380078: Fix truncation of buffer size in CFStringRefToUTF8Buffer(); r=spohl 2017-08-17 06:26:06 +01:00
nsPluginsDirUnix.cpp Bug 1381916 - Remove support for plugins on Android r=jchen,bsmedberg 2017-07-31 12:25:16 -05:00
nsPluginsDirUtils.h Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
nsPluginsDirWin.cpp Bug 1381727 (part 2) - Remove SmprintfFree(). r=glandium. 2017-07-25 09:09:25 +10:00
nsPluginStreamListenerPeer.cpp Bug 1407056: Part 1 - Provide more consistent principal/origin URL to content policies. r=bz,ckerschb 2017-10-12 15:43:55 -07:00
nsPluginStreamListenerPeer.h Bug 1352567 - Remove NPAPI seekable and file streams from the dom/plugins/base code, r=jimm 2017-10-02 14:54:22 -07:00
nsPluginTags.cpp Bug 1381916 - Remove support for plugins on Android r=jchen,bsmedberg 2017-07-31 12:25:16 -05:00
nsPluginTags.h Bug 1279218 - Remove Java Test Plugin and rest of Java references; r=bsmedberg 2017-07-17 16:45:48 -07:00
PluginPRLibrary.cpp Bug 1393487 Silence unused variable warning because we do it on purpose in PluginPRLibrary.cpp r=jimm 2017-08-25 16:49:12 -05:00
PluginPRLibrary.h Bug 1382099 - Remove MOZ_WIDGET_GONK from dom/{base,ipc,plugins}. r=mccr8. 2017-07-21 10:52:30 +10:00