Commit Graph

176 Commits

Author SHA1 Message Date
Christoph Kerschbaumer
304a72b87f Bug 1308889 - Try to explicitly pass aTriggeringPrincipal and aPrincipalToInherit to DoURILoad(). r=bz 2016-11-08 07:23:12 +01:00
Michael Layzell
9c319f00c2 Bug 1303196 - Part 4: Merge mFrameLoader and mOpener into mFrameLoaderOrOpener, r=smaug
MozReview-Commit-ID: DuJRM5KsGhb
2016-10-27 15:53:35 -04:00
Michael Layzell
28edda560a Bug 1303196 - Part 2: Connect the DocGroup and TabGroup objects to nsGlobalWindow and nsDocument, ensuring that Opener is set early enough that it is correct, r=smaug
MozReview-Commit-ID: 3rZfLw3dXkF
2016-10-27 15:53:35 -04:00
Kyle Machulis
d734c1400d Bug 1307694 - Remove reversal of attributes for plugins; r=bsmedberg
MozReview-Commit-ID: 75pULekS9s6
2016-10-20 11:28:02 -07:00
Benjamin Smedberg
cd3eab68a3 Bug 1307445 part B - remove the gecko code that support :moz-type-unsupported and :moz-type-unsupported-platform, r=qdot
MozReview-Commit-ID: Dybppkfrb7E
2016-10-06 13:25:56 -04:00
Boris Zbarsky
65a99191a7 Bug 1308287 part 1. Change [NeedsSubjectPrincipal] to only do the Maybe thing for interfaces that can be exposed to workers. r=baku
The idea is to not make consumers think about whether the principal exists or
not when the caller knows for sure that it does.

The substantive changes are in dom/bindings, nsHTMLDocument::SetDesignMode, and
around the CanUseStorage bits.  Everything else is pretty mechanical.
2016-10-10 21:07:48 -04:00
Andrea Marchesini
47cb021e43 Bug 1306241 - Use NeedsSubjectPrincipal in dom/html/* - part 2, r=ehsan 2016-10-03 10:34:29 +02:00
Olli Pettay
d61a9893cd Bug 1305309, backout Bug 1214805, r=backout 2016-09-27 01:03:24 +03:00
Nicholas Nethercote
8eaacb0d8b Bug 1297300 - Add missing checks to GetSpec() calls in dom/base/. r=bz. 2016-09-08 14:17:58 +10:00
Michael Layzell
f2f13378b5 Bug 1018486 - Part 1: Changes in dom/, r=baku
MozReview-Commit-ID: 4tCUM4KRe81
2016-09-07 10:50:35 -04:00
Olli Pettay
81b705d082 Bug 1214805, allow navigating when afterprint event is dispatched, r=bz 2016-09-03 17:33:30 +03:00
Nicholas Nethercote
62b6b0fce6 Bug 1297961 (part 1) - Introduce nsURI::GetSpecOrDefault(). r=hurley.
This function is an infallible alternative to nsIURI::GetSpec(). It's useful
when it's appropriate to handle a GetSpec() failure with a failure string, e.g.
for log/warning/error messages. It allows code like this:

  nsAutoCString spec;
  uri->GetSpec(spec);
  printf("uri: %s", spec.get());

to be changed to this:

  printf("uri: %s", uri->GetSpecOrDefault().get());

This introduces a slight behavioural change. Previously, if GetSpec() failed,
an empty string would be used here. Now, "[nsIURI::GetSpec failed]" will be
produced instead. In most cases this failure string will make for a clearer
log/warning/error message than the empty string.
* * *
Bug 1297961 (part 1b) - More GetSpecOrDefault() additions. r=hurley.

I will fold this into part 1 before landing.
2016-08-26 16:02:31 +10:00
Michael Layzell
5090889a3e Bug 1293001 - Part 1: Change the BinaryName of nsIFrameLoaderOwner::frameLoader (which overloaded another virtual method) to FrameLoaderXPCOM, r=froydnj
MozReview-Commit-ID: Db3z2DP5qba
2016-08-11 15:49:39 -04:00
Tobias Schneider
0932a20256 Bug 1290749 - Skip plugin content plugin of no URI specified. r=francois 2016-07-26 10:59:41 -07:00
Tobias Schneider
9b8ad2ce49 Bug 1268120 - Make plugin content blocking work on e10s. r=francois 2016-06-17 11:05:42 +01:00
Boris Zbarsky
32ec08aef5 Bug 1275315 part 2. Use the new Realm getters in binding code. r=peterv 2016-07-09 00:19:52 -04:00
Masatoshi Kimura
481bbf7d92 Bug 1282038 - Allow allowfullscreen for rewritten YouTube Flash embeds. r=qdot,jst
MozReview-Commit-ID: I8y0gMA5BxE
2016-06-24 19:12:53 +09:00
Christoph Kerschbaumer
92dd33d382 Bug 1188642 - Use channel->ascynOpen2 in dom/base/nsObjectLoadingContent.cpp r=smaug 2016-06-28 09:37:55 +02:00
Boris Zbarsky
60a32393cc Bug 1003797. Fire error events for <object> per spec. r=qdot 2016-06-23 00:32:23 -04:00
Masatoshi Kimura
bce1f9929c Bug 1258053 - String changes. r=cpeterson 2016-06-22 21:55:14 +09:00
Masatoshi Kimura
0c2c91e2a3 Bug 1258053 - Convert YouTube Flash embed URLs that contain params in the path components. r=kmachulis 2016-06-22 21:55:13 +09:00
Jonathan Watt
9c5b8de022 Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
Patrick McManus
e01f1d0309 Bug 1274376 - more mozilla::net namespaces r=dragana 2016-05-18 22:02:57 -04:00
Boris Zbarsky
a724f65cd6 Bug 1272651. Fix fallback loading of <embed> inside an <object> with no type attribute to actually work reliably. r=qdot 2016-05-20 23:13:17 -04:00
Tobias Schneider
de5c99ac19 Bug 1266889 - Plugin block list blocks SWF network requests, but does not prevent plugin instantiation. r=francois 2016-04-22 16:00:43 -07:00
Kyle Machulis
de4066f5d7 Bug 1263696 - Block embed content loading when ancestor of object element with content; r=bz 2016-05-02 09:54:16 -07:00
Kyle Machulis
317486a94d Backout of 541618e4babd (bug 1263696) due to performance timeline test bustage 2016-04-28 14:48:14 -07:00
Kyle Machulis
494d00e510 Bug 1263696 - Block content loading for embed nodes that are ancestors of objects with data; r=bz 2016-04-28 13:08:12 -07:00
Kyle Huey
a9cf047227 Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
J. Ryan Stinnett
5e7b672687 Bug 1242644 - HTML swapFrameLoaders. r=bz
Adds swapFrameLoaders for HTML frames.  It is also possible to swap frame
loaders between XUL and HTML frames.

MozReview-Commit-ID: 43JeiBuMcOL
2016-03-31 19:47:44 -05:00
Tobias Schneider
169c0f8dea Bug 1237198 - Block SWFs on the content blocking list hosted on the Shavar service. r=francois 2016-03-29 00:37:44 -07:00
Boris Zbarsky
679821ced0 Bug 1257335. Replace some AutoSafeJSContext uses with AutoJSAPI or AutoJSContext uses. r=bholley
In general, using an AutoJSAPI inited with an object is NOT the same as using
AutoSafeJSContext (or AutoJSAPI inited without an object) and then entering the
compartment of the object: the former will report exceptions to the global of
the object as it comes off the stack, while the latter will not.  This only
really matters if we have an object from a window or worker global and hence
might fire error events, or report internal stuff to the web console.

The changes to initing with an object made in this bug are OK for the following
reasons:

1) dom/base/Console.cpp: Always clears its exception before coming off the stack.
2) dom/base/nsDOMClassInfo.cpp: Inits with a non-web global.
3) dom/base/nsFrameMessageManager.cpp: Inits with a non-web global.
4) dom/media/MediaPermissionGonk.cpp: We probably want the caller to notice if
   anything here throws.
5) dom/xbl/nsXBLPrototypeBinding.cpp: Inits with a non-web global.
6) dom/xul/nsXULElement.cpp: Inits with a non-web global.
7) extensions/pref/autoconfig/src/nsJSConfigTriggers.cpp: Inits with a non-web global.
8) ipc/testshell/XPCShellEnvironment.cpp: Inits with a non-web global.
2016-03-18 10:48:38 -04:00
Kyle Machulis
ddb63ffbf1 Bug 1240471 - Possibly remove invalid queries and post console messages on youtube rewrite; r=khuey fb=cpeterson 2016-03-01 14:05:29 -08:00
Aidin Gharibnavaz
9e61252906 Bug 1235830 - Renaming GetInternalNSEvent to WidgetEvent, in nsIDOMEvent r=smaug
MozReview-Commit-ID: Hm8Owq17KXn
2016-02-12 19:10:07 +03:30
Kyle Huey
e95edb30a9 Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Bill McCloskey
77ae7d5636 Bug 1237402 - Allow certain plugins to be loaded in parent process (r=jimm) 2016-01-28 14:52:04 -08:00
Tom Schuster
05bbc0341d Bug 1242214 - Rename JSPropertyDescriptor JS::PropertyDescriptor everywhere else. r=smaug 2016-01-28 11:28:04 +01:00
Kyle Machulis
562b894d0f Bug 1237401 - Add telemetry probe for non-rewritable youtube flash embeds; r=cpeterson, r=vladan 2016-01-25 15:14:58 -08:00
Sylvestre Ledru
1f07806bda Bug 1218816 - Remove useless semicolons. Found by coccinelle. r=Ehsan 2016-01-22 16:58:49 +01:00
Josh Matthews
8f38115b10 Bug 1239463 - Do not assert when notifying an inactive document about changed content from the plugin crash notification. r=bz 2016-01-21 13:39:13 -05:00
David Rajchenbach-Teller
e82056648c Bug 1224374 - Profiler labels for the 25 top chrome hangs;r=BenWa,MarcoZ
Experience shows that we do not have enough profiler labels to make
BHR hang reports meaningful. This patch adds enough labels to let us
exploit hang reports matching the 25 topmost chrome hangs.
2016-01-14 23:03:11 +01:00
Sebastian Hengst
2e241e7e5e Backed out 2 changesets (bug 1224374) for Windows bustage. r=bustage on a CLOSED TREE
Backed out changeset 5f458e6e4997 (bug 1224374)
Backed out changeset 0dc02cb0b604 (bug 1224374)
2016-01-19 21:30:41 +01:00
David Rajchenbach-Teller
b9014bc5d3 Bug 1224374 - Profiler labels for the 25 top chrome hangs;r=BenWa,MarcoZ
Experience shows that we do not have enough profiler labels to make
BHR hang reports meaningful. This patch adds enough labels to let us
exploit hang reports matching the 25 topmost chrome hangs.
2016-01-14 23:03:11 +01:00
Kyle Machulis
e8e8a3cdc8 Bug 1239585 - Remove eSupportSVG from nsObjectLoadingContent capabilities; r=bz 2016-01-15 14:11:54 -08:00
Kyle Machulis
60d644ec21 Bug 1239721 - Remove mRewrittenYoutubeEmbed from nsObjectLoadingContent; r=bz 2016-01-15 14:11:48 -08:00
Kyle Machulis
0210c68c52 Bug 769117 - Rewrite youtube flash embed tags to possibly use HTML5; r=bz r=hsivonen 2016-01-13 16:13:50 -08:00
Kyle Machulis
ec3e9e1ebd Backout of changesets 05eb8219c3e5, 1ecd2a9ffb67 (Bug 769117) for bustage on CLOSED TREE 2016-01-13 12:16:19 -08:00
Kyle Machulis
3c97e4d242 Bug 769117 - Rewrite youtube flash embed tags to possibly use HTML5; r=bz r=hsivonen 2016-01-13 11:45:59 -08:00
Andrea Marchesini
1bd93a52cc Bug 1214148 - patch 1 - propagation from the nested iframe back to the toplevel iframe, r=alwu 2015-12-11 11:17:33 -05:00
Carsten "Tomcat" Book
ff48623ddd Backed out changeset afe3d65b74b6 (bug 1214148) on developers request for causing regressions 2015-12-15 14:45:06 +01:00