Nika Layzell
c5e37a220e
Bug 1616353 - Part 6.5: Assert nsILoadContext attributes are correctly set when opening windows, r=smaug
...
This is necessary as, by this point, the BrowsingContext has already been
attached, and can no longer have its nsILoadContext flags updated.
Differential Revision: https://phabricator.services.mozilla.com/D67049
2020-04-06 14:29:57 +00:00
Nika Layzell
a262f4881c
Bug 1616353 - Part 6.3: Replace many nsILoadContext mutators with assertions, r=smaug
...
Many of these setters are redundant, and duplicate work done elsewhere. As it is
no longer correct to set nsILoadContext attributes at these times, they're being
replaced with assertions.
Differential Revision: https://phabricator.services.mozilla.com/D67047
2020-04-06 14:29:52 +00:00
Nika Layzell
c4799a218b
Bug 1616353 - Part 5: Always set the opener for chrome windows late, r=kmag
...
This is OK, as all chrome BrowsingContext instances are always in the same
BrowsingContextGroup, so we don't need to have the initial opener avaliable when
creating the BrowsingContext to determine its BrowsingContextGroup.
This is used in part 7.2 to avoid propagating the opener window around when
creating chrome windows.
Differential Revision: https://phabricator.services.mozilla.com/D67044
2020-04-06 14:29:45 +00:00
Nika Layzell
f95485b324
Bug 1616353 - Part 4: Don't second-guess CHROME_{REMOTE,FISSION}_WINDOW flags, r=kmag
...
This could cause issues, as we could incorrectly override the decision made by
nsWindowWatcher, and then override the decision again after the method returns.
This could cause the initial content browser to be configured incorrectly.
Differential Revision: https://phabricator.services.mozilla.com/D67043
2020-04-06 14:29:43 +00:00
Narcis Beleuzu
0668c5ab4c
Backed out 6 changesets (bug 1626404) for assertion failures on BrowsingContext.cpp . CLOSED TREE
...
Backed out changeset aed006ab4c20 (bug 1626404)
Backed out changeset ad87dcb98637 (bug 1626404)
Backed out changeset c065bd4594b4 (bug 1626404)
Backed out changeset a248fc78ab0c (bug 1626404)
Backed out changeset 52892d053ff1 (bug 1626404)
Backed out changeset 440b9193338a (bug 1626404)
2020-04-04 05:29:30 +03:00
Kris Maglione
98bd7e4124
Bug 1626404: Part 4 - Remove now-redundant accessor args from BrowsingContext load methods. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D69421
2020-04-04 00:36:30 +00:00
Kris Maglione
99164ee547
Bug 1626404: Part 1 - Move IsSandboxedFrom to BrowsingContext. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D69417
2020-04-04 00:13:04 +00:00
Narcis Beleuzu
518dd9a134
Backed out 6 changesets (bug 1626404) for bustages on LocationBase.cpp . CLOSED TREE
...
Backed out changeset a399dfff2725 (bug 1626404)
Backed out changeset ad3272abd830 (bug 1626404)
Backed out changeset 322c170e8301 (bug 1626404)
Backed out changeset df37f57cfa1d (bug 1626404)
Backed out changeset e255e4c9e665 (bug 1626404)
Backed out changeset 51120d617459 (bug 1626404)
2020-04-04 02:42:18 +03:00
Kris Maglione
6d933b2e13
Bug 1626404: Part 4 - Remove now-redundant accessor args from BrowsingContext load methods. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D69421
2020-04-03 22:42:25 +00:00
Kris Maglione
a5d565da2f
Bug 1626404: Part 1 - Move IsSandboxedFrom to BrowsingContext. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D69417
2020-04-03 22:41:26 +00:00
Tooru Fujisawa
5d9a6a7b95
Bug 1507375 - Restrict the controllability of UI parts visibility with features parameter of window.open. r=smaug
...
Make the features parameter of window.open just a condition for whether to open
a popup or a new tab.
Also remove dom.disable_window_open_feature.* prefs.
Differential Revision: https://phabricator.services.mozilla.com/D65926
2020-03-19 09:13:12 +00:00
Noemi Erli
8a3c00f099
Backed out changeset 6fe5ce050c0d (bug 1507375) for failures in test_transformed_scrolling_repaints_3.html CLOSED TREE
2020-03-19 08:56:17 +02:00
Tooru Fujisawa
85724a833d
Bug 1507375 - Restrict the controllability of UI parts visibility with features parameter of window.open. r=smaug
...
Make the features parameter of window.open just a condition for whether to open
a popup or a new tab.
Also remove dom.disable_window_open_feature.* prefs.
Differential Revision: https://phabricator.services.mozilla.com/D65926
2020-03-19 03:50:25 +00:00
Simon Giesecke
99b166167f
Bug 1613985 - Use default for equivalent-to-default constructors/destructors in toolkit. r=mossop
...
Depends on D66008
Differential Revision: https://phabricator.services.mozilla.com/D66010
2020-03-10 08:48:24 +00:00
Simon Van Accoleyen
0e6e13f54d
Bug 1619619 - DeCOMtaminate accesses to nsFocusManager r=Gijs
...
Differential Revision: https://phabricator.services.mozilla.com/D65884
2020-03-09 09:51:46 +00:00
shindli
93011711a1
Backed out changeset 3da713367dfd (bug 1589299) for causing mochitest permafailures in layout/base/tests/test_transformed_scrolling_repaints_3.html CLOSED TREE
2020-03-03 20:43:03 +02:00
Alphan Chen
8e9fe5b4c1
Bug 1589299 - Force scrollbars flag to be always enabled for new windows. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D64126
2020-03-03 16:07:09 +00:00
Henri Sivonen
27d35d1cb6
Bug 1618133 - Remove nsWindowWatcher::SetActiveWindow as dead code. r=NeilDeakin
...
Differential Revision: https://phabricator.services.mozilla.com/D64330
2020-02-27 18:24:07 +00:00
Coroiu Cristina
93eb9720ea
Backed out changeset 4dfd98d37804 (bug 1589299) for Wr failures at css/css-writing-modes/wm-propagation-svg-root-scrollbar.svg on a CLOSED TREE
2020-02-26 18:12:29 +02:00
Alphan Chen
f401ce2145
Bug 1589299 - Force scrollbars flag to be always enabled for new windows. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D64126
2020-02-26 14:15:57 +00:00
pbz
a7ba1df9c0
Bug 1432856 - Added console logging for DOM fullscreen leave on window raise. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D55813
2020-01-16 14:39:02 +00:00
pbz
bceea407c5
Bug 1432856 - Added prefs for DOM fullscreen leave on window open or raise. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D55812
2020-01-16 14:38:48 +00:00
pbz
c649a533c4
Bug 1432856 - Leave DOM fullscreen on window.open(). r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D55809
2020-01-16 14:38:08 +00:00
Oana Pop Rus
2fa2ebf69d
Backed out 7 changesets (bug 1432856) for build bustages failures in nsWindow.h on a CLOSED TREE
...
Backed out changeset 3d08c3cce533 (bug 1432856)
Backed out changeset 49d03dd89b17 (bug 1432856)
Backed out changeset 62fc84c8ce99 (bug 1432856)
Backed out changeset a8a4fa63f5b2 (bug 1432856)
Backed out changeset c81f3d5b9bf3 (bug 1432856)
Backed out changeset 8351a8b1d96a (bug 1432856)
Backed out changeset a303b775a51b (bug 1432856)
2019-12-16 23:53:35 +02:00
pbz
9b95ca979c
Bug 1432856 - Added console logging for DOM fullscreen leave on window open or raise. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D55813
2019-12-16 21:07:37 +00:00
pbz
fda1d6a250
Bug 1432856 - Added prefs for DOM fullscreen leave on window open or raise. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D55812
2019-12-16 21:07:33 +00:00
pbz
b615e14af6
Bug 1432856 - Leave DOM fullscreen on window.open(). r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D55809
2019-12-16 21:02:44 +00:00
Noemi Erli
553e09403c
Backed out changeset d72ce5d90b7c (bug 1602565) for causing Android mochites failures CLOSED TREE
2019-12-12 20:20:02 +02:00
Agi Sferro
4c40d90250
Bug 1602565 - Mark GeckoView windows with chrome flag CHROME_GECKOVIEW. r=snorp
...
This will allow us to know whether a certain window is controlled GeckoView or
not in the content process.
Differential Revision: https://phabricator.services.mozilla.com/D56651
2019-12-12 16:33:09 +00:00
Yaron Tausky
d902a7d422
Bug 1593246 - Part 1: Move SessionStorageManager to BrowsingContext r=dom-workers-and-storage-reviewers,sg,smaug
...
With Fission enabled we do not necessarily have access to the
nsDocShell that holds the top-level browsing context, so the
BrowsingContext is a better place to store information that needs
to be accessible to nested browsing contexts.
Differential Revision: https://phabricator.services.mozilla.com/D55276
2019-12-10 12:12:25 +00:00
Razvan Maries
3aec015044
Backed out 3 changesets (bug 1593246) for build bustages on BrowsingContext.h. CLOSED TREE
...
Backed out changeset fd389138a684 (bug 1593246)
Backed out changeset 2663311a1b62 (bug 1593246)
Backed out changeset d9f0d827e28d (bug 1593246)
2019-12-09 20:32:18 +02:00
Yaron Tausky
af3113e2f9
Bug 1593246 - Part 1: Move SessionStorageManager to BrowsingContext r=dom-workers-and-storage-reviewers,sg,smaug
...
With Fission enabled we do not necessarily have access to the
nsDocShell that holds the top-level browsing context, so the
BrowsingContext is a better place to store information that needs
to be accessible to nested browsing contexts.
Differential Revision: https://phabricator.services.mozilla.com/D55276
2019-12-09 13:04:51 +00:00
Gabriele Svelto
f03cdb2b2d
Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan
...
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.
find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
if [ -n "$interfaces" ]; then
if [[ "$interfaces" == *$'\n'* ]]; then
regexp="\("
for i in $interfaces; do regexp="$regexp$i\|"; done
regexp="${regexp%%\\\|}\)"
else
regexp="$interfaces"
fi
interface=$(basename "$path")
rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
if [ $hits -eq 0 ]; then
echo "Removing ${interface} from ${path2}"
grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
mv -f "$path2".tmp "$path2"
fi
done
fi
done
Differential Revision: https://phabricator.services.mozilla.com/D55444
2019-12-06 09:17:57 +00:00
Boris Zbarsky
2df1df0176
Bug 1517588. Use nsIPrincipal::IsSystemPrincipal instead of nsContentUtils::IsSystemPrincipal r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D53067
2019-12-05 04:44:32 +00:00
Brendan Dahl
ef30c33394
Bug 1470510 - Rename nsXULWindow and nsIXULWindow to AppWindow and nsIAppWindow. r=smaug
...
nsXULWindow is no longer XUL specific and is somewhat confusing name.
Differential Revision: https://phabricator.services.mozilla.com/D51486
2019-11-05 17:56:28 +00:00
Mihai Alexandru Michis
5803a050c4
Backed out 2 changesets (bug 1470510) for causing bustages in widget/cocoa/nsChildView.mm CLOSED TREE
...
Backed out changeset a343f30c34a3 (bug 1470510)
Backed out changeset 4da64790094d (bug 1470510)
2019-11-05 09:24:26 +02:00
Brendan Dahl
b484de8fe7
Bug 1470510 - Rename nsXULWindow and nsIXULWindow to AppWindow and nsIAppWindow. r=smaug
...
nsXULWindow is no longer XUL specific and is somewhat confusing name.
Differential Revision: https://phabricator.services.mozilla.com/D51486
2019-11-04 23:37:31 +00:00
Dorel Luca
bcbec745b9
Backed out 2 changesets (bug 1470510) for build bustage on /build/src/widget/cocoa/nsChildView.mm. CLOSED TREE
...
Backed out changeset 5967bf633574 (bug 1470510)
Backed out changeset 067a556bb614 (bug 1470510)
2019-11-04 19:18:56 +02:00
Brendan Dahl
4f87b88cc6
Bug 1470510 - Rename nsXULWindow and nsIXULWindow to AppWindow and nsIAppWindow. r=smaug
...
nsXULWindow is no longer XUL specific and is somewhat confusing name.
Differential Revision: https://phabricator.services.mozilla.com/D51486
2019-11-04 16:52:35 +00:00
Edgar Chen
3dc70dd58e
Bug 1587062 - Move SandboxFlags from DocShell to BrowsingContext; r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D50663
2019-10-28 11:48:30 +00:00
Andreas Farre
22d88214fc
Bug 1575051 - Part 2: Look in chrome browsing context group when docshell is missing. r=kmag
...
Also some minor cleanup in nsWindowWatcher, as well as a small fix,
where GetWindowByName forgot to addref its return value (as changed in
Part 1).
Differential Revision: https://phabricator.services.mozilla.com/D48976
2019-10-24 14:53:07 +00:00
Andreas Farre
3262edc078
Bug 1575051 - Part 1: Remove nsIDocShellTreeItem.findItemWithName. r=kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D46285
2019-10-24 14:53:07 +00:00
Edgar Chen
b2d6793250
Bug 1588720 - Part 2: Track number of popup spam through BrowsingContext; r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D49276
2019-10-18 03:04:55 +00:00
Narcis Beleuzu
8b503ffdd0
Backed out 3 changesets (bug 1575051) for bc failures on browser_browsingContext-getWindowByName.js . CLOSED TREE
...
Backed out changeset 67aaf4a157af (bug 1575051)
Backed out changeset e01256038537 (bug 1575051)
Backed out changeset 0c8f70f9328b (bug 1575051)
2019-10-14 19:19:05 +03:00
Andreas Farre
c48483dcae
Bug 1575051 - Part 2: Look in chrome browsing context group when docshell is missing. r=kmag
...
Also some minor cleanup in nsWindowWatcher, as well as a small fix,
where GetWindowByName forgot to addref its return value (as changed in
Part 1).
Differential Revision: https://phabricator.services.mozilla.com/D48976
2019-10-14 12:32:08 +00:00
Andreas Farre
967275c308
Bug 1575051 - Part 1: Remove nsIDocShellTreeItem.findItemWithName. r=kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D46285
2019-10-14 12:07:14 +00:00
Matt Woodrow
d90755519d
Bug 1578624 - P11: Add a flag to ask the parent to not actually load the URI when opening a window, since we'll do it ourselves anyway. r=kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D47867
2019-10-11 01:56:35 +00:00
Ehsan Akhgari
6d7829d3ba
Bug 1587922 - Remove the remnants of the showModalDialog code; r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D48892
2019-10-10 22:59:28 +00:00
Brindusan Cristian
170d6fb93f
Backed out 11 changesets (bug 1578624) for build bustages. CLOSED TREE
...
Backed out changeset b22733eb880f (bug 1578624)
Backed out changeset cb5e15489635 (bug 1578624)
Backed out changeset f1746b2f9dec (bug 1578624)
Backed out changeset d08a099a22ff (bug 1578624)
Backed out changeset 8ebd563c72a8 (bug 1578624)
Backed out changeset d8bfec2dc9b6 (bug 1578624)
Backed out changeset 591664928bce (bug 1578624)
Backed out changeset 63f5a619b9ef (bug 1578624)
Backed out changeset ff67cc13cdf3 (bug 1578624)
Backed out changeset 43556c937a09 (bug 1578624)
Backed out changeset 49065a55694d (bug 1578624)
2019-10-09 11:50:37 +03:00
Matt Woodrow
74519473ee
Bug 1578624 - P11: Add a flag to ask the parent to not actually load the URI when opening a window, since we'll do it ourselves anyway. r=kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D47867
2019-10-09 07:54:45 +00:00