Wes Kocher
4253ce7dce
Merge inbound to m-c a=merge
...
MozReview-Commit-ID: 7zOjePOWzOM
2017-09-28 16:56:44 -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
Shane Caraveo
d7ebe7ee66
Bug 1305237 Expose frameAncestors to webextensions, r=bz,kmag
...
MozReview-Commit-ID: HpneTIKPoS1
2017-09-27 07:58:17 -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
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
Kris Maglione
92b4999d58
Bug 1399346: Make sure channel is QIed to nsIChannel before wrapping. r=trivial
...
MozReview-Commit-ID: EyKcc9irD8H
2017-09-11 21:44:30 -07:00
Sebastian Hengst
3da80f316b
merge mozilla-inbound to mozilla-central. r=merge a=merge
...
MozReview-Commit-ID: CmMBcpJapLy
2017-09-12 11:35:15 +02:00
Kris Maglione
53b1a84d5d
Bug 1398642: Bustage fix bustage fix. r=me CLOSED TREE
...
MozReview-Commit-ID: 4jTSVg6L3is
2017-09-11 21:59:15 -07:00
Kris Maglione
570585705f
Bug 1398642: Follow-up: Fix terrible error checking code. r=me CLOSED TREE
...
MozReview-Commit-ID: 1xQNYwZiqsj
2017-09-11 21:18:42 -07:00
Kris Maglione
a59115a44c
Bug 1398642: Several minor WebRequest optimizations. r=mixedpuppy
...
MozReview-Commit-ID: 4vsDScMkyzA
2017-09-10 18:37:52 -07:00
Kris Maglione
232f1e847d
Bug 1397448: Part 1 - Generate WebRequest message objects in WebRequest.jsm. r=mixedpuppy
...
Aside from moving this logic closer to the place the input data is generated,
this significantly reduces the number of cross-compartment wrappers involved
in creating those messages, especially with JSM global sharing enabled.
MozReview-Commit-ID: 6IvetcHnMfC
2017-09-06 17:43:38 -07:00
Shane Caraveo
60f1dc1af2
Bug 1398622 fix ws handling in contentpolicymanager, and fix stupid error. r=kmag
...
MozReview-Commit-ID: EmPvtRrnrnI
2017-09-10 21:37:27 -07:00
Kris Maglione
bd93d990bf
Bug 1397536: Avoid newURI overhead for MatchPattern. r=ehsan,mixedpuppy
...
Ehsan, can you please review the (trivial) WebIDL changes, and Shane the
WebRequest logic?
The change to allow strings in MatchPattern arguments removes a huge amount of
XPConnect overhead that accumulates when creating nsIURI objects for
WebRequest processing.
The change to re-use existing URI objects removes a huge amount of URI
creation overhead.
MozReview-Commit-ID: 3DJjAKJK1Sa
2017-09-06 21:56:45 -07:00
Kris Maglione
4fbcf97b35
Bug 1396856: Part 4 - Update WebRequest.jsm to use ChannelWrapper bindings. r=mixedpuppy
...
MozReview-Commit-ID: 7s7SOQ1XVaw
2017-09-06 21:52:24 -07:00
Kris Maglione
d2830a9581
Bug 1255894: Part 7 - Expose response stream filtering via the webRequest API. r=mixedpuppy
...
MozReview-Commit-ID: AErBFGJyFg5
2017-09-02 13:37:31 -07:00
Shane Caraveo
cf5699a2db
Bug 1388889 fix null principal handling for webrequest, r=kmag
...
MozReview-Commit-ID: B8qK4ZnaO9i
2017-08-25 14:12:42 -07:00
Shane Caraveo
3011601eaa
Bug 1373646 add nsIProxyInfo to webrequest, r=kmag
...
MozReview-Commit-ID: pc98rgtkVc
2017-08-23 10:43:04 -07:00
Shane Caraveo
802866c20d
Bug 1388289 fix challenger info for proxy auth requests, r=kmag
...
MozReview-Commit-ID: D0Tin2bK8R4
2017-08-17 19:56:22 -07:00
Shane Caraveo
80a11056a8
Bug 1393909 remove sync messaging from WebRequest, r=kmag
...
MozReview-Commit-ID: BrZ6FgP7Uyj
2017-08-25 12:36:28 -07:00
Shane Caraveo
51d0da99dc
Bug 1368527 add new on-before-connect notification to httpChannel, r=dragana,kmag
...
MozReview-Commit-ID: 8hiAgY4KzDB
2017-08-15 13:11:50 -07:00
Shane Caraveo
415d4e808d
Bug 1386533 fix host permitted matching, r=kmag
...
MozReview-Commit-ID: 81ANT5R1671
2017-08-02 15:33:17 -07:00
Masatoshi Kimura
c0943e4f30
Bug 1326520 - Rename nsIURI.path to pathQueryRef. r=valentin.gosu
...
MozReview-Commit-ID: DqJdTGopR9G
2017-07-29 20:50:21 +09:00
Shane Caraveo
9908bc12e8
Bug 1380186 implement SimpleChannel Parent/Child IPC, r=kmag,mayhemer
...
MozReview-Commit-ID: 8zgF2MLwdu2
2017-07-27 13:34:54 -07:00
Shane Caraveo
1fe97eb22e
Bug 1382834 fix ws/wss protocol matching, r=kmag
...
MozReview-Commit-ID: 6IKTPA1sJgh
2017-07-24 17:00:29 -07:00
Shane Caraveo
0d1befea59
Bug 1271354 support moz-extension in webrequests, r=kmag
...
MozReview-Commit-ID: AFP68jIdHHo
2017-07-06 13:08:31 -07:00
Shane Caraveo
5107717e94
Bug 1367478 support websocket ws/wss protocol in matchpattern, r=kmag
...
MozReview-Commit-ID: 6cnRyWRnRzT
2017-06-07 12:16:14 -07:00
Mark Banner
9916415caf
Bug 1371292 - Clean up more ESLint global definitions in configuration files in toolkit/ and browser/. r=mossop
...
MozReview-Commit-ID: 5KC23kzaCFN
2017-06-08 10:59:12 +01:00
Kris Maglione
4f623b6890
Bug 1322235: Part 3 - Use MatchPatternSet for whiteListedHosts and webRequest. r=aswan,zombie
...
This is the second step to migrating the policy service to pure native code,
with similar impacts and reasoning to the previous patch.
MozReview-Commit-ID: L5XdPzWNZXM
2017-06-03 22:11:20 -07:00
Shane Caraveo
f90c7499e5
Bug 1338860 fix onErrorOccurred to handle some additional errors, r=aswan,kmag
...
MozReview-Commit-ID: I5uZmhWFBUd
2017-06-02 14:16:48 -07:00
Shane Caraveo
2a84eab190
Bug 1367138 fix webrequest frameId and parentFrameId, r=aswan
...
MozReview-Commit-ID: F8lD8vvfSQ5
2017-06-02 12:05:13 -07:00
Shane Caraveo
6361261c05
Bug 1366710 set webrequest type to xmlhttprequest for fetch requests, r=aswan
...
MozReview-Commit-ID: GkhojDrmWC5
2017-05-23 13:33:55 -07:00
Andrew McCreight
a0b16d7df1
Bug 1366023 - Explicitly import Services.jsm in a few content scripts. r=Gijs
...
MozReview-Commit-ID: 5HS9tXk3oa9
2017-05-12 15:57:53 -07:00
Florian Quèze
ff53eb9a63
Bug 1353542 - massive script-generated patch converting Task.async and Task.spawn calls, and generators clearly identifiable as tasks, rs=Mossop.
2017-05-12 14:42:39 +02:00
Florian Queze
c9a0637249
Bug 1359111 - stop using BrowserUtils.makeURI, r=jaws.
2017-04-25 09:21:49 +02:00
Shane Caraveo
19e21ac660
Bug 1326298 implement off-main-thread delivery with start/stop/error listeners, r=kmag
...
MozReview-Commit-ID: Ke4NsthrbP2
2017-04-18 15:50:53 -07:00
Florian Queze
ddf0cda8da
Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj.
2017-04-14 18:29:12 +02:00
Kris Maglione
bdb8ae3dfd
Bug 1317697: Split ExtensionContent.jsm into a stub process script. r=mixedpuppy
...
MozReview-Commit-ID: 4vn0ERZiBQd
2017-04-14 17:00:51 -07:00
Florian Queze
d3c36892fa
Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws.
2017-04-14 21:51:38 +02:00
Sebastian Hengst
4cd95d4a02
Backed out changeset 18d45aa984d6 (bug 1355161)
2017-04-14 23:39:23 +02:00
Sebastian Hengst
42670ceca0
Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout
2017-04-14 23:39:22 +02:00
Florian Queze
9b4f73599f
Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws.
2017-04-14 21:51:38 +02:00
Florian Queze
35cd8ba883
Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj.
2017-04-14 18:29:12 +02:00
Kris Maglione
e6a8ac0beb
Bug 1355120: Get rid of top-level window ID tracking. r=aswan
...
MozReview-Commit-ID: y7DzMxXBot
2017-04-12 14:12:22 -07:00
Tomislav Jovanovic
b916f5f3e6
Bug 1345225 - Check if webRequest filters overlap with host permissions r=kmag
...
MozReview-Commit-ID: 1tMHynv9FBO
2017-03-26 20:53:28 +02:00