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

2318 Коммитов

Автор SHA1 Сообщение Дата
Henrik Skupin 80fec61f82 Bug 1489967 - Keep active state when Firefox is moved to background and focusmanager test mode is enabled. r=enndeakin
The test mode can be used to virtually give a Chrome window the
focus even with Firefox being in the background.

Currently when such a window has the focus and another application
is moved to the foreground, the active state is lost. This means that
for example Selenium tests which are run in parallel and using
different instances of Firefox will not receive the expected
"focus" and "blur" events.

This patch checks for the test mode and if enabled doesn't
lower the window, which will keep the focused state.

--HG--
extra : rebase_source : 2ee3a9c66327875628aa62d629582ee403fc090b
2018-09-10 15:03:04 +02:00
Nicholas Nethercote 6f5be00d2a Bug 1488628 - Change some nsIWebNavigation method arguments from wstring to AString. r=nika
--HG--
extra : rebase_source : a64af3af30b05e6a97b25550e6983121cc47add9
2018-09-05 13:42:16 +10:00
Kris Maglione 2dee0aae3c Bug 1484496: Part 4b - Add intrinsic type information to most nsSimpleEnumerators. r=froydnj
This allows JS callers to automatically get the correct types during
interation, without having to explicitly specify them.

Differential Revision: https://phabricator.services.mozilla.com/D3728

--HG--
extra : rebase_source : b708f382d8ea571d199c669bfed5b5a7ca9ffac4
extra : histedit_source : 7df6feb82088c8a5ca45dc28fe4d2b852c177fee
2018-08-18 21:06:32 -07:00
Kris Maglione 0425e42aa8 Bug 1484496: Part 3 - Fix nsISimpleEnumerator implementations with broken contracts. r=froydnj
The nsISimpleEnumerator contract specifies that GetNext() returns
NS_ERROR_FAILURE when iteration is complete. Several implementations, however,
either return NS_OK and a null result, or return some other error code, when
iteration is complete.

Since my initial implementation of the JS iteration stubs rely on the
contract-defined behavior of GetNext(), these need to be fixed before it can
land.

Differential Revision: https://phabricator.services.mozilla.com/D3726

--HG--
extra : rebase_source : aab0395df52e18ccff5b0a2489a983013bf484b1
extra : histedit_source : a5644f0a88799b4463af9dd01dfec33b373b1f58
2018-08-18 18:28:10 -07:00
Kris Maglione 65c28aa0ad Bug 1484496: Part 2 - Add common base class for all nsISimpleEnumerator implementations. r=froydnj
In order to allow JS callers to use nsISimpleEnumerator instances with the JS
iteration protocol, we'll need to additional methods to every instance. Since
we currently have a large number of unrelated implementations, it would be
best if they could share the same implementation for the JS portion of the
protocol.

This patch adds a stub nsSimpleEnumerator base class, and updates all existing
implementations to inherit from it. A follow-up will add a new base interface
to this class, and implement the additional functionality required for JS
iteration.

Differential Revision: https://phabricator.services.mozilla.com/D3725

--HG--
extra : rebase_source : ad66d7b266856d5a750c772e4710679fab9434b1
extra : histedit_source : a83ebffbf2f0b191ba7de9007f73def6b9a955b8
2018-08-18 14:22:47 -07:00
Ehsan Akhgari a07f6c3866 Bug 1484848 - Remove the XPCOM component registrations for window and child window; r=mstange 2018-08-21 16:20:28 -04:00
Boris Zbarsky 357b6b1348 Bug 1479570. Get Add a getter to get a docshell from nsIWindowlessBrowser. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D2669

--HG--
extra : moz-landing-system : lando
2018-08-03 00:05:07 +00:00
Boris Zbarsky 0d2f1d309b Bug 1446940 followup to fix test breakage. 2018-08-01 13:44:05 -04:00
Boris Zbarsky 765a54b723 Bug 1446940 followup to fix review nit. r=bzbarsky 2018-08-01 13:13:23 -04:00
Boris Zbarsky 0fcb24c18d Bug 1446940 part 1. Stop getting docshells from windows via getInterface in toolkit. r=gijs
The change to test_hiddenPrivateWindow.xul is to make sure we pass windows, not
docshells, to an API that expects windows.
2018-08-01 13:07:09 -04:00
Andreas Farre 1d151a57c8 Bug 1445659 - Create basic Browsing Context in Content Parent and Child. r=peterv
Add BrowsingContext to allow the tree structure of docshells to exist
in several processes simultaneously. This is a first step towards
allowing a tree structure preserving separation of docshells across
processes.

--HG--
extra : histedit_source : d3c7f6ab4b9ae76f170c126d669ebd570e52f348
2018-07-26 10:31:00 +03:00
Gijs Kruitbosch 76386955b0 Bug 1478421 - make fingerprint resistance not resize window before onDOMContentLoaded and detect browser windows better, r=timhuang,bz
This changes the fingerprint resistance code to set mIgnoreXULSize and
mIgnoreXULSizeMode even when there isn't yet a primary content container,
if this is a browser window.

It also removes some dead code and reorders some other logic wrt
mIgnoreXULSizeMode to make it more obvious what that code is doing, and
renames the containing method to distinguish it more clearly from some
other Load...Attributes methods.

MozReview-Commit-ID: LJqRWeta6XV

--HG--
extra : rebase_source : 9d83c83aa2ee8d3314e3f94f157b956608e927d8
2018-07-20 17:32:30 +01:00
Brian Grinstead 40b40ad653 Bug 1478128 - Rename `MOZ_BROWSER_CHROME_URL_QUOTED` to `BROWSER_CHROME_URL_QUOTED`;r=gps
MozReview-Commit-ID: G73z0y5A8Re

--HG--
extra : rebase_source : 074d5085d37d726716b7522e1a049c98ea3e44c7
2018-07-24 15:25:18 -07:00
Brian Grinstead eb11f1de3b Bug 1476333 - Define the browser chrome URL as BROWSER_CHROME_URL so it can be accessed from AppConstants instead of a pref;r=gps
MozReview-Commit-ID: DPxayAW4D1s

--HG--
extra : rebase_source : 4d3f1e71b0abd1f38cd750d52b84269b6af52991
2018-07-24 08:12:48 -07:00
Andrea Marchesini a053cf1c15 Bug 1476306 - Moving NullPrincipal/ContentPrincipal/SystemPrincipal under mozilla namespace - part 1 - NullPrincipal, r=ckerschb 2018-07-17 21:37:48 +02:00
Brendan Dahl afd85398a2 Bug 1460691 - Support tooltips in top level non-XUL windows. r=enndeakin+6102,mats+6102
Add an anonymous XUL tooltip node to toplevel non-XUL windows. Setup a
nsXULTooltipListener on non-XUL nsXULWindows. Make nsXULTooltipListener
always use the default tooltip in the non-XUL case.

MozReview-Commit-ID: Koe5m8PwMQM

--HG--
extra : rebase_source : 242180e957758b51c589452e35deadac5ab06d9e
2018-07-03 14:20:43 -07:00
Kyle Machulis 17f492c9c1 Bug 1472087 - deCOMtaminate nsIDocShellLoadInfo; r=nika
Change all references from nsIDocShellLoadInfo to nsDocShellLoadInfo

MozReview-Commit-ID: AyKlZUtSEDD
2018-07-11 20:19:14 -07:00
Mike Conley 7364b9f659 Bug 1473034 - Ignore the gfx sanitytest window when recording start-up paints. r=florian
MozReview-Commit-ID: 9cI20Z4RbbL

--HG--
extra : rebase_source : bf13458dade67220ea06f40d82a72d3b25c8f118
2018-07-05 15:02:46 -04:00
Emilio Cobos Álvarez c7d35aa526 Bug 1470930: Use enums for passing arguments for event dispatch. r=smaug
MozReview-Commit-ID: DsNuF7GAflJ
2018-06-26 18:22:06 +02:00
Chris Peterson 2afd829d0f Bug 1469769 - Part 6: Replace non-failing NS_NOTREACHED with MOZ_ASSERT_UNREACHABLE. r=froydnj
This patch is an automatic replacement of s/NS_NOTREACHED/MOZ_ASSERT_UNREACHABLE/. Reindenting long lines and whitespace fixups follow in patch 6b.

MozReview-Commit-ID: 5UQVHElSpCr

--HG--
extra : rebase_source : 4c1b2fc32b269342f07639266b64941e2270e9c4
extra : source : 907543f6eae716f23a6de52b1ffb1c82908d158a
2018-06-17 22:43:11 -07:00
Boris Zbarsky 5fa76e716f Bug 1455676 part 11. Remove use of nsIDOMNode from xpfe/. r=qdot 2018-05-29 22:58:49 -04:00
Boris Zbarsky 0a370c0291 Bug 1455676 part 6. Remove nsIDOMNode usage from docshell/. r=qdot 2018-05-29 22:58:48 -04:00
Emilio Cobos Álvarez 9af9874166 Bug 1463819: Account for the possibility of SyncAttributesToWidget destroying the window. r=enn
MozReview-Commit-ID: 8O3We8wnSGk
2018-05-29 14:21:26 +02:00
Brendan Dahl 0bb125f382 Bug 1460639 - Apply persisted window settings before layout. r=smaug
Previously, with early first paint enabled, nsXULWindow incorrectly loaded the
persisted window settings from about:blank and would only load them once.
Instead, load the settings before starting layout.

MozReview-Commit-ID: 6K4ofkbmHHb

--HG--
extra : rebase_source : 7bcd804cfabbd47ee5a747800a2ef81852213889
2018-05-16 18:13:59 -07:00
Emilio Cobos Álvarez b8a33cdbac Bug 1458999: Nullcheck for release, assert elsewhere. r=enn
This should allow us to figure out what's killing the window mid-flight, in case
there's something to fix in the chrome JS code.

MozReview-Commit-ID: 1xx1AVdspB2
2018-05-22 22:06:41 +02:00
Kris Maglione 8340513b0c Bug 1463287: Add QueryInterface helper macro for concrete class types. r=bz
Using concrete class types with static IIDs in QueryInterface methods is a
pretty common pattern which isn't supported by any existing helper macros.
That's lead to separate ad-hoc implementations, with varying degrees of
dodginess, being scattered around the tree.

This patch adds a helper macro with a canonical (and safe) implementation, and
updates existing ad-hoc users to use it.

MozReview-Commit-ID: HaTGF7MN5Cv

--HG--
extra : rebase_source : ace930129d85960d22bc3048ca3bb19bbbd4a63e
extra : histedit_source : 03a87f746d957789d41381e4e1bfcc4fd7eebaf2%2C9c5bae9feeeef7721105db67be0f83e0ded66bb7
2018-05-21 16:33:18 -07:00
Adrian Wielgosik c501e3beb0 Bug 1460940 - Clean up most remaining C++-side uses of nsIDOMDocument. r=bz
MozReview-Commit-ID: LKRnyDPNlle

--HG--
extra : rebase_source : a48b7c72a0f7ede38c91149a04d5de53987736f1
2018-05-11 19:46:15 +02:00
Brendan Dahl 295e2f4aca Bug 1453788 - Allow top level HTML windows to have persistent window state. r=smaug
Move tracking of persistent window state into nsXULWindow. Also, move
special handling of the width/height of the window into nsXULWindow.

MozReview-Commit-ID: LOmHGyYeNSU

--HG--
extra : rebase_source : bcea16eb6209ff789948644a64968a7325cea4ef
2018-04-26 17:53:54 -07:00
Boris Zbarsky 4783772a18 Bug 1455674 part 17. Remove use of nsIDOMElement in non-dom non-JS code. r=qdot 2018-04-26 23:37:34 -04:00
Boris Zbarsky 6bf97b61c0 Bug 1455674 part 13. Remove remaining xpidl uses of nsIDOMElement. r=qdot 2018-04-26 23:37:29 -04:00
Emilio Cobos Álvarez a1b2e5070a Bug 1455885: Inline and make document casts fatally assert. r=bz
For consistency with AsElement / AsContent / AsDocumentFragment, etc.

MozReview-Commit-ID: 8GSj8R9hLBe
2018-04-26 17:05:12 +02:00
Adrian Wielgosik b3c501adc4 Bug 1447389 - Remove nsIDOMNodeList. r=bz
MozReview-Commit-ID: 11szZP6dS6V

--HG--
extra : rebase_source : 9acfb352750e53d3b36684fa945a18e817c9b82e
2018-04-25 23:01:30 +02:00
Dão Gottwald 7d19b65c4f Bug 1455578 - Remove obsolete nsIXULBrowserWindow::setJSStatus. r=bz
MozReview-Commit-ID: 6m7AQIvouIi

--HG--
extra : rebase_source : ccadd808d0e76fb882bde55dc72f8cfef239ef61
2018-04-20 12:55:14 +02:00
Dão Gottwald e18d220663 Bug 1454631 - Remove nsIXULBrowserWindow::forceInitialBrowserRemote. r=mconley
MozReview-Commit-ID: BUOJ0TjSCgt

--HG--
extra : rebase_source : ca340ebd3e7ed17f51ead58d8eef6c657091d92d
2018-04-17 16:04:10 +02:00
Kyle Machulis 541d6f6f00 Bug 1453517 - Remove nsPopupWindowManager and related XPCOM bits; r=bz
MozReview-Commit-ID: JIDdZfnNN8E

--HG--
extra : rebase_source : 8b92fec383a21f80fceb87502e9a7accdb7dd74f
2018-04-11 16:16:13 -07:00
Sebastian Hengst 0819f35e51 Backed out 4 changesets (bug 525063) on request from Andi. a=backout
Backed out changeset 516c4fb1e4b8 (bug 525063)
Backed out changeset 6ff8aaef2866 (bug 525063)
Backed out changeset bf13e4103150 (bug 525063)
Backed out changeset d7d2f08e051c (bug 525063)
2018-04-13 16:01:28 +03:00
Tristan Bourvon a3a77c0312 Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan 2018-04-10 21:11:02 +02:00
Boris Zbarsky f2f3fe42ff Bug 1452185 part 3. Remove unnecessary nsIDOMXULElement includes. r=qdot
MozReview-Commit-ID: Ft5MnbFtyB9
2018-04-09 16:30:32 -04:00
Xidorn Quan 8c8cef5c1d Bug 1446343 part 1 - Expose GetOuterToInner{Width,Height}DifferenceInCSSPixels to script. r=bz
MozReview-Commit-ID: 8mjIxRATTPD

--HG--
extra : rebase_source : fe4f25cf16cdff8c9651860a9adf606bd0cc6b0f
2018-04-06 14:59:11 +10:00
Boris Zbarsky 4292bca4ee Bug 1449631 part 6. Remove nsIDOMEventTarget::DispatchEvent. r=smaug
MozReview-Commit-ID: 8YMgmMwZkAL
2018-04-05 13:42:41 -04:00
Boris Zbarsky 9bb77bdfc7 Bug 1450418. Get rid of nsIDOMScreen. r=qdot
MozReview-Commit-ID: A5Rq0BSQt4V
2018-04-03 00:42:41 -04:00
Gurzau Raul 8d268c6ce7 Merge mozilla-central to inbound. a=merge CLOSED TREE
--HG--
rename : toolkit/components/extensions/ext-permissions.js => toolkit/components/extensions/parent/ext-permissions.js
2018-03-29 01:00:42 +03:00
Tom Ritter 449237fc51 Bug 1378552 - Reduce the liklihood of inadvertently misusing NullPrincipal::Create(). r=ckerschb
NullPrincipal::Create() (will null OA) may cause an OriginAttributes bypass.
We change Create() so OriginAttributes is no longer optional, and rename
Create() with no arguments to make it more explicit about what the caller is doing.

MozReview-Commit-ID: 7DQGlgh1tgJ
2018-03-22 13:36:20 -05:00
Xidorn Quan 2b0ae4061a Bug 1448760 - Don't try to center window after load when the size mode is not normal. r=bz
MozReview-Commit-ID: Ainh34XuvFg

--HG--
extra : rebase_source : 034caa4085d7fd3836d3f3bf5fb3c7390dc785a7
2018-03-27 23:38:00 +11:00
Henri Sivonen c6860c9f5e Bug 1448574 - Format integers directly into UTF-16 in nsXULWindow. r=bz
MozReview-Commit-ID: GIMVTq1QOvg

--HG--
extra : rebase_source : 4ee7354eecbce01f213d76800cf0db49fb6636fe
2018-03-24 20:00:56 +02:00
Narcis Beleuzu c4abe775f5 Backed out changeset 73958e9bfd07 (bug 1448574) for debug-marionette-e10s failing on unit/test_window_rect.py 2018-03-28 11:19:54 +03:00
Henri Sivonen 93f459308b Bug 1448574 - Format integers directly into UTF-16 in nsXULWindow. r=bz
MozReview-Commit-ID: GIMVTq1QOvg

--HG--
extra : rebase_source : 74e5ca52227aa160c768073d8cc61de2450c9df5
2018-03-24 20:00:56 +02:00
Xidorn Quan 0e6f1f5155 Bug 1446264 part 3 - Avoid ignoring and persisting size/position/sizemode when we are setting them from SizeShell(). r=bz,florian
When SetSize etc. are called before OnChromeLoaded has been invoked,
the functions assume that the window initialization code wants to size
the window specifically, and thus ignore the values from the <window>
element.

However, bug 1439875 changes the behavior so that SizeShell is also
invoked before OnChromeLoaded, which confuses the functions above, and
causes some of the attributes not to be loaded properly.

This patch adds a separate flag to avoid ignoring those attributes when
those functions are invoked as part of SizeShell itself.

It can cause extra reflow if the window is opened in maximized state,
and thus the new whitelist items. They may be fixed by bug 1448199.

MozReview-Commit-ID: 7jT8w9KGmzy

--HG--
extra : rebase_source : d970be5b1ae0588f6b0b63e2bd6a711853c82478
2018-03-19 14:22:38 +11:00
Xidorn Quan 4ac1f60c1e Bug 1446264 part 2 - Ignore XUL position when sizemode is maximized. r=bz
MozReview-Commit-ID: 2NTZBeehXam

--HG--
extra : rebase_source : 0359b7d6237e7cb70e785141d7914dce10ef2c47
2018-03-21 16:02:05 +11:00
Andreea Pavel 86810531ce Backed out changeset becfb5f6388d (bug 1447875) for failing browser chrome at browser/base/content/test/performance/browser_windowopen_reflows.js on a CLOSED TREE 2018-03-22 08:54:03 +02:00