Граф коммитов

2024 Коммитов

Автор SHA1 Сообщение Дата
Dan Banner 7caa92d5d8 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 1c1a5cef77 Merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 5oI3jfNbQVt
2017-10-13 11:12:47 +02:00
Phil Ringnalda 802759e321 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 39112c4528 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

--HG--
extra : rebase_source : 340d69f6e343acdc5b1fa6e26d7947950d2bd05a
2017-10-12 16:57:26 +02:00
Felipe Gomes 782fcdbd30 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 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
Felipe Gomes 046e4a269a Bug 1407351 - Remove E10S_TESTING_ONLY defines. r=glandium
MozReview-Commit-ID: jVUo2l7eQd
2017-10-12 21:44:59 -03:00
Alessio Placitelli ed2ef60ea6 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

--HG--
extra : rebase_source : 14d7c2408a16d21911c10112465c2afe590c85fb
2017-10-11 16:10:29 +02:00
Sebastian Hengst 044775ad49 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-11 00:01:28 +02:00
Shane Caraveo 3a90ea2602 Bug 1305237 Expose frameAncestors to webextensions, r=bz,kmag
MozReview-Commit-ID: 64lIMu6neaD

--HG--
extra : rebase_source : 36fef9a014a7f4bb2db66fb8736de06298008e36
2017-10-10 09:54:22 -07:00
Mike de Boer e729ce7f9a 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

--HG--
extra : rebase_source : 51211b7aee13eabc71f91e73df4fc6d69e5c624b
2017-10-10 19:14:01 +02:00
Luca Greco 68f1169aaf 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

--HG--
extra : rebase_source : 20e5c27ba18f7f05f9076db19091f1c1153a6c39
2017-09-27 19:07:41 +02:00
Luca Greco 82830bb0ac 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

--HG--
extra : rebase_source : 0966eba7c752068522400b032a8018b96e9dcda9
2017-09-27 14:24:54 +02:00
Peter Van der Beken c705293c1c Bug 1383059 - Remove instanceof for supplemental interfaces. Part 1: add Window.isChromeWindow and switch |instanceof [nsIDOM]ChromeWindow| to use it instead. r=bz.
--HG--
extra : rebase_source : 1efc83abae922c1a7b7eb855fd10a6333615044b
extra : source : 32277b160af4739c812ca2750a39ca111b16ea69
2017-10-06 13:47:27 +02:00
Mike de Boer 4efa2baf29 Bug 1302470 Part 6: Properly check for a frame's visibility, do not abuse isRangeVisible() for that purpose. r=mikedeboer
MozReview-Commit-ID: ErviFQrJR1u

--HG--
extra : rebase_source : 491013f2aa60ebf41c3198a022d136f7abd2a19c
2017-04-28 19:06:35 +02:00
Mike de Boer 2dcd3790e0 Bug 1302470 Part 5: Connect up FinderHighlighter.jsm with the new isRangeVisible function. r=mikedeboer
MozReview-Commit-ID: ABfAoZ4CBjP

--HG--
extra : rebase_source : d46fd3205481c0715e0f4ffde71ed056a648fadf
2017-01-23 17:39:07 +01:00
Georg Fritzsche 2115adfe5c Bug 1402609 - Part 1: Fix missing rejection handling in Troubleshoot.jsm. r=felipe 2017-10-06 05:04:00 -04:00
Robert Strong ffba5d31b5 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 3676137220 Bug 1404172: Remove MatchPattern.jsm. r=aswan
MozReview-Commit-ID: ItGMuChHS3z

--HG--
rename : toolkit/modules/addons/MatchPattern.jsm => toolkit/modules/addons/MatchURLFilters.jsm
extra : rebase_source : 986542ba4270799ca1d213d5b4807d12ab7ac148
2017-09-28 18:27:44 -07:00
Dão Gottwald 2ddcdb377e Bug 1404386 - Sanitize theme accentcolor to prevent the window from becoming transparent. r=Gijs
MozReview-Commit-ID: ChV3SOGSbjN

--HG--
extra : rebase_source : f13a75ee9e8e120502956ab02d7ab724df6edbb6
2017-09-29 18:49:55 +02:00
Johann Hofmann 1a8efc0e83 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

--HG--
extra : rebase_source : 12a9d427a021d00553be8949dd5f9fa7e37eef47
2017-09-28 23:16:04 +02:00
Wes Kocher 1674eb3e4f Merge inbound to m-c a=merge
MozReview-Commit-ID: 7zOjePOWzOM
2017-09-28 16:56:44 -07:00
Wes Kocher 2c04ebdaa3 Merge autoland to central, a=merge
MozReview-Commit-ID: LTZmzqpIUXI
2017-09-28 15:49:14 -07:00
Ryan VanderMeulen 2ccfaf0697 Backed out changesets d0d30a90efa1 and fd1d81b93380 (bug 1305237) for causing bug 1403932. 2017-09-28 17:55:43 -04:00
Scott Wu e8af7b7a7d Bug 1401876 - (Part 1) Close datetime picker on popuphidden. r=mconley
MozReview-Commit-ID: FUqbtAftQxh

--HG--
extra : rebase_source : 9570536f7d46d5e8a481d36ed90d81c6f4e8183d
2017-09-21 15:37:25 +08:00
Shane Caraveo 088c63f6e5 Bug 1305237 Expose frameAncestors to webextensions, r=bz,kmag
MozReview-Commit-ID: HpneTIKPoS1

--HG--
extra : rebase_source : d4c7e9146b4156f7e429e6427628bbf7cd25cbe7
2017-09-27 07:58:17 -07:00
Wes Kocher 9d9610f6a3 Merge m-c to autoland, a=merge
MozReview-Commit-ID: Kjjgw1Pdb3U
2017-09-26 17:15:46 -07:00
Shane Caraveo 86d45aba67 Bug 1401350 fix proxy auth for system requests, r=kmag
MozReview-Commit-ID: CAh89djQobI

--HG--
extra : rebase_source : c85ff5148d4ac1df4e21622d2d615040ba9e09d7
2017-09-25 15:14:09 -07:00
Andrea Marchesini 53d31f2d9c Bug 1402888 - Remove nsIInputStreamPump::Init() offset and limit params, r=smaug 2017-09-26 07:21:44 +02:00
Andrea Marchesini 86c5c52e0e Bug 1402888 - Remove nsIStreamTransportService::createInputStream startOffset and readLimit params, r=smaug 2017-09-26 07:21:27 +02:00
Kris Maglione c6acdfdad4 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

--HG--
extra : rebase_source : 7fd7095239fec790347d3febb8bf9af17fffc1af
2017-09-25 14:01:12 -07:00
Kris Maglione ee47ab1f43 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

--HG--
extra : rebase_source : f50574fb0eb32878aee3f68b3a73d46ba53987e5
2017-09-23 16:25:19 -07:00
Kris Maglione 30a2ef9ec1 Bug 1402944: Part 7 - Move traceable channel registration to ChannelWrapper. r=mixedpuppy,ehsan
MozReview-Commit-ID: 6hGmh4VpJMQ

--HG--
extra : rebase_source : 082f3cb19ec957b81536b67a56969ba714e81e79
2017-09-27 18:15:39 -07:00
Kris Maglione 89ae1721a0 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

--HG--
extra : rebase_source : 71c19fd8b432c16a3f13f7d0bd0424064f3e5661
2017-09-27 18:15:12 -07:00
Kris Maglione e3089ef89e Bug 1402944: Part 4 - Fold start/stop listener into ChannelWrapper. r=mixedpuppy,ehsan
MozReview-Commit-ID: 52zZNjgaCEj

--HG--
extra : rebase_source : c608625921d6cbf35dd7c4719df2438a9b0e3905
2017-09-26 13:39:30 -07:00
Kris Maglione ff2dd2a70a Bug 1402944: Part 3 - Move error checks into ChannelWrapper. r=mixedpuppy,ehsan
MozReview-Commit-ID: 7uLonYWnLcX

--HG--
extra : rebase_source : cf89bfe98adc699b74230356ce3cb99cc16d5af6
2017-09-26 13:38:54 -07:00
Kris Maglione f80c50c88d Bug 1402944: Part 2 - Move error string logic into ChannelWrapper. r=mixedpuppy,ehsan
MozReview-Commit-ID: 4rOeoliLTV7

--HG--
extra : rebase_source : 3e9b1151e8dbc812623ae2fd05895b7362e322f1
2017-09-22 18:43:18 -07:00
Robert Strong 5e2db259a2 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 d4c12b589b 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 56cdc97487 Bug 1247843 - Part 1: Add new property - contentRequestContextID. r=mconley, r=hurley 2017-09-20 20:08:00 -04:00
Jan Henning 57706bcfdc 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

--HG--
extra : rebase_source : 937332a852c6814317cdc58473437e3bc77faf15
2017-09-14 21:29:45 +02:00
Ed Lee 51d90f6caa Bug 1401316 - Use favicon from either https or http version of the page. r=ursula
MozReview-Commit-ID: 3W3OUu0gffH

--HG--
extra : rebase_source : be7a2f73c4a29032e4b3e8506e863434c04e8e47
2017-09-19 12:51:47 -07:00
Sebastian Hengst 6a9067d75f 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 65f8a0f73b Bug 1401316 - Use favicon from either https or http version of the page. r=ursula
MozReview-Commit-ID: 3W3OUu0gffH

--HG--
extra : rebase_source : 6ef0834840b54c3da3268114729b42a39de8e09e
2017-09-19 12:51:47 -07:00
Kit Cambridge 43440ab4cd Bug 1401236 - Don't reread already loaded data in `JSONFile#load`. r=Gijs
MozReview-Commit-ID: AHD5G453GHM

--HG--
extra : rebase_source : a3787ad99b167c4ff38e82540e3e36d7d8d28734
2017-09-19 09:59:27 -07:00
Jonathan Kingston 9914e60252 Bug 1272304 - Add disabled state to screen sharing permission r=florian
MozReview-Commit-ID: LsZmQD5fWzW

--HG--
extra : rebase_source : 8bb8a901290ec651c23fbc8a69b323c501587920
2017-08-12 18:54:24 +01:00
Mike de Boer 9cb7adbcfc Bug 1354536 - Part 2 - Add an option to ActivityStreamLinks.getHighlights() to allow results to be returned including favicons. r=Mardak
MozReview-Commit-ID: 5NCTCtooScy

--HG--
extra : rebase_source : b01f5e74b29d43fc8635919f1618e0cf2980b85b
2017-09-19 16:17:09 +02:00
Johann Hofmann 0c43717c52 Bug 1399478 - Fix buttonhighlight for doorhangers without a mainaction. r=steveck
We allow doorhangers to optionally disable the blue button
highlight for their main actions, but didn't account for the
fact that we display a default "OK" button when no mainAction
was provided.

MozReview-Commit-ID: 6ndWju3ytyq

--HG--
extra : rebase_source : 7ff7f85ed7cd538a1b499bf51e4cb11594a83a42
2017-09-16 15:30:50 +02:00
Tim Nguyen 3a0eabdbc1 Bug 1387582 - Add toolbar_text color property to theming API. r=dao,mikedeboer
MozReview-Commit-ID: KjKVjFD4axN

--HG--
extra : rebase_source : 8e47b2a3f75366208e45792d6ec34e0a36ac3ecd
2017-08-30 20:23:58 +07:00
Kris Maglione a444efbbd7 Bug 1399346: Make sure channel is QIed to nsIChannel before wrapping. r=trivial
MozReview-Commit-ID: EyKcc9irD8H

--HG--
extra : rebase_source : 792b380f82b018328e7f1745874f4189961001da
extra : amend_source : 853be08c5463d550280f6e1f55e87f4858b24647
2017-09-11 21:44:30 -07:00