Commit Graph

2028 Commits

Author SHA1 Message Date
Ryan VanderMeulen
99112e9931 Backed out 5 changesets (bug 1407351) for causing bug 1409395 and breaking nightlies.
Backed out changeset e6ee25ad6a9f (bug 1407351)
Backed out changeset 8e04412824b5 (bug 1407351)
Backed out changeset effeee94316e (bug 1407351)
Backed out changeset a53f34a45f9b (bug 1407351)
Backed out changeset 86a360e12b8a (bug 1407351)
2017-10-17 10:07:55 -04:00
Sebastian Hengst
08efa86e76 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 1h3kZyrtqSt
2017-10-17 11:45:16 +02:00
Kris Maglione
12b1b432af Bug 1405286: Part 3 - Test that filterResponseData from cached onHeadersReceived doesn't crash. r=mixedpuppy
It currently isn't possible to suspend a channel from onHeadersReceived for a
cached response. And since it's not possible to add a new stream filter after
a response has started, adding a stream filter at that point will crash if the
channel is still registered.

This test is a basic sanity check for that scenario.

MozReview-Commit-ID: ALYUtxX7mci
2017-10-14 19:25:35 -07:00
Dan Banner
5af4450327 Bug 1408777 - Automatically fix instances of missing semicolons in the tree. r=Standard8
MozReview-Commit-ID: Jm8BRgt6mIv
2017-10-15 20:50:39 +01:00
Sebastian Hengst
ded2f7a0dd Merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 5oI3jfNbQVt
2017-10-13 11:12:47 +02:00
Phil Ringnalda
06da5b50cf Backed out 3 changesets (bug 1403349) for test-oop-extensions/browser_ext_webNavigation_onCreatedNavigationTarget_window_open.js | This test exceeded the timeout threshold
Backed out changeset 6c50dc08aa42 (bug 1403349)
Backed out changeset 5dbe3db9affc (bug 1403349)
Backed out changeset 0039b4539113 (bug 1403349)

MozReview-Commit-ID: 2jlfAoj8SPn
2017-10-12 18:57:33 -07:00
Mike de Boer
b88de66bb0 Bug 1305059 - Adhere to the 'drawOutline' option as passed in by the Finder to decide whether an outline should be visible. r=jaws
MozReview-Commit-ID: 2vVAp5HoKTO
2017-10-12 16:57:26 +02:00
Felipe Gomes
ffb7fb0534 Bug 1407351 - Back out to avoid a merge conflict with bug 1406212. I'll reland tomorrow
MozReview-Commit-ID: 612TlR0MgR4
2017-10-12 21:59:18 -03:00
Kris Maglione
7b017c97d6 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
2017-10-12 15:43:55 -07:00
Felipe Gomes
dc7f55bc85 Bug 1407351 - Remove E10S_TESTING_ONLY defines. r=glandium
MozReview-Commit-ID: jVUo2l7eQd
2017-10-12 21:44:59 -03:00
Alessio Placitelli
3626ce18b7 Bug 1407234 - Don't show getCachedClientID error on new profiles. r=chutten
This patch changes ClientID.jsm to only check for the pref validity if
the cached client id pref was set.

MozReview-Commit-ID: KI3YHaMozl6
2017-10-11 16:10:29 +02:00
Sebastian Hengst
d1a31a8503 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-11 00:01:28 +02:00
Shane Caraveo
cf8c5452ed Bug 1305237 Expose frameAncestors to webextensions, r=bz,kmag
MozReview-Commit-ID: 64lIMu6neaD
2017-10-10 09:54:22 -07:00
Mike de Boer
0a5cfc15fd Bug 1397989 - Make sure to only set non-empty values as the content-type of a document in the remote browser binding. r=mconley
What happens is the following:
 - browser-child.js sends a statechange up to RemoteWebProgress.jsm that contains
   a `documentContentType` value of `null`, along with `requestURI` and `originalRequestURI`
   _after_ other state changes that did send a valid content-type.
 - The content-type is used by the WebProgressListener in browser.js to toggle the
   disabled state of the 'isImage' broadcaster.
 - The 'isImage' broadcaster is used by the 'cmd_find' and 'cmd_findAgain' commands to
   determine whether they should be enabled. In this case: not.
The fix here is to _not_ set the documentContentType in the browser binding when
it's `null`.

MozReview-Commit-ID: IELoCrnOH0j
2017-10-10 19:14:01 +02:00
Luca Greco
05dc67781f Bug 1403349 - Prevent WebNavigation jsm to leak the sourceTab browser on unpaired CreatedNavigationTarget messages. r=aswan
This applies the following changes:

- store a weak reference to the browser element in the WebNavigation.jsm Manager's map
  of pending CreatedNavigationTarget messages

- when a CreatedNavigationTarget message is received from a sourceTab
  for a created window that is not currently tracked in the map
  (e.g. it has been immediately closed), the message received from the sourceTab
  is not saved in the map of the pending CreatedNavigationTarget (and a message
  is logged in the console to make easier to investigate issues related to discarded
  CreatedNavigationTarget events).

- adds an additional assertion to the related test case to ensure that no CreatedNavigationTarget
  message is still pending in the WebNavigation/jsm's Manager.

MozReview-Commit-ID: FijQ8IqiY8L
2017-09-27 19:07:41 +02:00
Luca Greco
6eff7b96a9 Bug 1403349 - Fix wrong sourceTabId on webNavigation.onCreatedTarget event. r=aswan
This changes fixes the regression introduced by Bug 1355120 and adds a new
test case which contains a browserAction popup which open and immediately
close a new window and ensure that the received onCreatedNavigationTarget
is the expected one.

MozReview-Commit-ID: JIcVCpBTpxj
2017-09-27 14:24:54 +02:00
Peter Van der Beken
a8401db6ec Bug 1383059 - Remove instanceof for supplemental interfaces. Part 1: add Window.isChromeWindow and switch |instanceof [nsIDOM]ChromeWindow| to use it instead. r=bz. 2017-10-06 13:47:27 +02:00
Mike de Boer
eb3dc3be32 Bug 1302470 Part 6: Properly check for a frame's visibility, do not abuse isRangeVisible() for that purpose. r=mikedeboer
MozReview-Commit-ID: ErviFQrJR1u
2017-04-28 19:06:35 +02:00
Felipe Gomes
4878e02692 Bug 1407351 - Remove E10S_TESTING_ONLY defines. r=glandium
MozReview-Commit-ID: Kp5DH075X2f
2017-10-16 14:00:50 -02:00
Mike de Boer
1045c0615c Bug 1302470 Part 5: Connect up FinderHighlighter.jsm with the new isRangeVisible function. r=mikedeboer
MozReview-Commit-ID: ABfAoZ4CBjP
2017-01-23 17:39:07 +01:00
Georg Fritzsche
d6966b9120 Bug 1402609 - Part 1: Fix missing rejection handling in Troubleshoot.jsm. r=felipe 2017-10-06 05:04:00 -04:00
Robert Strong
eac9c66803 bug 1404080 - Add dwBuildNumber and UBR to the Windows version in the OS_VERSION replacement for the app.update.url. r=mhowell 2017-10-06 10:55:20 -07:00
Kris Maglione
e498ce8963 Bug 1404172: Remove MatchPattern.jsm. r=aswan
MozReview-Commit-ID: ItGMuChHS3z
2017-09-28 18:27:44 -07:00
Dão Gottwald
82341b7dd0 Bug 1404386 - Sanitize theme accentcolor to prevent the window from becoming transparent. r=Gijs
MozReview-Commit-ID: ChV3SOGSbjN
2017-09-29 18:49:55 +02:00
Johann Hofmann
58bd24d84b Bug 1390885 - Remove code that adjusts the titlebar to drawing lwthemes inside the titlebar. r=nhnt11
We got rid of drawing lwthemes inside the titlebar on OSX in bug 1392219 but
there was still some code that adjusted the titlebar, which we forgot
remove. Incidentally, that code was also causing a bug (even before we
removed the in-titlebar drawing) which we now don't need to worry about
anymore now.

MozReview-Commit-ID: 44HR25Uyp8B
2017-09-28 23:16:04 +02:00
Wes Kocher
4253ce7dce Merge inbound to m-c a=merge
MozReview-Commit-ID: 7zOjePOWzOM
2017-09-28 16:56:44 -07:00
Wes Kocher
aa463dbc3a Merge autoland to central, a=merge
MozReview-Commit-ID: LTZmzqpIUXI
2017-09-28 15:49:14 -07:00
Ryan VanderMeulen
252c89b8d4 Backed out changesets d0d30a90efa1 and fd1d81b93380 (bug 1305237) for causing bug 1403932. 2017-09-28 17:55:43 -04:00
Scott Wu
d6d30c8083 Bug 1401876 - (Part 1) Close datetime picker on popuphidden. r=mconley
MozReview-Commit-ID: FUqbtAftQxh
2017-09-21 15:37:25 +08:00
Shane Caraveo
d7ebe7ee66 Bug 1305237 Expose frameAncestors to webextensions, r=bz,kmag
MozReview-Commit-ID: HpneTIKPoS1
2017-09-27 07:58:17 -07:00
Wes Kocher
6952cfe436 Merge m-c to autoland, a=merge
MozReview-Commit-ID: Kjjgw1Pdb3U
2017-09-26 17:15:46 -07:00
Shane Caraveo
f2e81a0dcd Bug 1401350 fix proxy auth for system requests, r=kmag
MozReview-Commit-ID: CAh89djQobI
2017-09-25 15:14:09 -07:00
Andrea Marchesini
93901ebca1 Bug 1402888 - Remove nsIInputStreamPump::Init() offset and limit params, r=smaug 2017-09-26 07:21:44 +02:00
Andrea Marchesini
2daba7f880 Bug 1402888 - Remove nsIStreamTransportService::createInputStream startOffset and readLimit params, r=smaug 2017-09-26 07:21:27 +02:00
Kris Maglione
f10debfb5b Bug 1402944: Part 10 - Minor runChannelListener cleanups/optimizaitons. r=mixedpuppy
Moving the event type lists to constants avoids array construction overhead
for each event, and allows us to use the much faster Set.has rather than
Array.includes.

Using Object.create to add the base request info to the listener-specific info
allows us to avoid object copy overhead.

Switching to a .forEach() loop lets us avoid creating expensive live Map
iterator objects, and also GC pressure caused by the huge number of iterator
result objects and intermediate array objects created by for-of-entries().
It's otherwise just as fast as for-of in Ion.

MozReview-Commit-ID: 53Fw1tJbuMY
2017-09-25 14:01:12 -07:00
Kris Maglione
baa806b321 Bug 1402944: Part 9 - Optimize request/response header handling. r=mixedpuppy,ehsan
We don't use the initial Map returned by ChannelWrapper as a map, so there's no
need for the overhead involved in creating it. We also don't need the header map
generated by HeaderChanger unless headers are actually being modified, which
for many listeners they never are, so there's no need for the map creation and
string lower-casing overhead prior to modification time.

MozReview-Commit-ID: K2uK93Oo542
2017-09-23 16:25:19 -07:00
Kris Maglione
9880082601 Bug 1402944: Part 7 - Move traceable channel registration to ChannelWrapper. r=mixedpuppy,ehsan
MozReview-Commit-ID: 6hGmh4VpJMQ
2017-09-27 18:15:39 -07:00
Kris Maglione
813dfdec77 Bug 1402944: Part 5 - Move request filtering and permission matching into ChannelWrapper. r=mixedpuppy,ehsan
This allows us to reuse the same URLInfo objects for each permission or
extension that we match, and also avoids a lot of XPConnect overhead we wind
up incurring when we access URI objects from the JS side.

MozReview-Commit-ID: GqgVRjQ3wYQ
2017-09-27 18:15:12 -07:00
Kris Maglione
d4776d075c Bug 1402944: Part 4 - Fold start/stop listener into ChannelWrapper. r=mixedpuppy,ehsan
MozReview-Commit-ID: 52zZNjgaCEj
2017-09-26 13:39:30 -07:00
Kris Maglione
7f5cb37174 Bug 1402944: Part 3 - Move error checks into ChannelWrapper. r=mixedpuppy,ehsan
MozReview-Commit-ID: 7uLonYWnLcX
2017-09-26 13:38:54 -07:00
Kris Maglione
b0e7882fea Bug 1402944: Part 2 - Move error string logic into ChannelWrapper. r=mixedpuppy,ehsan
MozReview-Commit-ID: 4rOeoliLTV7
2017-09-22 18:43:18 -07:00
Robert Strong
bf95f344c1 Bug 1402376 - test code - Add whether the client has an incompatible version of JAWS to the update url. r=jimm 2017-09-22 12:45:39 -07:00
Robert Strong
70ce022c67 Bug 1402376 - client code - Add whether the client has an incompatible version of JAWS to the update url. r=jimm 2017-09-22 12:43:36 -07:00
Kershaw Chang
01ecffb3a1 Bug 1247843 - Part 1: Add new property - contentRequestContextID. r=mconley, r=hurley 2017-09-20 20:08:00 -04:00
Jan Henning
44c7412b37 Bug 1391421 - Part 4 - Switch Session Store to save the "display" URL. r=mikedeboer
The URL can end up being user-visible for "Recently closed tabs" (certainly on Android, and also when hovering over an entry on Desktop, at least in the old menu bar), so we should use pretty URLs instead of Punycode.

MozReview-Commit-ID: Kil2ChToYa8
2017-09-14 21:29:45 +02:00
Ed Lee
9b169c841f Bug 1401316 - Use favicon from either https or http version of the page. r=ursula
MozReview-Commit-ID: 3W3OUu0gffH
2017-09-19 12:51:47 -07:00
Sebastian Hengst
bf96774406 Backed out changeset 26f9c5c3f434 (bug 1401316) for failing xpcshell's toolkit/modules/tests/xpcshell/test_NewTabUtils.js. r=backout 2017-09-19 23:42:24 +02:00
Ed Lee
6528d1e4d9 Bug 1401316 - Use favicon from either https or http version of the page. r=ursula
MozReview-Commit-ID: 3W3OUu0gffH
2017-09-19 12:51:47 -07:00
Kit Cambridge
707e45f784 Bug 1401236 - Don't reread already loaded data in JSONFile#load. r=Gijs
MozReview-Commit-ID: AHD5G453GHM
2017-09-19 09:59:27 -07:00
Jonathan Kingston
125e5b8347 Bug 1272304 - Add disabled state to screen sharing permission r=florian
MozReview-Commit-ID: LsZmQD5fWzW
2017-08-12 18:54:24 +01:00