Commit Graph

4514 Commits

Author SHA1 Message Date
Iris Hsiao
a7c8429fc4 Backed out changeset d7e39be85498 (bug 1246540) for Mochitest failures 2016-07-27 11:15:52 +08:00
Kate McKinley
567ebcf321 Bug 1246540 - HSTS Priming Proof of Concept. r=ckerschb, r=mayhemer, r=jld, r=smaug, r=dkeeler, r=jmaher, p=ally
HSTS priming changes the order of mixed-content blocking and HSTS
upgrades, and adds a priming request to check if a mixed-content load is
accesible over HTTPS and the server supports upgrading via the
Strict-Transport-Security header.

Every call site that uses AsyncOpen2 passes through the mixed-content
blocker, and has a LoadInfo. If the mixed-content blocker marks the load as
needing HSTS priming, nsHttpChannel will build and send an HSTS priming
request on the same URI with the scheme upgraded to HTTPS. If the server
allows the upgrade, then channel performs an internal redirect to the HTTPS URI,
otherwise use the result of mixed-content blocker to allow or block the
load.

nsISiteSecurityService adds an optional boolean out parameter to
determine if the HSTS state is already cached for negative assertions.
If the host has been probed within the previous 24 hours, no HSTS
priming check will be sent.
2016-07-26 13:03:00 -04:00
Christoph Kerschbaumer
670eb81ce7 Bug 1181370 - Test that triggeringPrincipal(owner) and referrer are identical for (sub) iframe navigations. r=bz 2016-07-26 12:50:40 +02:00
Christoph Kerschbaumer
d872b01ebc Bug 1181370: Update CheckURL to set the incumbent document's principal as the triggeringPrincipal. r=bz 2016-07-26 12:46:01 +02:00
Carsten "Tomcat" Book
25aa8617fc Backed out changeset 1825b8fa636a (bug 1246540) for bustage
--HG--
extra : rebase_source : 45defacae713b2c2f75813fea6f2f289ebc481cd
2016-07-26 12:52:15 +02:00
Kate McKinley
01cbd73591 Bug 1246540 - HSTS Priming Proof of Concept. r=ckerschb,r=mayhemer,r=jld,r=smaug,r=dkeeler,r=jmaher,p=ally
HSTS priming changes the order of mixed-content blocking and HSTS
upgrades, and adds a priming request to check if a mixed-content load is
accesible over HTTPS and the server supports upgrading via the
Strict-Transport-Security header.

Every call site that uses AsyncOpen2 passes through the mixed-content
blocker, and has a LoadInfo. If the mixed-content blocker marks the load as
needing HSTS priming, nsHttpChannel will build and send an HSTS priming
request on the same URI with the scheme upgraded to HTTPS. If the server
allows the upgrade, then channel performs an internal redirect to the HTTPS URI,
otherwise use the result of mixed-content blocker to allow or block the
load.

nsISiteSecurityService adds an optional boolean out parameter to
determine if the HSTS state is already cached for negative assertions.
If the host has been probed within the previous 24 hours, no HSTS
priming check will be sent.

(r=ckerschb,r=mayhemer,r=jld,r=smaug,r=dkeeler,r=jmaher,p=ally)
2016-07-25 12:37:00 +02:00
Mike Conley
276c6f9b96 Bug 1261842 - Add methods to nsIDocShellTreeOwner for sizing the primary content. r=smaug
MozReview-Commit-ID: CqiRTVd444n

--HG--
extra : rebase_source : 629e52028e556298145597d6efff02b7973727c4
extra : source : 711951be3db684d594704ddf4df44fffcc514794
2016-07-14 16:31:41 -04:00
Tom Tromey
5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Till Schneidereit
f8bc4fae19 Bug 911216 - Part 30: Enable SpiderMonkey Promise implementation. r=bz,efaust,bholley,Paolo,tromey,shu
Also contains folded version of the following patches that have to land at the same time with enabling the new implementation (or be backed out at the same time, if it comes to that):

Add Promise checks to test_xrayToJS.xul. r=bholley
Change Promise debugger hook tests to use Promise ctor instead of makeFakePromise. r=shu
Change DOM interface tests to assume Promise is an ES builtin, not a DOM one. r=bz
Remove some PromiseDebugging references. r=bz
Adapt promise rejections test to new xray-unwrapping error. r=bz
Fix expectations in browser_timelineMarkers tests. r=tromey
2016-07-21 12:06:30 +02:00
Chris Peterson
b175c9fdd5 Bug 1277106 - Part 2: Expand MOZ_UTF16() strings to u"" string literals. r=Waldo 2016-07-20 22:03:25 -07:00
Carsten "Tomcat" Book
d8b9227dbe Backed out 25 changesets (bug 1261842, bug 1278985) breaking firefox-ui tests
Backed out changeset bb6c6889b802 (bug 1261842)
Backed out changeset c14ccfac7b4b (bug 1261842)
Backed out changeset d6ffc9db5346 (bug 1261842)
Backed out changeset 2a1acfd17baf (bug 1261842)
Backed out changeset 968e7b3b73fb (bug 1261842)
Backed out changeset 8d708922e47a (bug 1261842)
Backed out changeset 0a08398b5087 (bug 1261842)
Backed out changeset b2e910bb1d72 (bug 1261842)
Backed out changeset f6062f113911 (bug 1261842)
Backed out changeset 07b259eb7121 (bug 1261842)
Backed out changeset 970cbbb3a658 (bug 1261842)
Backed out changeset b6f7395d2bbf (bug 1261842)
Backed out changeset 20eb3987a721 (bug 1261842)
Backed out changeset 6eaa642a93e1 (bug 1261842)
Backed out changeset 855931929739 (bug 1261842)
Backed out changeset 1240345f5624 (bug 1261842)
Backed out changeset ce46ebf231c1 (bug 1261842)
Backed out changeset 8d34b61fbfb3 (bug 1261842)
Backed out changeset 9d8a382c5b1d (bug 1261842)
Backed out changeset e2472a4cc209 (bug 1261842)
Backed out changeset e91913cd64b8 (bug 1261842)
Backed out changeset 4cf843a05a68 (bug 1261842)
Backed out changeset cbdc0deb92bd (bug 1261842)
Backed out changeset a94e6a85c931 (bug 1261842)
Backed out changeset 3b5b92f04ea5 (bug 1278985)
2016-07-19 09:12:58 +02:00
Mike Conley
92e4a54e9b Bug 1261842 - Add methods to nsIDocShellTreeOwner for sizing the primary content. r=smaug
MozReview-Commit-ID: CqiRTVd444n

--HG--
extra : rebase_source : 87322da2ea764cf06885f53a083dfb4f7bcb7c9a
extra : source : 711951be3db684d594704ddf4df44fffcc514794
2016-07-14 16:31:41 -04:00
Carsten "Tomcat" Book
0b2b46fcdb Merge mozilla-central to mozilla-inbound 2016-07-18 17:10:52 +02:00
Carsten "Tomcat" Book
ca457776f8 merge mozilla-inbound to mozilla-central a=merge 2016-07-18 17:07:59 +02:00
Kartikaya Gupta
eb68bbaaa8 Bug 970346 - Add a DocShell attribute to override the default touch event options to a tab. r=bz
MozReview-Commit-ID: 4BdhwQRBavd
2016-07-18 10:26:38 -04:00
Carsten "Tomcat" Book
779d97cbaf Backed out changeset a80fdfc128b0 (bug 911216) for high crash-rate on developers - RyanVM request 2016-07-18 16:14:59 +02:00
Till Schneidereit
3a9eed06fe Bug 911216 - Part 30: Enable SpiderMonkey Promise implementation. r=bz,efaust,bholley,Paolo,tromey,shu
Also contains folded version of the following patches that have to land at the same time with enabling the new implementation (or be backed out at the same time, if it comes to that):

Add Promise checks to test_xrayToJS.xul. r=bholley
Change Promise debugger hook tests to use Promise ctor instead of makeFakePromise. r=shu
Change DOM interface tests to assume Promise is an ES builtin, not a DOM one. r=bz
Remove some PromiseDebugging references. r=bz
Adapt promise rejections test to new xray-unwrapping error. r=bz
Fix expectations in browser_timelineMarkers tests. r=tromey
2016-07-16 15:05:12 +02:00
Nicholas Nethercote
2ebfc5116b Bug 1197973 - Use MOZ_MUST_USE in AutoJSAPI. r=bz. 2016-07-14 13:18:11 +10:00
Xidorn Quan
63da0d4ab2 Bug 1286719 - Turn bool flags in nsDocShell into bit fields. r=bz
Two bools are not converted because they are used with AutoRestore.

MozReview-Commit-ID: AjU61eiMtlQ

--HG--
extra : rebase_source : d1706adc6f14a1a93d1461dd22df0a95043fcca4
2016-07-14 10:47:39 +10:00
Gijs Kruitbosch
072a8b1705 Bug 1273936 - make about:license content-linkable again, r=gijs
MozReview-Commit-ID: HZUrCR1MPHH
2016-05-19 19:27:32 +01:00
Valentin Gosu
ef5a976694 Bug 1275746 - Fix tests that assume a HTTP url without a hostname is valid r=jrgm,MattN,jdm,gijs,smaug
MozReview-Commit-ID: DzRenakrcAG
2016-07-13 15:19:34 +03:00
Yoshi Huang
e24cc195d9 Bug 1274893 - remove -forbid- list from SafeBrowsing. r=francois 2016-07-11 16:11:32 +08:00
Xidorn Quan
a90f7b0ea8 Bug 1283526 part 2 - Remove fullscreen sandbox flag. r=smaug
MozReview-Commit-ID: 5qH4gZxvNQz

--HG--
extra : rebase_source : fdc1fea2996b259a65c3068cd10fffccf6c5ebdb
2016-07-05 09:46:55 +10:00
Xidorn Quan
dc193d9f49 Bug 1283526 part 1 - Revert behavior of allowfullscreen attribute for non-sandboxed iframe. r=smaug
MozReview-Commit-ID: BayA4tQBsfC

--HG--
extra : rebase_source : 17818546cd0c1ec971412346d6e32d537442dd26
2016-07-04 10:19:35 +10:00
Masatoshi Kimura
e4ae8f8bff Bug 1282038 - Allow allowfullscreen for rewritten YouTube Flash embeds. r=qdot,jst
MozReview-Commit-ID: I8y0gMA5BxE

--HG--
rename : dom/base/test/test_youtube_flash_embed.html => dom/base/test/file_youtube_flash_embed.html
2016-06-24 19:12:53 +09:00
Carsten "Tomcat" Book
c1cb5a12bd Backed out changeset 00312b136937 (bug 968273) for causing regressions 2016-06-28 10:03:25 +02:00
Nathan Froyd
150bcb573b Bug 1278925 - micro-optimize nsCOMArray appending with already_AddRefed AppendElement; r=erahm
In all of the places touched by this patch, the smart pointer we're
appending is about to become unused, so simply .forget()'ing its
reference into the appropriate nsCOMArray works just fine.
2016-06-20 18:38:10 -04:00
Xidorn Quan
0c0d683ac3 Bug 1279613 - Apply fullscreen enabled flag to about:blank as well. r=smaug
MozReview-Commit-ID: JL3ZIdXpLiX

--HG--
extra : source : 10b1a71568775ba904a916c2cce603337367c582
2016-06-20 07:16:00 +10:00
Andrea Marchesini
dd368c9569 Bug 1279194 - Get rid of nsDOMPerformanceNavigationType, r=smaug 2016-06-10 16:29:46 +02:00
Jonathan Watt
b15368cfcb Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
James Andreou
9c2978f1c0 Bug 1278664 - Chrome docshells can't have private browsing OriginAttribute. r=smaug 2016-06-09 07:48:00 +02:00
Andrea Marchesini
1264ad2da5 Bug 1278845 - Move PerformanceNavigation to separate files, r=smaug 2016-06-09 12:44:54 +02:00
Bob Owen
e93ec93a47 Bug 1277475 Part 3: Ensure marquee attribute event handlers don't run when sandboxed scripts flag is set on its owning Document. r=bz
MozReview-Commit-ID: 4vWafBniv4R
2016-06-09 11:22:23 +01:00
Andrea Marchesini
dd6cbdac21 Bug 1271516 - Introducing nsIWebNavigation.setOriginAttributesBeforeLoading, r=smaug 2016-06-07 19:59:22 +02:00
James Andreou
14c6b15018 Bug 1277357 - Remove nsDocShell:SetUsePrivateBrowsing cpp consumers and some JS consumers r=jdm 2016-06-06 07:42:00 +02:00
Phil Ringnalda
035f8773be Back out 32d16086e85e (bug 1271516) for frequent ChromeUtils::IsOriginAttributesEqual assertin failures
CLOSED TREE
2016-06-06 21:07:42 -07:00
Andrea Marchesini
943c6e667c Bug 1271516 - Introducing nsIWebNavigation.setOriginAttributesBeforeLoading, r=smaug 2016-06-07 00:47:13 +02:00
Dragana Damjanovic
87fd6ae3a9 Bug 968273 - On reload load from the original uri, so that all redirects are reloader.r=mayhemer 2016-06-01 11:57:52 +02:00
Carsten "Tomcat" Book
71eb3110f9 merge mozilla-inbound to mozilla-central a=merge 2016-06-03 12:00:06 +02:00
dimi
8d44df2c72 Bug 1258033 - Part 1: Add IsTrackingProtectionOn for nsILoadContext. r=smaug
MozReview-Commit-ID: 2eQzO6KDLyX

--HG--
extra : rebase_source : 1f5c1c7b250336ff4ecf1e5b3949a532b7bb9144
2016-06-02 10:12:39 +08:00
James Andreou
1d32e86b9c Bug 1269361 - Add mPrivateBrowsingId to OriginAttributes r=ehsan,jdm 2016-06-02 17:03:11 -04:00
Mike Conley
0c3578df60 Bug 1276738 - Tag a bunch of tests that exercise opening windows with openwindow. r=me
There are a series of tests strewn about the tree that seem to exercise window
opening in one form or another, so I thought I'd put them under a tag.

MozReview-Commit-ID: 74JwLUTzaMU

--HG--
extra : rebase_source : 87439bacd9643ab63d015f58f44af2f8a74675a0
extra : source : 9d903a6a12aa7182252ec3e220c89b569c14e11b
2016-04-29 14:29:03 -04:00
Carsten "Tomcat" Book
a91653581d Backed out changeset 9d903a6a12aa (bug 1276738) for test failures in test_blank_named_window.html on a CLOSED TREE
--HG--
extra : rebase_source : cd1218144d092a62764b014cffb6b0a92b5f9141
2016-06-02 08:13:16 +02:00
Mike Conley
0d5fa55d26 Bug 1276738 - Tag a bunch of tests that exercise opening windows with openwindow. r=me
There are a series of tests strewn about the tree that seem to exercise window
opening in one form or another, so I thought I'd put them under a tag.

MozReview-Commit-ID: 74JwLUTzaMU

--HG--
extra : rebase_source : 0c92084914ffe44a781f034b2416e17905656607
2016-04-29 14:29:03 -04:00
Wes Kocher
ae8caa1fe4 Backed out changeset 5f50f2c7e813 (bug 968273) for android mochitest failures in the test this added 2016-05-31 09:59:13 -07:00
Dragana Damjanovic
b5b5c03685 Bug 968273 - On reload load from the original uri, so that all redirects are reloader.r=mayhemer 2016-05-31 03:43:00 +02:00
Bill McCloskey
291c555f34 Bug 1262671 - void** -> PickleIterator (r=froydnj) 2016-05-27 09:57:38 -07:00
Mats Palmgren
4e63c1e0cf Bug 881832 - Make inner document reflow asynchronous. r=tnikkel 2016-05-12 12:07:45 +12:00
Patrick McManus
c0638a1abc Bug 1274729 - corrupted content string management r=dragana 2016-05-23 10:12:31 -04:00
Gabor Krizsanits
e1127b3ff0 Bug 1262661 - part2: optimization on session storage and history messages. r=mconley 2016-05-23 12:15:15 +02:00
Phil Ringnalda
6bb0bc4494 Back out 6 changesets (bug 881832) for failures in test_Debugger.Source.prototype.element.html
CLOSED TREE

Backed out changeset fac50ce10b07 (bug 881832)
Backed out changeset 32e01c144cd4 (bug 881832)
Backed out changeset 779f5336b81e (bug 881832)
Backed out changeset 95efd250e29f (bug 881832)
Backed out changeset 7fe79f07189f (bug 881832)
Backed out changeset 8ee1824f2a57 (bug 881832)
2016-05-23 18:34:49 -07:00
Makoto Kato
da66cc7e43 Bug 1177943 - Part 4. Implement remote nsICommandWithParams. r=smaug
MozReview-Commit-ID: LbokIF1rWZX
2016-04-20 19:12:27 +09:00
Mats Palmgren
fdb3066641 Bug 881832 - Make inner document reflow asynchronous. r=tnikkel 2016-05-12 12:07:45 +12:00
Samael Wang
d6e0c31eda Bug 1271240 - Part 1: Support prerender flag in e10s and implement makePrerenderedBrowserActive(). r=smaug
MozReview-Commit-ID: 73E2kmqxRwm

--HG--
extra : rebase_source : 35441f58e15013b00a0774f764378fd5e0143add
2016-05-20 11:36:27 +08:00
Gijs Kruitbosch
23ed0206bf Bug 1273255 - Don't try alternate URIs at the end of pageload if the channel was redirected: we don't want to be applying that sort of fixup to the redirect target URI. r=smaug 2016-05-19 22:29:04 +01:00
Andrea Marchesini
98894192c9 Bug 1272781 - nsEscape should work with ns(C)Strings and not with char pointers, r=smaug 2016-05-18 18:21:56 +02:00
Xidorn Quan
2addb968ed Bug 1270648 part 5 - Setup the sandboxed fullscreen flag and make it work properly. r=smaug
MozReview-Commit-ID: 3EKRbOyXwNi

--HG--
extra : source : 03b0ee1a3ba13b252cb3276adc098266979c3741
2016-05-18 09:08:12 +10:00
Xidorn Quan
51e715f73c Bug 1270648 part 4 - Make fullscreen enabled flag not be affected after document is loaded. r=smaug
MozReview-Commit-ID: L2dMAUr63qv

--HG--
extra : source : 363d7ac04cbf98fa67cad3214ac62330c2652fa8
2016-05-18 09:08:12 +10:00
Trevor Saunders
256fff4fc9 bug 1271436 - add nsIDocShell::GetCommandManager() r=smaug 2016-05-17 18:16:07 -04:00
Trevor Saunders
1e81548029 bug 1271436 - use nsIDocShellTreeItem::GetDocument() more r=smaug 2016-05-17 18:16:07 -04:00
Trevor Saunders
72bac46477 bug 1271436 - use nsIDocShellTreeItem::GetWindow() more r=smaug 2016-05-17 18:16:07 -04:00
Yoshi Huang
5fd6aa919b Bug 1250033 - DocShell shouldn't have any child when setting userContextId. r=sicking 2016-05-17 19:49:10 +08:00
Yoshi Huang
bd13277475 Bug 1250063 - Part 3 : docshell shouldn't load any document except for about:blank when set origin attibutes. r=sicking 2016-05-17 19:49:10 +08:00
Henry Chang
0740b887ab Bug 1269426 - Forward or clear nsDocShell::mMixedContentChannel on redirection. r=ckerschb r=smaug
--HG--
extra : amend_source : 19d78ed0342ba00cb53d2748aa11616132fc2039
2016-05-13 17:22:33 +08:00
Chris Peterson
8a9e2d2bd4 Bug 1272513 - Part 2: Remove redundant -Wshadow CXXFLAGS from moz.build files. r=glandium 2016-05-14 00:54:55 -07:00
Chris Peterson
353ee65255 Bug 1272513 - Part 1: Suppress -Wshadow warnings-as-errors in some directories. r=glandium 2016-05-11 00:00:01 -07:00
Phil Ringnalda
c6417cc01e Back out 5 changesets (bug 881832) for failures in browser_html_tooltip-02.js
Backed out changeset 117e8e24d714 (bug 881832)
Backed out changeset 8a0d5df41cfb (bug 881832)
Backed out changeset 6b3c5e185b04 (bug 881832)
Backed out changeset 11106afdcbe7 (bug 881832)
Backed out changeset d711b7c19a43 (bug 881832)
2016-05-11 21:08:08 -07:00
Mats Palmgren
e04a74ec14 Bug 881832 - Make inner document reflow asynchronous. r=tnikkel
--HG--
extra : rebase_source : 9987e19e3318d5bc58ac8214496893041bc1775c
2016-05-12 12:07:45 +12:00
Ryan VanderMeulen
0790ea91bd Bug 1220415 - Disable browser_timelineMarkers-02.js for frequent failures across all platforms. 2016-05-09 17:01:16 -04:00
Carsten "Tomcat" Book
de1e98f448 Backed out changeset e7bfb11e947d (bug 1250033) for avoiding the firefox-ui crashes affect nightly users 2016-05-09 11:46:02 +02:00
Yoshi Huang
ba88c1ae58 Bug 1250033 - DocShell shouldn't have any child when setting userContextId. r=sicking 2016-05-08 22:38:09 +08:00
Jeremiah Orem
0a99a7cc46 Bug 1174254 - Disable FTP protocol guessing. r=mcmanus 2016-04-28 18:00:00 -04:00
Kyle Huey
941ab1f522 Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-05-05 01:45:00 -07:00
Marco Bonardo
a4b30a4005 Bug 1265420 - SetAndFetchFaviconForPage should return a cancelable object to allow aborting the fetch. r=Gijs
MozReview-Commit-ID: Leu4iZBkP7z

--HG--
extra : rebase_source : 03ac724d128d8d80ecc099af6fa5f84a85a7d02d
2016-05-03 15:42:12 +02:00
Kartikaya Gupta
65f5105de7 Bug 1269539 - Ensure that the scroll position is restored properly on reloading a page which loads incrementally. r=tnikkel
MozReview-Commit-ID: 1qVA5yU7a7g

--HG--
extra : rebase_source : 032336d7552ece6dbeafa4eb07eceb7ed2a096ba
2016-05-03 10:40:20 -04:00
Geoff Brown
1c9a03fe3e Bug 821821 - Backout hack and enable docshell/test/test_bug590573.html on Android; r=me 2016-04-29 13:42:01 -06:00
Carsten "Tomcat" Book
ba3fe0975c Backed out changeset 85ce8cb0639a (bug 1268313)
--HG--
extra : rebase_source : 56d1cf41a2dc4959b67f834e07192a5c772176a8
2016-04-29 14:21:16 +02:00
Kyle Huey
48a594a09e Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-04-28 14:08:25 -07:00
Yoshi Huang
ba1bb72568 Bug 1263496 - Part 3: fix for nsNullPrincipal::Create
This fixed the locations listed by
http://searchfox.org/mozilla-central/search?q=nsNullPrincipal::Create(&redirect=true
that needs to inherit origin attributes.
2016-04-27 18:38:07 +08:00
Christoph Kerschbaumer
232720eac5 Bug 1263286 - Move base-uri CSP check into SetBaseURIUsingFirstBaseWithHref. r=bz 2016-04-26 11:48:29 +02:00
Ryan VanderMeulen
1b64a90f42 Bug 1263213 - Disable test_reserved.html on debug e10s for frequent failures.
--HG--
extra : histedit_source : d5849d0cb56b64a6e94478a9187319c25be62078
2016-04-25 21:45:46 -04:00
Kyle Huey
c73656947b Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
Nicholas Hurley
65e701bed3 Bug 1122642 - Have an error page for H2 INADEQUATE_SECURITY r=mcmanus,bz 2016-04-22 09:56:42 -07:00
Gijs Kruitbosch
30a0ac0ed8 Bug 1253673, r=bz
MozReview-Commit-ID: eyZ0XvZkfM

--HG--
rename : browser/base/content/test/general/dummy_page.html => dom/tests/browser/dummy.html
extra : amend_source : 0ceb77aae62ed163362e794b9aed8f92849e3e6d
extra : histedit_source : 60dbd015a6909a0023dc26613530c89a16de6ea7%2Ca5ea96457b370e57e3a73c19bea08e157f16ac4f
2016-04-19 09:56:19 +01:00
Ryan VanderMeulen
e22a2d1d81 No bug - Re-enable various tests on Windows debug e10s that no longer fail.
--HG--
extra : histedit_source : 37d53b3f1958a608e96d34799e3ff123e901aed1
2016-04-15 13:26:01 -04:00
Dragana Damjanovic
645513565f Bug 1125916 - Fix code that miss proper flags and originAttributes in LoadInfo. Also fix some tests. r=sicking, r=jduell
--HG--
extra : rebase_source : 2a08f0208496671439ce62a576b5f8a728bbdf3c
extra : amend_source : 30412ab68cc0ee4469a88e41b6ce81c908a26535
extra : histedit_source : 1faae352f7fbf7c4c7a9e1e571ca395c853a1334
2016-04-13 15:34:36 +02:00
Tanvi Vyas
c73e96a53d Bug 1105556 - Call Create(originAttributes) when loadinfo->loadingPrincipal is null, instead of CreatePrincipalWithInheritedAttributes(). r=sicking 2016-04-13 16:30:22 -07:00
Tanvi Vyas
1e5f23269c Bug 1105556 -
* loadingNode passed to loadInfo null for TYPE_DOCUMENT and outer window's frameelementinternal for subdocuments.
* loadingPrincipal is taken directly from loadingNode; if loadingNode doesn't exist, it's null.
* requestingContext passed to nsIContentPolicy unchanged
* requestingPrincipal passed to nsIContentPolicy unchanged
* triggeringPrincipal passed to loadInfo unchanged
r=sicking, bz
2016-04-13 16:30:19 -07:00
Valentin Gosu
ed0ecbfd55 Bug 1263790 - Resource timing initiatorType should be "iframe" instead of "subdocument" r=bz 2016-04-13 04:56:47 +02:00
johndai1984
c9eb653e5e Bug 682294 - Remove redundant trailing spaces. r=bz 2016-04-06 08:33:00 +02:00
johndai1984
4c64e194f9 Bug 682294 - Add an error page for file access denied. r=bz 2016-04-06 08:18:00 +02:00
Nick Fitzgerald
01cfd1d6c6 Bug 1248948 - Don't pass non-SavedFrame objects to SavedFrame JSAPI functions; r=tromey r=evilpie 2016-04-05 13:51:00 +02:00
Dimi Lee
0ca6789b58 Bug 1233914 - P1. ping doesn't honor the TP list. r=francois
MozReview-Commit-ID: 9v8Ifkn7jV9

--HG--
extra : transplant_source : %9E%C0%A1%AEw%08%C6%EC7Lm%DBlq-%0E%DA%F6%B2%5E
2016-03-31 20:24:30 +08:00
Nathan Froyd
a13a3ea88a Bug 1261123 - don't needlessly construct nsAutoCString temporaries in nsDefaultURIFixup; r=smaug
We can make the non-virtual overload of IsDomainWhitelisted take an
nsACString instead of an nsAutoCString and avoid some unnecessary
copying.
2016-03-31 13:16:07 -04:00
Dragana Damjanovic dd.mozilla@gmail.com
e69b13996a Bug 225910 - Use nsIURI's GetRef and GetHasRef in nsDocShell. r=bz
--HG--
extra : rebase_source : 46d7974884b96bd55add4a6c24e2a2ccb8570b4c
2016-04-01 03:37:00 +02:00
Nicholas Nethercote
d376f9f82e Bug 1260871 - Remove do_GetAtom() and rename NS_NewAtom() as NS_Atomize(). r=erahm.
do_GetAtom() is currently just a synonym for NS_NewAtom().

--HG--
extra : rebase_source : f4409784f931616cbc300591e6b843d30805c273
2016-03-29 10:09:43 +11:00
Wes Kocher
7b9ea8afc5 Merge inbound to central, a=merge
MozReview-Commit-ID: FSnrOgtIFer
2016-03-31 13:04:19 -07:00
Bryan Clark
e713c87b39 Bug 1250120 - Change name to Responsive Design Mode in Tools -> Web Developer menu r=jryans 2016-03-29 12:34:21 -05:00
Kyle Huey
d9265a3eaf Bug 1259294: Part 2 - Use MOZ_ALWAYS_SUCCEEDS. r=froydnj 2016-03-28 10:28:15 -07:00
Philip Chee
cdc4f4c76e Bug 1258161 Remove obsolete strings from docshell/resources/content/netError.xhtml r=past 2016-03-27 00:06:15 +08:00
Nathan Froyd
cccdd9fbca Bug 1177488 - use |const char*| for representing async call reasons; r=bz,fitzgen
Using a simple |const char*| is more memory-efficient than allocating a
JS string. We still have to allocate the JS string for passing things
into JS, but ideally we will be able to move the point of allocation
much closer to where it's actually needed, rather than indiscriminantly
doing it all the time.
2016-03-23 10:40:53 -04:00
Wes Kocher
ea76ed99d7 Backed out changeset 95494e68c722 (bug 1177488) for crashes in test_bug732665.xul CLOSED TREE
MozReview-Commit-ID: IFUHUBUCnCD
2016-03-25 12:11:48 -07:00
Nathan Froyd
418aa2af4f Bug 1177488 - use |const char*| for representing async call reasons; r=bz,fitzgen
Using a simple |const char*| is more memory-efficient than allocating a
JS string. We still have to allocate the JS string for passing things
into JS, but ideally we will be able to move the point of allocation
much closer to where it's actually needed, rather than indiscriminantly
doing it all the time.
2016-03-23 10:40:53 -04:00
Blake Kaplan
c4c70b48cb Bug 1237146 - Enable this now-passing test. r=billm 2016-01-05 18:09:00 +01:00
Christoph Kerschbaumer
f5cf4d69dd Bug 1257730 - Crashtest for PING without valid URI. r=ryanvm 2016-03-18 15:56:15 -07:00
Christoph Kerschbaumer
22b11a8c5f Bug 1257730 - Fix ping when no URI is available. r=sicking 2016-03-18 14:05:55 -07:00
Trevor Saunders
a6f221b6a2 bug 1257287 - add nsIDocShell.tabChild r=smaug 2016-03-18 15:54:12 -04:00
Trevor Saunders
2c05850952 bug 1257287 - add nsIDocShell::GetEdItingSession() 2016-03-18 15:54:07 -04:00
Geoff Brown
29977660c0 Bug 1251013 - Update android_version annotations in test manifests - mochitest; r=jmaher 2016-03-17 10:00:48 -06:00
Kyle Huey
d11b9db617 Bug 1257032: Make files in dom/workers actually build without unification. r=baku 2016-03-16 11:51:11 -07:00
Nick Fitzgerald
ebc997b7c8 Bug 1253516 - Do not acquire a lock that protects data that is not used; r=vporof
`sMutex` protects the `mMarkersStores` data member, but neither
`TimelineConsumers::PopMarkers` nor `ObservedDocShell::PopMarkers` use that
data member.

Removing this lock acquisition also fixes a dead lock where we re-entrantly
attempt to acquire the lock when triggering a GC when allocating JS objects
inside `ObservedDocShell::PopMarkers`.
2016-03-14 11:44:00 +01:00
Boris Zbarsky
f8c6c153ad Bug 1255849. Add some documentation for AutoJSAPI instances that seem to be used just for cxpushing. r=bholley 2016-03-14 20:47:13 -04:00
Wes Kocher
168746512d Backed out changeset ee3c99e6f676 (bug 1177488) for LeakSanitizer failures
MozReview-Commit-ID: FFfF4u2vOrS

--HG--
extra : rebase_source : 0c7f5e290b388b2f35837a5f757f2d962b973da3
2016-03-14 13:15:21 -07:00
Nathan Froyd
6b6c2a1fcd Bug 1177488 - use |const char*| for representing async call reasons; r=bz,fitzgen
Using a simple |const char*| is more memory-efficient than allocating a
JS string.  We still have to allocate the JS string for passing things
into JS, but ideally we will be able to move the point of allocation
much closer to where it's actually needed, rather than indiscriminantly
doing it all the time.
2016-03-08 16:29:25 -05:00
Franziskus Kiefer
ad50543437 Bug 1226928 - dochsell changes for content-signing on remote about:newtab, r=bz,mconley 2016-03-14 11:57:03 +01:00
Tom Tromey
b03cdce369 Bug 1255459 - Use AutoRestore in ObservedDocShell::PopMarkers. r=smaug
MozReview-Commit-ID: IbPoXdjfbQu
2016-03-10 08:59:00 -05:00
sajitk
823704b8d6 Bug 1219482: Replace PRLogModuleInfo with LazyLogModule in various files.r=benjamin 2016-01-28 10:35:00 -08:00
Blake Kaplan
f01e5763b8 Bug 1240246 - Handle re-entrancy in nsDocShell::InternalLoad more gracefully. r=smaug 2016-03-09 17:12:36 -08:00
Blake Kaplan
ce47da7e2a Bug 1253792 - Handle another case of re-entrancy through nsDocShell::InternalLoad. r=smaug 2016-03-09 12:26:00 -05:00
Tom Tromey
aa07d5bcbe Bug 1245743 - Don't push new timeline markers while popping markers. r=vporof
MozReview-Commit-ID: IllTB7DOdlZ
2016-03-09 19:19:47 -05:00
Andrea Marchesini
31635f4f9a Bug 1254103 - Window.open() should not reuse an existing window if it's running a different container, r=bz 2016-03-09 14:57:50 +01:00
Yoshi Huang
e8cb28ed02 Bug 1252811 - remove mIsInIsolatedMozBrowser from nsDocShell. r=smaug 2016-03-07 12:21:49 +08:00
Ben Kelly
7ebbd928f1 Bug 1253738 P1 Require an explicit principal when looking up a service worker registration. r=baku 2016-03-08 06:55:41 -08:00
Andrea Marchesini
4696731947 Bug 1253538 - Window.open() should not reuse an existing window if it's running a different container - patch 2, r=bz 2016-03-07 14:00:08 +01:00
Ryan VanderMeulen
54367e83bf Merge fx-team to m-c. a=merge 2016-03-05 19:22:45 -05:00
Mike de Boer
2f562a286b Bug 1241930: Part 4 - convert all assertion methods used inside content tasks to the Assert.* family in docshell tests. r=mconley 2016-03-04 14:32:29 +01:00
Valentin Gosu
eb30e01d66 Bug 652186 - Fix tests involving URL backslash replacement r=bz
MozReview-Commit-ID: JgWFkJN7Mtc

--HG--
extra : rebase_source : 177a7884009a4b27d83f41fc5f1dd0d14e8c0421
2016-03-03 15:50:22 +01:00
Valentin Gosu
d77d9c2af1 Bug 652186 - Remove unneeded backslash replacement from nsDefaultURIFixup r=bz
MozReview-Commit-ID: 5IPxr8nWk7b

--HG--
extra : rebase_source : fce3dd4732d313337cdf210770233d54457ddac7
2016-03-03 15:27:43 +01:00
Blake Kaplan
456e54eb3b Bug 1113196 - Pass a sane set of parameters to loadinfo for top-level loads in e10s. r=sicking 2016-03-04 08:54:07 -08:00
Yoshi Huang
ce8e69a274 Bug 1227861 - Add OriginAttributes getter/setter into nsIDocShell. r=smaug, sicking 2016-02-16 15:04:14 +08:00
James Willcox
73d84cb178 Bug 518805 - Don't do meta refreshes when backgrounded r=bz
This is controlled by browser.meta_refresh_when_inactive.disabled, which
is false (allow refreshes) on desktop, and true (disable refreshes) on Fennec
2016-03-02 16:32:27 -06:00
Andrea Marchesini
5d211456d5 Bug 1252839 - Remove some if stmt after allocation with 'new' - patch 1, r=bz 2016-03-02 18:50:48 +01:00
J. Ryan Stinnett
777c113bb3 Bug 1238160 - Set docshell isolation mode. r=smaug
Renames nsDocShell isBrowser* attributes to add a "Moz" prefix for clarity.

Adds nsDocShell::GetIsIsolatedMozBrowserElement, which parallels
GetIsInIsolatedMozBrowserElement, but only checks the immediate docshell.

Adds nsDocShell::SetIsInIsolatedMozBrowserElement for the frame loader and tab
child to set the isolation state.

nsDocShell methods related to mozbrowser elements (and their callers) are
updated to use GetIs(In)?IsolatedMozBrowserElement when checking isolation /
origins and GetIsMozBrowserElement when checking frame types.

MozReview-Commit-ID: 6pGD5fF47ZN
2016-03-02 10:35:56 -06:00
J. Ryan Stinnett
5bede71f0d Bug 1238160 - Rename nsILoadContext::GetIsInBrowserElement. r=smaug,mayhemer
This change renames nsILoadContext::GetIsInBrowserElement to
GetIsInIsolatedMozBrowserElement.  Other methods that pass these values around
also have name changes.

Tokens such as "isInBrowserElement" have previously been serialized into cache
keys, used as DB column names, stored in app registries, etc.  No changes are
made to any serialization formats.  Only runtime method and variable names are
updated.

No behavior changes are made in this patch, so some renamed methods may have
nonsensical implementations.  These are corrected in subsequent patches
focused on behavior.

MozReview-Commit-ID: CUttXANQjSv
2016-03-02 10:35:56 -06:00
J. Ryan Stinnett
2a55d065b7 Bug 1238160 - Rename OriginAttributes.mInBrowser and associated methods. r=bz,mayhemer
This change renames OriginAttributes.mInBrowser to mInIsolatedMozBrowser and
nsIPrincipal::GetIsInBrowserElement to GetIsInIsolatedMozBrowserElement.  Other
methods that pass these values around also have name changes.

Tokens such as "inBrowser" have previously been serialized into cache keys, used
as DB column names, stored in app registries, etc.  No changes are made to any
serialization formats.  Only runtime method and variable names are updated.

No behavior changes are made in this patch, so some renamed methods may have
nonsensical implementations.  These are corrected in subsequent patches
focused on behavior.

MozReview-Commit-ID: 66HfMlsXFLs
2016-03-02 10:35:56 -06:00
Jonathan Kew
e47c42c4d1 Bug 1252347 - Provide missing implementations of nsIBaseWindow::SetPositionDesktopPix. r=emk 2016-03-02 12:15:19 +00:00
Hiroyuki Ikezoe
09b0051cfd Bug 1244897 - Use TimerlineConsumers in PopProfileTimelineMarkers to ensure that all methods acquire TimelineConsumers Mutex. r=vporof
MozReview-Commit-ID: 5VzLfT5SUjI

--HG--
extra : rebase_source : 12df03d9d05698057686113145ddb33b3dd5e0ea
2016-03-01 19:54:47 +09:00
Ryan VanderMeulen
ce54ceee90 Backed out changeset a3af36cb6d54 (bug 1237146) because the test still fails with e10s enabled. 2016-02-29 14:48:49 -05:00
David Rajchenbach-Teller
7fdebd3973 Bug 1249393 - Getting rid of more Nightly-only gates for about:performance;r=me
MozReview-Commit-ID: BWS1TPoLzYs

--HG--
extra : rebase_source : 9b6fa02da483679b77d837dcfea30452254852c2
2016-02-29 21:58:32 +01:00
Ehsan Akhgari
8a0731fdde Bug 1251875 - Part 1: Remove the dom.serviceWorkers.interception.enabled pref; r=bkelly 2016-03-01 09:16:38 -05:00
Andrea Marchesini
9229fda61b Bug 1249950 - Add Performance Markers for MessagePort - patch 2, r=smaug, r=vporof 2016-03-01 09:16:18 +01:00
Andrea Marchesini
4132d10502 Bug 1249950 - Add Performance Markers for MessagePort - patch 1 - remove non-useful 'explicit', r=smaug 2016-03-01 09:15:50 +01:00
Francois Marier
53454d8416 Bug 1245992 - Update the Safe Browsing phishing interstitial page. r=flod,past
MozReview-Commit-ID: DLC1KDvYbUH

--HG--
extra : rebase_source : 7289c93af47827f8a8dd78285d7beecf31935f3c
2016-02-25 21:34:01 -08:00
Phil Ringnalda
c279cb263c Back out 2 changesets (bug 1245992) for several browser-chrome failures
Backed out changeset 6d9614f87daf (bug 1245992)
Backed out changeset 34e6eea401e3 (bug 1245992)
2016-02-25 19:15:16 -08:00
Francois Marier
b5682aa996 Bug 1245992 - Update the Safe Browsing phishing interstitial page. r=flod,past
MozReview-Commit-ID: JnYOqtCIib7

--HG--
extra : rebase_source : 4488fa66efd6a1dd6d1b477836a772549a0424c3
2016-02-24 16:23:25 -08:00
Jonathan Kew
cb99502b79 Bug 1247335 - patch 1 - Provide a desktop-pixel variant of SetPosition on nsIBaseWindow and its implementations. r=emk 2016-02-18 10:46:16 +00:00
David Rajchenbach-Teller
665d890187 Bug 1243706 - Release PerformanceStats/PerformanceWatcher;r=Felipe
MozReview-Commit-ID: 4XT21bfBSa9

--HG--
extra : rebase_source : 4d35245170930e18bbfaf9ebba8e9d24fa52a87e
2016-01-28 13:41:14 +01:00
Boris Zbarsky
96f906f124 Bug 1247872. Just get our private browsing state directly off the docshells we already have instead of trying to indirect through their documents. r=smaug 2016-02-12 21:29:49 -05:00
Olli Pettay
9b0e1b6a77 Bug 947755, try to avoid use of setTimeout when there is an event to use, r=khuey 2016-02-13 03:40:01 +02:00
Birunthan Mohanathas
d7371d07d0 Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-02-02 17:36:30 +02:00