Commit Graph

565710 Commits

Author SHA1 Message Date
Junior Hsu
51ac771e2d Bug 870460 - Part 1: Let cookie db startup-read off-main-thread. r=nwgh, r=jdm, data-r=francois
--HG--
extra : source : 6c48185764430d35558cf6a0174bc447674e8d58
2017-08-29 18:16:27 +08:00
Dragana Damjanovic dd.mozilla@gmail.com
dc9395abcf Bug 1410146 - Fix UnknownDecoder. r=mayhemer 2017-10-24 14:23:00 -04:00
Maxime Vaillancourt
68de1114a3 Bug 1411199 - CamelCase all aboutdebugging component files. r=jdescottes
--HG--
rename : devtools/client/aboutdebugging/components/aboutdebugging.js => devtools/client/aboutdebugging/components/Aboutdebugging.js
rename : devtools/client/aboutdebugging/components/panel-header.js => devtools/client/aboutdebugging/components/PanelHeader.js
rename : devtools/client/aboutdebugging/components/panel-menu.js => devtools/client/aboutdebugging/components/PanelMenu.js
rename : devtools/client/aboutdebugging/components/panel-menu-entry.js => devtools/client/aboutdebugging/components/PanelMenuEntry.js
rename : devtools/client/aboutdebugging/components/target-list.js => devtools/client/aboutdebugging/components/TargetList.js
rename : devtools/client/aboutdebugging/components/addons/controls.js => devtools/client/aboutdebugging/components/addons/Controls.js
rename : devtools/client/aboutdebugging/components/addons/install-error.js => devtools/client/aboutdebugging/components/addons/InstallError.js
rename : devtools/client/aboutdebugging/components/addons/panel.js => devtools/client/aboutdebugging/components/addons/Panel.js
rename : devtools/client/aboutdebugging/components/addons/target.js => devtools/client/aboutdebugging/components/addons/Target.js
rename : devtools/client/aboutdebugging/components/tabs/panel.js => devtools/client/aboutdebugging/components/tabs/Panel.js
rename : devtools/client/aboutdebugging/components/tabs/target.js => devtools/client/aboutdebugging/components/tabs/Target.js
rename : devtools/client/aboutdebugging/components/workers/multi-e10s-warning.js => devtools/client/aboutdebugging/components/workers/MultiE10sWarning.js
rename : devtools/client/aboutdebugging/components/workers/panel.js => devtools/client/aboutdebugging/components/workers/Panel.js
rename : devtools/client/aboutdebugging/components/workers/service-worker-target.js => devtools/client/aboutdebugging/components/workers/ServiceWorkerTarget.js
rename : devtools/client/aboutdebugging/components/workers/target.js => devtools/client/aboutdebugging/components/workers/Target.js
2017-10-24 22:59:21 -04:00
Nicole Byer
8f2ad475dc Bug 1410067 - Changed use of 2^62 to Number.MAX_SAFE_INTEGER (represents 2^53 - 1) to avoid faulty behavior. r=mikedeboer 2017-10-24 13:58:55 -03:00
Andrea Marchesini
acd3aaaa13 Bug 1411520 - nsMultiplexInputStream must use CancelableRunnable because it can be used in workers, r=bkelly 2017-10-25 20:18:58 +02:00
Dylan Roeh
afc0471f35 Bug 1411529 - Remove nsIDOMHTMLImageElement usage from GeckoViewContent.js r=snorp 2017-10-25 10:48:08 -05:00
Andrea Marchesini
faba121103 Bug 1409496 - Cleaning data per domain, must delete localStorage data, r=asuth 2017-10-25 19:14:34 +02:00
cku
3ccdb4a184 Bug 1402157 - Disassociate a frame with an image loader if that frame indeed has any image request. r=heycam
Before enable stylo, an image request is always been resolved before the
creation time of that request object[1].
As a result, in AddAndRemoveImageAssociations, we always associate the request
objects of style images with the given frame(since they are resolved).

After enable stylo, an image request is resolved after that object been created[2].
We may hit the assertion reported in this bug by the following senario:
1. AddAndRemoveImageAssociations is called. The image request is not resolved
   yet, so we do not associate that frame with that image request.
2. That image request is been resolved via nsStyleXXXX::FinishStyle.
3. Style changed. AddAndRemoveImageAssociations is called again. We try to
   dis-associate the frame with image request and hit this assertion since
   this frame is not associate with any image request at step #1.

[1]
We use this constructor if the backend is gecko
https://hg.mozilla.org/mozilla-central/file/5ed2f3c94155/layout/style/nsStyleStruct.cpp#l2131
[2]
We use this constructor if the backend is stylo
https://hg.mozilla.org/mozilla-central/file/5ed2f3c94155/layout/style/nsStyleStruct.cpp#l2147
MozReview-Commit-ID: 22trSbdogUH

--HG--
extra : source : 835239788497126e3be33a0dbbb0543e94fc9f18
extra : amend_source : b3e94ac2c639d89bac4745350f88d3383e6faf76
2017-10-13 14:03:44 +08:00
Jonathan Watt
04cefe5bfc Bug 1411546 - Make Eclipse CDT handle .jsm and .xul files. r=botond 2017-10-25 17:30:39 +01:00
Geoff Brown
b47b29116e Bug 1400323 - Disable test browser_stayopenmenu.js on osx/debug for on-going intermittent failures; r=me,test-only
As suggested - thanks :mak!
2017-10-25 09:53:58 -06:00
Sebastian Hengst
c84fe67114 Backed out 2 changesets (bug 1406908) for failing own xpcshell test. r=backout
Backed out changeset 6941e33afc7d (bug 1406908)
Backed out changeset 291c46b79fa2 (bug 1406908)
2017-10-25 17:39:15 +02:00
Ryan Hunt
62034bb874 Mark SourceRotatedBuffer methods as override to silence warnings (bug 1409871 part 22, r=nical)
MozReview-Commit-ID: 1xNF8sfXukg

--HG--
extra : rebase_source : f206492e122aa1b747ae555fc84e7f84f843cb86
2017-10-20 16:32:39 -04:00
Ryan Hunt
8ba74ee098 Add documentation for the new rotated buffer subclasses. (bug 1409871 part 21, r=nical)
MozReview-Commit-ID: E2XejdUju9Q

--HG--
extra : rebase_source : cda331b55f4af893a0d9e81f405c527bedb07cb2
2017-10-20 12:48:20 -04:00
Ryan Hunt
52d754392b Be sure to unlock the old back buffer before we release it. (bug 1409871 part 20, r=nical)
MozReview-Commit-ID: HR9EiYrDeqT

--HG--
extra : rebase_source : fe6f7f6367f2d2b5d4b09d49f4a90f7994c82618
2017-10-20 12:28:41 -04:00
Ryan Hunt
c70e6c5067 Remove mInAsyncPaint and move locking new back buffer into BeginPaint (bug 1409871 part 19, r=nical)
mInAsyncPaint is only needed because the code using CreateBuffer expects the
buffer to be locked when it is returned. This isn't necessary because we can
now lock in BeginPaint.

MozReview-Commit-ID: 8WazvBKMbvb

--HG--
extra : rebase_source : d41fd1261565800b2d35dc531958b85eacdf4463
2017-10-18 15:31:15 -04:00
Ryan Hunt
1966a0614d Remove BeginPaintBuffer (bug 1409871 part 18, r=nical)
Now that BeginPaintBuffer and BeginPaint are both implemented by content client,
I think it makes sense to just merge them into one method. This simplifies the
interface clients have to use.

MozReview-Commit-ID: 8bjH6WcpZS9

--HG--
extra : rebase_source : 1b22549c03299e1b1b9ba8a04f3c3e428577e062
2017-10-18 15:20:14 -04:00
Ryan Hunt
1b92ee86e6 Clean up some methods on ContentClient (bug 1409871 part 17, r=nical)
This commit does some more cleanup on the content client class hierarchy.
Some methods were virtual or instance methods when they didn't need to be.

MozReview-Commit-ID: 2y2D3zYtYvM

--HG--
extra : rebase_source : 41649182f1d99daae600568722f0b8615d27fe26
2017-10-18 14:54:26 -04:00
Ryan Hunt
d15300f70e Fix PrepareDrawTargetForPainting (bug 1409871 part 16, r=dvander)
CapturedPaintState::mTarget is actually a dual draw target to the black and
white draw targets, so this code will have the white draw target cleared black
and then white. This isn't incorrect, it's just wasteful.

MozReview-Commit-ID: ItgiSmegPK6

--HG--
extra : rebase_source : 13553bb1ec3c4b96a585ba4af4e8ff31f485e89e
2017-10-18 14:46:54 -04:00
Ryan Hunt
ab4e62caa0 Use a rect instead of a region for UpdateDestinationFrom (bug 1409871 part 15, r=nical)
UpdateDestinationFrom actually only uses a rect, so it's best to not be
misleading and force the clients of it to do the conversion.

MozReview-Commit-ID: EsUv3apqnku

--HG--
extra : rebase_source : 02fdd8f7ede0e1c4712a721e14a4ad809b6dff14
2017-10-18 14:35:18 -04:00
Ryan Hunt
9a100d70b9 Cleanup rotated buffer declarations and add some documentation. (bug 1409871 part 14, r=nical)
This organizes the rotated buffer declarations and adds some documentation.

MozReview-Commit-ID: 5r24RiUMM6o

--HG--
extra : rebase_source : 5279f7f754d41b06576f852672450d1d4bca803f
2017-10-18 14:10:56 -04:00
Ryan Hunt
d5a7ec4f84 Update comments for ContentClient (bug 1409871 part 13, r=nical)
This could be a part of the previous commit, but I omitted it to keep the size
down. Just some updates to comments and documentation.

MozReview-Commit-ID: HkCOSIQhBNv

--HG--
extra : rebase_source : bd94fa88d384123219528a6cf34c86e17f9de201
2017-10-18 13:42:19 -04:00
Ryan Hunt
1eea1ecca9 Kill RotatedContentBuffer (bug 1409871 part 12, r=nical)
This commit is the guts of the refactoring.

This commit removes rotated content buffer, and moves the necessary
functionality to content client. All content clients now do not inherit from
rotated content buffer, but contain a refptr to a rotated buffer.

For the basic content client, this is a DrawTargetRotatedBuffer.
For the remote content client, this is a RemoteRotatedBuffer.
The double buffered content client contains an additional RemoteRotatedBuffer
for the front buffer.

Each derived class of content client only needs to implement a method to
create its own rotated buffer. The rest is handled by the base content
client. The remote content clients still override some additional methods
to sync buffers and do IPC.

MozReview-Commit-ID: B9vcSi8UYhm

--HG--
extra : rebase_source : f4b1dcb3cd06f7d0da7ed85e5d3f4bf5ec445e7f
2017-10-16 19:45:11 -04:00
Ryan Hunt
4fad2db879 Move buffer related decisions into their own function. (bug 1409871 part 11, r=nical)
This commit splits off the part of BeginPaint that makes the decision about
whether to keep the buffer, its surface type, its content type, and the regions
to invalidate or paint.

MozReview-Commit-ID: JcPlv8GiRpA

--HG--
extra : rebase_source : 1867264e82fde108ff52ea295907851ce25dbff5
2017-10-12 19:52:29 -04:00
Ryan Hunt
81ae2fb680 Add RotatedBuffer::AdjustTo. (bug 1409871 part 10, r=nical)
This commit adds a method to rotated buffer to perform the adjusting to the new
destination rect, and potential unrotating that may need to happen. The goal of
this is to simplify and prepare BeginPaint to be moved to content client.

MozReview-Commit-ID: B4qeZqLjORR

--HG--
extra : rebase_source : 1878d562df2904fff8fbbf805e1d6b5d8533e337
2017-10-12 18:37:29 -04:00
Ryan Hunt
f84be40adb Remove PaintState::mDidSelfCopy. (bug 1409871 part 9, r=nical)
Miscellaneous cleanup, PaintState doesn't need to know this as no one uses
this information outside of the content client classes.

MozReview-Commit-ID: 6K8LxEPvp4V

--HG--
extra : rebase_source : 8bef61a47f423dd83ac9ea39b84f064bd7681e0c
2017-10-12 17:24:50 -04:00
Ryan Hunt
cb31baf93b Move mFrontAndBackBufferDiffer to ContentClientDoubleBuffered. (bug 1409871 part 8, r=nical)
Miscellaneous cleanup, ContentClientSingleBuffered doesn't need to track if
the front and back buffer differ.

MozReview-Commit-ID: IvAw0b92jsh

--HG--
extra : rebase_source : 8660ea8c3dfa8d34789e8f9b9ad6a58726879e49
2017-10-12 12:58:17 -04:00
Ryan Hunt
3c987579ae Refactor copying from the old buffer to the new buffer to use RotatedBuffer. (bug 1409871 part 7, r=nical)
This commit refactors part of BeginPaint to treat the new and old back buffer's
as rotated buffers. The goal of this is to simplify and prepare this function to
be moved out of rotated content buffer.

MozReview-Commit-ID: 5iHeMbCWfpo

--HG--
extra : rebase_source : a57ae63ba8b40ffa5558016f52860057bc0aecb6
2017-10-12 12:35:37 -04:00
Ryan Hunt
56b0784deb Add a DrawTargetRotatedBuffer. (bug 1409871 part 6, r=nical)
This adds a new implementation of rotated buffer, which is backed by draw
targets. This will be the rotated buffer that basic content clients use.

MozReview-Commit-ID: Knn79yEFnxN

--HG--
extra : rebase_source : 49f72c0974a6ba9715e9b0cea765ba45660475c5
2017-10-11 16:26:10 -04:00
Ryan Hunt
c654d74c54 Use a RemoteRotatedBuffer for the front buffer of ContentClientDoubleBuffered. (bug 1409871 part 5, r=nical)
The front buffer for a double buffered content client is really just another
rotated buffer, so it can simplify the code to use the class we just added.
The goal is to have the back and the front buffer using remote rotated buffers,
but this is a good first step.

Note: The front buffer is represented as a Maybe<RemoteRotatedBuffer> in this
commit, but in the future it will be a RefPtr. That can't be done yet, because
rotated buffer can't implement refcounting in addition to compositable client.

MozReview-Commit-ID: Czk3otkf1pb

--HG--
extra : rebase_source : e6b5e66f47ccdc1c75a3a2a9c73efc2b82a25890
2017-10-11 15:22:57 -04:00
Ryan Hunt
bb11dd83fa Add a RemoteRotatedBuffer. (bug 1409871 part 4, r=nical)
This adds a new implementation of rotated buffer, which is backed by texture
clients. This will be the rotated buffer that remote content clients use.

MozReview-Commit-ID: 3Y776uk5mFG

--HG--
extra : rebase_source : f193eec8af60a6e70345312cda0ce86cac70a7a2
2017-10-11 14:34:41 -04:00
Ryan Hunt
3e243339a6 Move DrawTo to RotatedBuffer. (bug 1409871 part 3, r=nical)
Similar to the previous patch, more functionality can be moved to rotated
buffer and out of rotated content client.

MozReview-Commit-ID: FNqfonyBBq9

--HG--
extra : rebase_source : cfc9c10d31baa48163107d0cf36c28a8ffda4ebb
2017-10-11 15:31:20 -04:00
Ryan Hunt
359bb9b20b Move UpdateDestinationFrom to RotatedBuffer. (bug 1409871 part 2, r=nical)
UpdateDestinationFrom is a useful method for any rotated buffer. This will be
needed when content clients are no longer rotated buffers.

Note: EnsureBuffer and EnsureBufferOnWhite were moved out of
UpdateDestinationFrom because I'd like to kill those methods, and so the calls
were moved to all users of UpdateDestinationFrom.

MozReview-Commit-ID: 2e3HhUsZ6iw

--HG--
extra : rebase_source : 73532ad481a4c0b1af63c4647e0e8f7f4c5b2dc3
2017-10-11 13:40:16 -04:00
Ryan Hunt
54735c4be0 Remove ContentClientRemote. (bug 1409871 part 1, r=nical)
This class doesn't seem to be necessary and only complicates the class
hierarchy.

MozReview-Commit-ID: 6dRXce1vB9T

--HG--
extra : rebase_source : 10b398f952979c4b0db4b95bd3a460a0cf00a9f8
2017-10-11 12:43:39 -04:00
Jan de Mooij
4170e0f889 Bug 1405766 - Reject all native functions in CloneFunctionObject. r=arai f=bz
--HG--
extra : rebase_source : 7f7812487e97f6770aea61933d37d4d2bfdf5b97
2017-10-25 17:21:21 +02:00
Ben Kelly
9dad954e1b Bug 1409618 Make search tests get the channel URI before the channel is destroyed. r=florian 2017-10-25 08:23:42 -07:00
Andrea Marchesini
243e3d19f0 Bug 1411506 - SourceBuffer::AppendFromInputStream must check if the stream has been already closed, r=aosmond 2017-10-25 16:58:45 +02:00
Phil Ringnalda
05a3099e6b Backed out 2 changesets (bug 1400563) for Windows non-stylo mochitest-chrome leak
CLOSED TREE

Backed out changeset c03ca22ae138 (bug 1400563)
Backed out changeset a3d2956de12a (bug 1400563)

MozReview-Commit-ID: 1lXcNIDPKC1
2017-10-25 07:53:23 -07:00
Randell Jesup
cd5932c5c4 Bug 1400563: fix missing override r=bustage on a CLOSED TREE 2017-10-25 10:41:05 -04:00
Phil Ringnalda
e4524a80b9 Backed out changeset fd0492c07da0 (bug 1409449) for browser-chrome, xpcshell and marionette bustage
CLOSED TREE

MozReview-Commit-ID: IcOEJ0l1yeJ
2017-10-25 07:38:39 -07:00
Michael Ratcliffe
d4b29e27fe Bug 1410119 - Inspector: Switch to ES6 classes r=gl
MozReview-Commit-ID: 6GDY1MloCAd
2017-10-24 13:33:42 +01:00
Tim Taubert
c29f1dbeb7 Bug 1403818 - Fix WebAuthn IPC crashes by keeping the child actor alive until process shutdown r=jcj
Summary:
We currently call ChildActor.send__delete() when clearing an active transaction
and thereby destroy the child actor. If that happens, e.g. due to a tab switch,
while a message is in the IPC buffer waiting to be delivered, we crash.

This patch creates the child actor lazily as before, but keeps it around until
the WebAuthnManager goes away, which will be at process shutdown.

Each transaction now has a unique id, that the parent process will include in
any of the ConfirmRegister, ConfirmSign, or Abort messages. That way we can
easily ignore stale messages that were in the buffer while we started a new
transaction or cancelled the current one.

Reviewers: jcj

Reviewed By: jcj

Bug #: 1403818

Differential Revision: https://phabricator.services.mozilla.com/D149
2017-10-25 15:59:53 +02:00
Randell Jesup
e166144d3b Bug 1400563: more DataChannelConnection shutdown cleanup r=drno 2017-10-25 09:12:59 -04:00
Dragana Damjanovic
db7c97a2bb Bug 1406908 - Test for response code 425. r=mcmanus 2017-10-10 11:21:00 -04:00
Dragana Damjanovic
79e995a437 Bug 1406908 - Implement 425 (Too Early). r=mcmanus, r=mayhemer 2017-10-19 00:06:00 -04:00
Dragana Damjanovic dd.mozilla@gmail.com
026c72f278 Bug 1410147 - On MacOS HAS_CONNECTX should be set for Darwin version greater than and equal 15. r=bagder 2017-10-19 09:45:00 -04:00
Ruturaj K. Vartak
7ad7830d76 Bug 1411202 - Broken Launchpad for linux developer enviornment. r=rickychien 2017-10-24 02:56:00 -04:00
Dragana Damjanovic
7120f32f23 Bug 1409449 - Do not show auth-dialog for triggeringPrincipal==SystemPrincipal. r=ckerschb, r=valentin, r=francois 2017-10-25 08:54:31 -04:00
David Parks
1e144210c0 Bug 1410140 - Copy file dialog fields from NPAPI process. r=jimm
The OpenFileNameIPC object specifies information in an LPOPENFILENAMEW in an IPDL-friendly structure.  This properly copies the file name and filter fields.
2017-10-21 15:02:28 -07:00
Sebastian Hengst
ab30e4a6f8 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-25 13:07:21 +02:00
Sebastian Hengst
dd47bee646 Backed out changeset f67f8342b981 (bug 1357082) on request from jmaher for still high frequency. r=backout a=backout
MozReview-Commit-ID: 5aI3SCZVaT9

--HG--
extra : amend_source : eecf508380597815c7ad8199e8f3ac2b8ab53d35
2017-10-25 13:02:51 +02:00