Commit Graph

966 Commits

Author SHA1 Message Date
Kartikaya Gupta
ec035abf34 Bug 1351777 - Remove aSuccess argument to RenderFrame constructor. r=dvander
Instead we can use the otherwise-unused function to check if initialization worked.
Technically, because of the way RenderFrame construction works, whether or not
initialization succeeds is exactly dependent on whether or not the frameloader is
non-null, so we could even just use that to check success. But this feels slightly
more readable/cleaner.

MozReview-Commit-ID: CGiIAA1h6V7

--HG--
extra : rebase_source : 2d4504f7d5fde3c394edca14fe01840c1738d197
2017-03-31 11:43:21 -04:00
Kartikaya Gupta
c44b0fcca0 Bug 1351777 - Remove unnecessary cast and more tightly scope a local var. r=dvander
MozReview-Commit-ID: JEfQOdQ2HNJ

--HG--
extra : rebase_source : 4cd5e8df775b930b9fea487cbf447b3310a2bcbb
2017-03-31 11:43:21 -04:00
Markus Stange
7c6c13efdf Bug 1348426 - Add profiler labels to RecvSync/Async/RpcMessage that include the message name. r=billm
MozReview-Commit-ID: F7MZhgV12DZ

--HG--
extra : rebase_source : c97e4914f4292ac52338a691dc44810f7dda7486
2017-03-29 17:43:21 -04:00
Sebastian Hengst
f5e68bc3e1 Backed out changeset ef22dba0dac5 (bug 1316683) for various test failures, e.g. xpcshell netwerk/test/unit/test_bug826063.js and browser-chrome browser/components/downloads/test/browser/browser_iframe_gone_mid_download.js. r=backout on a CLOSED TREE 2017-03-22 20:28:39 +01:00
Ehsan Akhgari
101a58b3c6 Bug 1316683 - Avoid going into SpiderMonkey for retrieving origin attributes; r=baku
Our caller is C++ code, and the implementations are all also written in C++,
so there is no reason to go through SpiderMonkey here.  This patch also makes
nsILoadContext builtinclass to ensure that the implementation is always native.
2017-03-22 14:13:31 -04:00
Sebastian Hengst
20fb8455d6 Backed out changeset 7e47807067a6 (bug 1316683) for Windows bustage. r=backout 2017-03-22 15:15:27 +01:00
Ehsan Akhgari
9093d5f005 Bug 1316683 - Avoid going into SpiderMonkey for retrieving origin attributes; r=baku
Our caller is C++ code, and the implementations are all also written in C++,
so there is no reason to go through SpiderMonkey here.  This patch also makes
nsILoadContext builtinclass to ensure that the implementation is always native.
2017-03-22 10:03:26 -04:00
Andrea Marchesini
507c00cb9f Bug 1343933 - Renaming Principal classes - part 4 - ContentPrincipal, r=qdot
--HG--
rename : caps/nsPrincipal.cpp => caps/ContentPrincipal.cpp
rename : caps/nsPrincipal.h => caps/ContentPrincipal.h
2017-03-22 11:39:31 +01:00
Michael Layzell
838290fd27 Bug 1337056 - Part 12: Send down permissions when calling createAboutBlankContentViewer, r=baku
MozReview-Commit-ID: LigZnHM34CC
2017-03-21 11:08:03 -04:00
Sebastian Hengst
e6878260b4 Backed out changeset fecc6abcf708 (bug 1316683) for bustage at docshell/base/SerializedLoadContext.cpp:65:61. r=backout on a CLOSED TREE 2017-03-21 15:47:15 +01:00
Ehsan Akhgari
28ff218127 Bug 1316683 - Avoid going into SpiderMonkey for retrieving origin attributes; r=baku
Our caller is C++ code, and the implementations are all also written in C++,
so there is no reason to go through SpiderMonkey here.  This patch also makes
nsILoadContext builtinclass to ensure that the implementation is always native.
2017-03-21 10:05:00 -04:00
Jessica Jong
3c909e1184 Bug 1344642 - Part 1: Cleanup dom.forms.datepicker related code. r=smaug
This patch basically reverts Bug 825294.

--HG--
extra : rebase_source : 58b235bfddb5acd1ec0cf1afd8f34cbb8c4e09c1
2017-03-17 11:01:57 +08:00
Kartikaya Gupta
77502d45a4 Bug 1345657. r=dvander
MozReview-Commit-ID: LRCtitKvGbJ
2017-03-15 15:30:10 -04:00
Evelyn Hung
00c1af4647 Bug 1347117 - Add Activate/Deactivate/ParentActivated to PContentBridge; r=billm
In a nested content process setup, FocusManager needs to activate focus
to a remote frame through ContentBridgeParent, not ContentParent.
2017-03-15 02:00:00 +01:00
Stone Shih
229b4ba331 Bug 606885 - Fire drag events with keyboard modifiers. r=enn
--HG--
extra : rebase_source : c6e4ac37ea2397d86368cb59b0a68aa3a9f43d79
2017-02-17 11:29:42 +08:00
Mike Conley
3d3a3dce25 Bug 1342464 - Collect Telemetry on when a tab switch spinner is shown. r=billm,liuche, data-review=liuche
MozReview-Commit-ID: 1Ss2f9A2JtK

--HG--
extra : rebase_source : 8f71db7ec0796e7ed8828a7e297cf8c24ca91a0e
2017-03-04 14:19:22 -05:00
Mike Conley
4a3c059a83 Bug 1342927 - Don't fire MozTabChildNotReady if DocShell has become inactive or frameloader owner has dropped us. r=billm
MozReview-Commit-ID: 4lU5iFFv13V

--HG--
extra : rebase_source : 2bfc0ad4ca77eefb8edb7d3e8f4e3adf97d609d3
2017-03-05 13:25:42 -05:00
Mike Conley
e94e20a97b Bug 1342927 - Don't fire MozTabChildNotReady from TabParent if we've already presented. r=billm
The MozTabChildNotReady event is queued from the ProcessHangMonitor thread, and
that event might try to fire _after_ the main thread has received notification
that a layer tree was made ready. If that occurs, firing the MozTabChildNotReady
event makes no sense, as clearly the TabChild _became_ ready by the time the
event was about to be dispatched.

MozReview-Commit-ID: Iigtc0SqzeU

--HG--
extra : rebase_source : c01eedb27133d37f348a3b697358d0bfa5420c41
2017-03-04 14:12:38 -05:00
Mike Conley
4b54fc5f74 Bug 1342927 - Fire a MozTabChildNotReady event on a frameloader if force-painting a tab without a TabChild. r=billm
MozReview-Commit-ID: D8vgvQ3MLJN

--HG--
extra : rebase_source : be427f57fdf227758bd2d55517c7f772b43d7d6d
2017-02-28 17:22:02 -05:00
Sebastian Hengst
d936fbcd20 Backed out changeset 2f9561ccd777 (bug 1342927) for asserting at chrome://browser/content/tabbrowser.xml:3995:25 e.g. in browser/browser_menu_item_01.js. r=backout 2017-03-04 11:50:53 +01:00
Mike Conley
bae06d41c9 Bug 1342927 - Fire a MozTabChildNotReady event on a frameloader if force-painting a tab without a TabChild. r=billm
MozReview-Commit-ID: D8vgvQ3MLJN

--HG--
extra : rebase_source : 29192f938b57018eb947cb9d55a3ac3ab8621e76
2017-02-28 17:22:02 -05:00
Sebastian Hengst
83ba9a1193 Backed out changeset 7b38f4123214 (bug 1342927) for asserting @chrome://browser/content/tabbrowser.xml:3995:25. r=backout 2017-03-04 00:21:38 +01:00
Mike Conley
7e54395fcb Bug 1342927 - Fire a MozTabChildNotReady event on a frameloader if force-painting a tab without a TabChild. r=billm
MozReview-Commit-ID: D8vgvQ3MLJN

--HG--
extra : rebase_source : 29192f938b57018eb947cb9d55a3ac3ab8621e76
2017-02-28 17:22:02 -05:00
Trevor Saunders
e8562200c5 bug 1340579 - look up this DocAccessibleParent in live docs instead of using this in DocAccessibleParent::Destroy() r=davidb 2017-03-01 17:23:48 -05:00
Benjamin Smedberg
e2482f716f Bug 1338172 part E - make all the PPluginWidget stuff Windows-only. Rip out the GTK-specific native widget support from widget/gtk/nsWindow and elsewhere, r=jimm
MozReview-Commit-ID: J6E8sYcyX4U

--HG--
extra : rebase_source : 63aa9d4a603a7cc56e068ce05434fb7faceac751
extra : source : 9ee6c6f4e59c7967108a727a80e46d686b983a0b
2017-02-09 11:53:50 -05:00
Trevor Saunders
7e05a50676 bug 1341731 - propagate failures before working around them r=yzen 2017-02-24 10:26:27 -05:00
Eugen Sawin
c6533bef50 Bug 1322576 - [1.2] Add tracking protection attribute to nsILoadContext to allow for overriding of the global preference setting for individual DocShells. r=smaug 2017-02-22 14:57:37 +01:00
Trevor Saunders
8db37fbd19 bug 1338755 - split up SetCOMProxy() r=yzen 2017-02-17 09:06:26 -05:00
Trevor Saunders
9f62f9a5c1 bug 1339472 - keep a map from DocAccessibleParents to the actors themselves r=yzen 2017-02-14 18:10:03 -05:00
Wes Kocher
4468d77e14 Backed out 5 changesets (bug 1338172) for linux crashtest failures a=backout
Backed out changeset 9ee6c6f4e59c (bug 1338172)
Backed out changeset 1c92fbfca20a (bug 1338172)
Backed out changeset 907d9c3d1043 (bug 1338172)
Backed out changeset e4994ab9d628 (bug 1338172)
Backed out changeset 6209f07e1f26 (bug 1338172)

MozReview-Commit-ID: 3f4xBRcGPqM
2017-02-14 14:31:54 -08:00
Benjamin Smedberg
dc59402254 Bug 1338172 part E - make all the PPluginWidget stuff Windows-only. Rip out the GTK-specific native widget support from widget/gtk/nsWindow and elsewhere, r=jimm
MozReview-Commit-ID: J6E8sYcyX4U

--HG--
extra : rebase_source : 18a7bd7d5180606201d93a25c766df7285405094
extra : histedit_source : ae893f87b074a7a17a0e56f835977fea074f25e8
2017-02-09 11:53:50 -05:00
Bill McCloskey
c9fa914e2b Bug 1334572 - Move Activate/Deactivate messages from PBrowser to PContent (r=smaug)
MozReview-Commit-ID: IMSK1sjeAJb
2017-02-13 17:02:39 -08:00
Kartikaya Gupta
cf091ea0eb Bug 1328066 - Don't broadcast the live-resize events to all browser windows unnecessarily. r=mstange
The machinery for suppressing the displayport during live resizes
was using the Observer service. However, in the case of multiple
browser windows, this meant that all the open browser windows would
have their displayport suppressed if *any* of the browser windows
was being resized. This was mostly ok, as the displayport suppression
would be turned off once the resize ended. However, the code to
kick off a repaint with the unsuppressed displayport would only get
triggered on one of the windows (whichever happened to process the
unsuppress message last).

This patch stops using the Observer service for the implementation
machinery, and instead locates the active TabParent of the relevant
nsWindow, and invokes the displayport suppression directly on that.
This fixes the repainting bug and also avoids unnecessarily
broadcasting the suppression/unsuppression notification to windows
that don't neccessarily need it.

MozReview-Commit-ID: LBHOgOW9KUp
2017-02-01 10:38:16 -05:00
Trevor Saunders
edb970e875 bug 1334966 - make TabParent::GetTopLevelDocAccessible() only return documents that are top level r=eeejay
There can be cases where a non top level document currently has no parent
 document, for example when a child doc has been unbound from its parent but
 not yet reattached to a new outer doc.
2017-01-31 09:43:03 -05:00
Trevor Saunders
5e44465e8d bug 1333514 - fix race between PDocAccessibleConstructor messages and PBrowser::Destroy messages r=billm 2017-01-26 10:01:43 -05:00
Yura Zenevich
26f2c60483 Bug 1206711 - add support for HWND emulation for content top level docs on Windows. r=tbsaunde
MozReview-Commit-ID: GQ1LxCwtv3j
2017-01-24 09:45:25 -05:00
Masayuki Nakano
3227a842d7 Bug 1332195 part.2 Fix some nits of event handlers in TabChild, TabParent and PuppetWidget r=smaug
This patch fixes:

* some long lines
* some odd indent
* wrapping one line blocks with {}
* removing B2G specific block

in event handlers in TabChild, TabParent and PuppetWidget.

MozReview-Commit-ID: 6xMsNEDA5nv

--HG--
extra : rebase_source : 7f5ff8830842af9338085a31ac4b40d6c1fb91fe
2017-01-19 17:57:20 +09:00
Masayuki Nakano
4db09a4429 Bug 1332195 part.1 Event handlers in TabChild, TabParent and PuppetWidget should use "a" prefix for their arguments r=smaug
MozReview-Commit-ID: 2c7cbOigwfU

--HG--
extra : rebase_source : 61ab34ac7c680d68edf3773905ae4bb264045916
2017-01-19 17:27:15 +09:00
Trevor Saunders
71398a8500 bug 1331255 - annotate some IPC failure conditions r=eeejay 2017-01-18 16:09:45 -05:00
Kartikaya Gupta
31869bd5e8 Bug 1331509 - Extract the InitRenderingState function in TabChild and invoke it earlier from TabParent. r=dvander
MozReview-Commit-ID: 5nwvKLRYpx7

--HG--
extra : rebase_source : e014ef381aed8d41ab1ca838b47505ef70e1fa95
2017-01-17 15:52:45 -05:00
Kartikaya Gupta
ecefef8143 Bug 1331509 - Move InitRenderFrame call to TabParent construction. r=dvander
MozReview-Commit-ID: Cg0EDJ3uSmz

--HG--
extra : rebase_source : e14e45f8c606a447f9e55ab6d5a363ed81c07bc0
2017-01-17 15:52:45 -05:00
Kartikaya Gupta
169ad97fad Bug 1331509 - Extract a helper function to initialize the RenderFrameParent from TabParent. r=dvander
MozReview-Commit-ID: KMcpSQUax6z

--HG--
extra : rebase_source : e5e92eba2f61976712a0197a4a728d20ad43129e
2017-01-17 15:52:45 -05:00
Ryan VanderMeulen
43bd0eac0b Bug 1330966 - Add an ACCESSIBILITY guard around DocAccessibleParent usage in TabParent.cpp to fix --disable-accessibility bustage. r=dbolter
--HG--
extra : rebase_source : 76f36b70f0b135e947047f276442b612a0bf30b0
2017-01-13 11:45:07 -05:00
Trevor Saunders
235c3677ff bug 1329814 - fix race condition when shutting down a tab r=smaug
When TabChild recieves the Destroy message from its parent the doc accessibles
for that tab are shut down.  However if the Shutdown message sent by
DocAccessible::Shutdown() isn't recieved before the child process handles the
runnable that sends __delete__ to the tab parent actor the parent can send a
message to the already shut down doc accessible child actor.
2017-01-12 05:19:36 -05:00
Sebastian Hengst
6945ea68f5 Backed out changeset c6c6a1ba1218 (bug 1329814) for bustage due to undeclared variables. r=backout 2017-01-10 17:59:22 +01:00
Trevor Saunders
ae8b177c6c bug 1329814 - fix race condition when shutting down a tab r=smaug
When TabChild recieves the Destroy message from its parent the doc accessibles
for that tab are shut down.  However if the Shutdown message sent by
DocAccessible::Shutdown() isn't recieved before the child process handles the
runnable that sends __delete__ to the tab parent actor the parent can send a
message to the already shut down doc accessible child actor.
2017-01-10 11:59:03 -05:00
Mike Conley
e3312c9db7 Bug 1323319 - Make sure we can force paint remote tabs even during the first activation. r=billm
MozReview-Commit-ID: EV9u7M2i2sL

--HG--
extra : rebase_source : 8ad9225c7f282d37bccf2399b12613aaec40ae94
extra : amend_source : d4bfff7e5ee2199d98992f5d8d05cc63edaf2c2f
2016-12-21 16:09:09 -05:00
Carsten "Tomcat" Book
0aed7a4ac5 Merge mozilla-central to mozilla-inbound
--HG--
rename : testing/docker/base-build/HASH => taskcluster/docker/base-build/HASH
rename : testing/docker/base-test/HASH => taskcluster/docker/base-test/HASH
rename : testing/docker/centos6-build-upd/HASH => taskcluster/docker/centos6-build-upd/HASH
rename : testing/docker/centos6-build/HASH => taskcluster/docker/centos6-build/HASH
rename : testing/docker/decision/HASH => taskcluster/docker/decision/HASH
rename : testing/docker/image_builder/HASH => taskcluster/docker/image_builder/HASH
rename : testing/docker/recipes/tooltool.py => taskcluster/docker/recipes/tooltool.py
rename : testing/docker/tester/HASH => taskcluster/docker/tester/HASH
2016-12-22 16:25:35 +01:00
Samael Wang
1e9e35e6e1 Bug 1323651 - Rename Partial/GroupedSessionHistory to Partial/GroupedSHistory. r=ehsan
MozReview-Commit-ID: G2GW4ZPIfH3
2016-12-22 16:06:50 +08:00
Xidorn Quan
bd41ce75cf Bug 1323983 part 2 - Avoid sending response for native synthesis if there is no observer. r=smaug
MozReview-Commit-ID: 4skR41IaOs7

--HG--
extra : rebase_source : 4bc50c6f6723114c417471e27b4d5d35bb0e0c75
2016-12-19 17:29:48 +11:00