Commit Graph

2305 Commits

Author SHA1 Message Date
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
Emilio Cobos Álvarez
af1d1f6435 Bug 1447875: Partially back out bug 1439875 until we figure out bug 1446264. r=xidorn
I want this behind a pref so that I can investigate other bugs without building
locally.

MozReview-Commit-ID: FWbGUxNbbm

--HG--
extra : rebase_source : 546ace867858f17b543bd11ef908c10fa63a022f
2018-03-22 01:59:26 +01:00
Coroiu Cristina
8196de4a04 Backed out 7 changesets (bug 1446264) for wpt failures at html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-height.html
Backed out changeset 7b9a6f304c95 (bug 1446264)
Backed out changeset af69031d49a0 (bug 1446264)
Backed out changeset 27efbd3b9218 (bug 1446264)
Backed out changeset 2280d7116066 (bug 1446264)
Backed out changeset 8e3dd0825df9 (bug 1446264)
Backed out changeset f9f4a91b3edb (bug 1446264)
Backed out changeset 38995f6de9df (bug 1446264)
2018-03-22 01:55:12 +02:00
Xidorn Quan
a4eb0598f1 Bug 1446264 part 5 - Avoid ignoring and persisting size/position/sizemode when we are setting them from SizeShell(). r=bz
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.

MozReview-Commit-ID: 7jT8w9KGmzy

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

--HG--
extra : rebase_source : 4e2e451b50d3679dec25bbbfce5fb3b1af98585d
2018-03-21 16:02:05 +11:00
Catalin Badea
ec64c538e5 Bug 1445792 - Merge nsIWindowMediator_44 back into nsIWindowMediator. r=dbaron 2018-03-20 05:27:00 -04:00
Boris Zbarsky
2f66e620e3 Bug 1446533 part 12. Remove nsIDOMCharacterData. r=mystor
MozReview-Commit-ID: KXex3Rjcire
2018-03-19 15:47:42 -04:00
Emilio Cobos Álvarez
bf7f4428f8 Bug 1444525: Persist XUL window size attributes as the outer size, not inner size. r=bz
MozReview-Commit-ID: 7U5tWxTaxGi
2018-03-17 15:55:24 +01:00
Emilio Cobos Álvarez
bcbf022f11 Bug 1439875: Size the XUL window before doing layout. r=smaug
The only subtle thing is the mCenterAfterLoad stuff, which is gated after a
mChromeLoaded.

Other than that it follows the same pattern as bug 345560.

MozReview-Commit-ID: 8qDiA2yn9DB
2018-03-16 17:26:48 +01:00
Gurzau Raul
540992331b Backed out 6 changesets (bug 1439875) for massive breakage for nightly users a=backout
Backed out changeset 990a8eb972cd (bug 1439875)
Backed out changeset 187aef60922c (bug 1439875)
Backed out changeset 9c764daa1234 (bug 1439875)
Backed out changeset f8e091577d2a (bug 1439875)
Backed out changeset 1ee5a2d21901 (bug 1439875)
Backed out changeset 610ba5dfaae1 (bug 1439875)
2018-03-16 11:26:31 +02:00
Emilio Cobos Álvarez
c41e281661 Bug 1439875: Size the XUL window before doing layout. r=smaug
The only subtle thing is the mCenterAfterLoad stuff, which is gated after a
mChromeLoaded.

Other than that it follows the same pattern as bug 345560.

MozReview-Commit-ID: 8qDiA2yn9DB

--HG--
extra : rebase_source : 8ad309e3f449cea1536bfbff8e8b1585fefbc186
extra : source : f582644f846cee16b554d694d24b4eb8ca3c5106
2018-03-15 21:19:50 +11:00
Andreea Pavel
efd81bd597 Backed out 6 changesets (bug 1439875) for browser chrome failures at browser/base/content/test/general/browser_private_browsing_window.js on a CLOSED TREE
Backed out changeset 1ee033e0061a (bug 1439875)
Backed out changeset 7f25473e9b29 (bug 1439875)
Backed out changeset 69550dec0534 (bug 1439875)
Backed out changeset f3b96ce3490b (bug 1439875)
Backed out changeset 9ded55072903 (bug 1439875)
Backed out changeset 7b33ad14ce8c (bug 1439875)
2018-03-14 23:54:24 +02:00
Emilio Cobos Álvarez
7ca346f1b8 Bug 1439875: Size the XUL window before doing layout. r=smaug
The only subtle thing is the mCenterAfterLoad stuff, which is gated after a
mChromeLoaded.

Other than that it follows the same pattern as bug 345560.

MozReview-Commit-ID: 8qDiA2yn9DB
2018-03-14 20:47:37 +01:00
Andreea Pavel
e74f76b184 Backed out 6 changesets (bug 1439875) for failing mochitest clipboard at browser/components/customizableui/test/browser_editcontrols_update.js and mochitest headless at dom/events/test/pointerevents/test_bug1414336.html on a CLOSED TREE
Backed out changeset f21bdb9b67e8 (bug 1439875)
Backed out changeset bd81fafecd95 (bug 1439875)
Backed out changeset 3296aef96276 (bug 1439875)
Backed out changeset a1237d0711a2 (bug 1439875)
Backed out changeset fc25cbe8e22e (bug 1439875)
Backed out changeset 25e681a47121 (bug 1439875)
2018-03-13 18:37:16 +02:00