Commit Graph

71 Commits

Author SHA1 Message Date
Henri Sivonen
f6991d7c78 Bug 1720654 - Make fullscreen tests wait for the right page to load in newly-opened windows. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D119961
2021-07-16 16:40:00 +00:00
Henri Sivonen
1a4efedb7f Bug 1698036 - Pause for OOP focus to stabilize in browser_fullscreen_window_focus.js. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D119395
2021-07-13 17:09:16 +00:00
Jared Wein
b566795e28 Bug 1715208 - Wait for the closebutton attribute to update instead of assuming it is atomic with inDOMFullscreen r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D117157
2021-06-12 08:21:33 +00:00
Jared Wein
12189462cb Bug 1695472 - Add a mutation observer for fullscreen changes so we don't have to rely on timing of resize events. r=Gijs
A resize observer was also introduced to improve performance through coalesence of 'resize' events.

Differential Revision: https://phabricator.services.mozilla.com/D116522
2021-06-08 05:11:13 +00:00
Alexandru Michis
0625bff24a Backed out changeset 7fa771d9f62d (bug 1695472) for causing bc failures in browser_bug1620341.js (Bug 1714691) 2021-06-05 11:03:34 +03:00
Jared Wein
01cfd4f129 Bug 1695472 - Add a mutation observer for fullscreen changes so we don't have to rely on timing of resize events. r=Gijs
A resize observer was also introduced to improve performance through coalesence of 'resize' events.

Differential Revision: https://phabricator.services.mozilla.com/D116522
2021-06-04 20:47:44 +00:00
Edgar Chen
45111f3e2d Bug 1712038 - Exit fullscreen only when the focus change will raise the window; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D116182
2021-05-28 20:42:32 +00:00
Henri Sivonen
cc4ed242d6 Bug 1677899 - Trust the process where where focus() is called for focusability. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D104393
2021-02-09 08:03:03 +00:00
Paul Zuehlcke
b6fbc9a3ff Bug 1596897 - Updated tests for decoupled permissions panel. r=johannh,remote-protocol-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D99893
2021-02-05 13:40:42 +00:00
Narcis Beleuzu
926d2f6257 Backed out 2 changesets (bug 1596897) for bc failures on browser_search_discovery.js
Backed out changeset 635972f169e7 (bug 1596897)
Backed out changeset a84b667007e2 (bug 1596897)
2021-01-30 04:01:21 +02:00
Paul Zuehlcke
2c4fecbca6 Bug 1596897 - Updated tests for decoupled permissions panel. r=johannh,remote-protocol-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D99893
2021-01-29 16:11:08 +00:00
Brindusan Cristian
b0f9bc02f2 Backed out 2 changesets (bug 1596897) for mochitest failures at browser_setIgnoreCertificateErrors.js. CLOSED TREE
Backed out changeset 00c45a405129 (bug 1596897)
Backed out changeset 61304ccbaada (bug 1596897)
2021-01-28 21:53:46 +02:00
Paul Zuehlcke
31296e2f9e Bug 1596897 - Updated tests for decoupled permissions panel. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D99893
2021-01-28 12:14:43 +00:00
Sebastian Hengst
fb3f4293ca Bug 1677899 - disable browser_fullscreen_window_focus.js also on Windows Fission. r=jmaher DONTBUILD
Only runs on central, so got missed when autoland got checked.

Differential Revision: https://phabricator.services.mozilla.com/D102631
2021-01-22 14:30:06 +00:00
Sebastian Hengst
79b28f5a56 Bug 1677899 - disable browser_fullscreen_window_focus.js on Linux Fission as suggested by hsivonen. r=jmaher
Failures started after bug 1659383 had landed.

Differential Revision: https://phabricator.services.mozilla.com/D102263
2021-01-20 15:18:59 +00:00
Kartik Gautam
619cd73acb Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D100484
2021-01-07 08:53:08 +00:00
Cosmin Sabou
5980f4a6e1 Backed out changeset dbed1cdf588f (bug 1684173) for mochitest plain and devtools failures. a=backout DONTBUILD 2020-12-28 00:43:51 +02:00
Kartik Gautam
25fc1e9e28 Bug 1684173 - Add newline character at end of files when missing r=sylvestre
Depends on D100443

Differential Revision: https://phabricator.services.mozilla.com/D100484
2020-12-27 11:43:41 +00:00
Emilio Cobos Álvarez
136e604164 Bug 1635914 - Move active flag handling explicitly to BrowsingContext. r=nika
And have it mirror in the parent process more automatically.

The docShellIsActive setter in the browser-custom-element side needs to
be there rather than in the usual DidSet() calls because the
AsyncTabSwitcher code relies on getting an exact amount of notifications
as response to that specific setter. Not pretty, but...

BrowserChild no longer sets IsActive() on the docshell itself for OOP
iframes. This fixes bug 1679521. PresShell activeness is used to
throttle rAF as well, which handles OOP iframes nicely as well.

Differential Revision: https://phabricator.services.mozilla.com/D96072
2020-12-11 15:43:19 +00:00
Henri Sivonen
a26db683e0 Bug 1618386 - Add action ids to filter out stale active browsing context updates. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D94969
2020-11-16 19:16:20 +00:00
Steven MacLeod
fc24307100 Bug 1667286 - wait for expected number of events in browser_fullscreen_api_fission.js r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D94623
2020-10-26 13:45:05 +00:00
Steven MacLeod
de51813a38 Bug 1667286 - wait for requestFullscreen promise in browser_fullscreen_api_fission.js r=mconley
Before this change we were only waiting for the `fullscreenchange`
event in the frame that requested fullscreen. This event is fired
before the the promise returned by `requestFullscreen` is resolved.
We now wait on the returned promise to resolve in addition to the
event, which should delay when we check the logged events from
all the frames.

Differential Revision: https://phabricator.services.mozilla.com/D94017
2020-10-19 15:10:30 +00:00
Steven MacLeod
db81a5fd88 Bug 1665941 - expand cross-origin requestFullscreen mochitest to test ESC exit. r=smaug
This expands the current `requestFullscreen()` mochitest to check the
result of exiting fullscreen using the ESC key, since it follows a
separate code path from `document.exitFullscreen()`.

Depends on D90928

Differential Revision: https://phabricator.services.mozilla.com/D90940
2020-09-23 20:59:15 +00:00
Steven MacLeod
de5f3a07fb Bug 1665941 - add mochitest for requestFullscreen in a tree of cross-origin iframes. r=smaug
In order to more thoroughly test fullscreen with Fission, this change
introduces a new mochitest with a more complicated tree of
cross-origin iframes. The test ensures we're firing the proper events
in the correct documents, as well as setting and unsetting
`document.fullscreenElement`.

Differential Revision: https://phabricator.services.mozilla.com/D90928
2020-09-23 20:50:02 +00:00
Emilio Cobos Álvarez
c8667d1387 Bug 1658471 - Remove dom.security.featurePolicy.enabled. r=baku
We've shipped it on by default since 74 (bug 1617219).

Differential Revision: https://phabricator.services.mozilla.com/D86665
2020-08-12 10:57:04 +00:00
Narcis Beleuzu
cc0e28b59d Bug 1648649 - Disable browser_fullscreen_enterInUrlbar.js on linux64. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D84122
2020-07-21 11:42:44 +00:00
Andreea Pavel
9953ef59e3 Bug 1615477 - re-enable browser_fullscreen_enterInUrlbar.js on fission r=cpeterson
Differential Revision: https://phabricator.services.mozilla.com/D83862
2020-07-17 16:31:57 +00:00
Julian Descottes
0ae29ee62d Bug 1650155 - Rename PromiseTestUtils.whitelistRejectionsGlobally to allowMatchingRejectionsGlobally r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D82059
2020-07-03 17:01:29 +00:00
Gijs Kruitbosch
a25d1a59b7 Bug 1646780 - use a template to wrap the identity popup while it's not needed, r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D78894
2020-06-23 14:04:49 +00:00
Dorel Luca
10867ecce0 Backed out changeset 3671a57712e4 (bug 1646780) for Browser-chrome failures in webrtc/browser_devices_get_user_media_tear_off_tab.js 2020-06-19 04:22:23 +03:00
Gijs Kruitbosch
e7ae448a2d Bug 1646780 - use a template to wrap the identity popup while it's not needed, r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D78894
2020-06-19 00:02:11 +00:00
Alphan Chen
9c4e79b885 Bug 1620341 - Add didDestroy() in DOMFullscreenParent.jsm to avoid the window stays in fullscreen problem r=Gijs,smaug
Differential Revision: https://phabricator.services.mozilla.com/D75915
2020-06-08 15:24:54 +00:00
Xidorn Quan
cd8a2bd78a Bug 1638499 - Disable browser_fullscreen_window_focus.js on macOS. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D75923
2020-05-19 12:03:29 +00:00
Henri Sivonen
9b26f24091 Bug 1616772 - Re-enable browser/base/content/test/fullscreen/browser_bug1557041.js for Fission. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D67303
2020-03-18 17:48:28 +00:00
Andreea Pavel
2e89b6d385 Bug 1618386 - correct disabling typo r=cpeterson
Differential Revision: https://phabricator.services.mozilla.com/D67402
2020-03-19 16:42:42 +00:00
Ed Lee
361cbdb4a5 Bug 1620556 - Automatic code fixes for Prettier 1.19.1 upgrade. r=Standard8,remote-protocol-reviewers,marionette-reviewers,webcompat-reviewers,perftest-reviewers,sparky,whimboo,denschub
Differential Revision: https://phabricator.services.mozilla.com/D66128
2020-03-13 23:38:52 +00:00
Andreea Pavel
db3e4a7462 Bug 1618386 - temporary disable browser_fullscreen_window_focus.js on linux fission r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D66451
2020-03-13 19:15:47 +00:00
Mark Banner
d375cfec54 Bug 1620542 - Automatically fix ESLint errors in .eslintrc.js files. r=mossop
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D65703
2020-03-07 10:09:44 +00:00
Cosmin Sabou
c7630c4722 Bug 1569106 - Update disable syntax for browser_bug1557041.js. a=test-only
DONTBUILD
2020-03-02 22:57:34 +02:00
Henri Sivonen
e78b4208eb Bug 1569106 - Disable browser/base/content/test/fullscreen/browser_bug1557041.js for Fission on Windows. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D63445
2020-02-25 10:44:49 +00:00
egao
0b29d615f4 Bug 1613983 - adjust test manifests for linux64 browser-chrome tests on ubuntu 1804, r=jmaher.
Depends on D63435

Differential Revision: https://phabricator.services.mozilla.com/D63436
2020-02-20 13:50:30 +00:00
Drew Willcoxon
ba131af622 Bug 1610200 - In full screen, properly hide the toolbars after the user picks a result in the urlbar. r=dao
Two fixes:

* The urlbar view isn't a popup anymore, so `FullScreen` should listen for `onViewOpen` and `onViewClose` on the urlbar controller instead of popup events.
* Change the keypress listeners to keydown to listen for enter events in the urlbar and hide the toolbars.

Differential Revision: https://phabricator.services.mozilla.com/D62123
2020-02-13 21:39:08 +00:00
pbz
e964a437b6 Bug 1432856 - Added tests for window open and focus in fullscreen. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D56391
2020-01-16 14:39:11 +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
85af5c716a Bug 1432856 - Added tests for window open and focus in fullscreen. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D56391
2019-12-16 21:08:29 +00:00
Kris Maglione
ac36cf0bd5 Bug 1596918: Part 4g - Misc cleanup/fixes. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53748
2019-12-13 20:36:48 +00:00
Kris Maglione
99c0b418ed Bug 1596918: Part 4c - Fix callers which depend on document lifecycle changes. r=mccr8
ContentTask tasks have a different lifetime than SpecialPowers tasks, with the
former being tied to the lifetime of a message manager and the latter tied to
the lifetime of a window global. That means that existing ContentTask callers
which expect to be able to register load listeners before the creation of a
window global, or which expect to persist after a page has navigated, won't
work as SpecialPowers tasks.

Since those sorts of tasks are not really resilient in the face of Fission,
they should really be written to work differently, but this patch mostly just
reverts them to using ContentTask for the time being.

Differential Revision: https://phabricator.services.mozilla.com/D53744
2019-12-13 20:36:36 +00:00
Kris Maglione
7b2657b231 Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741
2019-12-13 20:36:24 +00:00
Kris Maglione
8c0d38f33d Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

Differential Revision: https://phabricator.services.mozilla.com/D53740
2019-12-13 20:36:16 +00:00
shindli
0aa47af90e Backed out 9 changesets (bug 1596918) for causing mochitest permafailures in toolkit/content/tests/chrome/test_findbar_events.xhtml CLOSED TREE
Backed out changeset 45a1c42118f2 (bug 1596918)
Backed out changeset db09910ffa56 (bug 1596918)
Backed out changeset 5c9d9f141c10 (bug 1596918)
Backed out changeset 6a135670d603 (bug 1596918)
Backed out changeset 3a0184e0df72 (bug 1596918)
Backed out changeset 2f0036486823 (bug 1596918)
Backed out changeset a770c6d08d52 (bug 1596918)
Backed out changeset ef062eb7a6ee (bug 1596918)
Backed out changeset a6ea596e98db (bug 1596918)
2019-12-11 03:09:26 +02:00