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

282 Коммитов

Автор SHA1 Сообщение Дата
Mark Banner 15cfe23b88 Bug 1620542 - Automatically fix ESLint errors in .eslintrc.js files. r=mossop
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2020-03-07 10:09:44 +00:00
Anny Gakhokidze 29dd301b29 Bug 1609475 - Expand on the comment about special behaviour in docshell/test/navigation/file_bug1609475.html, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D64426

--HG--
extra : moz-landing-system : lando
2020-02-26 21:39:42 +00:00
Olli Pettay 4ecbebad86 Bug 1609475, history.go(>1) should possibly load several iframes, r=annyG
Differential Revision: https://phabricator.services.mozilla.com/D63726

--HG--
extra : moz-landing-system : lando
2020-02-22 16:44:18 +00:00
Andreea Pavel 3f1905ccdc Backed out changeset 2bd2a22267d6 (bug 1609475) for failing test_sessionhistory.html on a CLOSED TREE 2020-02-22 01:46:26 +02:00
Olli Pettay 72ae1c9ce2 Bug 1609475, history.go(>1) should possibly load several iframes, r=annyG
Differential Revision: https://phabricator.services.mozilla.com/D63726

--HG--
extra : moz-landing-system : lando
2020-02-21 21:55:07 +00:00
Kris Maglione 9853440599 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

--HG--
extra : moz-landing-system : lando
2019-12-13 20:36:24 +00:00
Kris Maglione 94e3b0bd8d 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

--HG--
extra : moz-landing-system : lando
2019-12-13 20:36:16 +00:00
Anny Gakhokidze d75349c3c6 Bug 1594390 - Keep session history listener alive in browser_test_bfcache_eviction.js when SH pref is on, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D56947

--HG--
extra : moz-landing-system : lando
2019-12-12 15:13:00 +00:00
shindli 91924fedc7 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
Kris Maglione 3ca78ce8e3 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

--HG--
extra : moz-landing-system : lando
2019-12-10 23:07:21 +00:00
Kris Maglione 16a9b29848 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

--HG--
extra : moz-landing-system : lando
2019-12-10 23:07:13 +00:00
Anny Gakhokidze f0f6cb1643 Bug 1594390 - Keep session history listener alive in docshell/test/navigation/browser_test_bfcache_eviction.js, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D56600

--HG--
extra : moz-landing-system : lando
2019-12-10 21:10:52 +00:00
Noemi Erli 82d41a33b2 Backed out 9 changesets (bug 1596918) for causing multiple browser-chrome failures
Backed out changeset 415007efd8c9 (bug 1596918)
Backed out changeset 011eb5ce927b (bug 1596918)
Backed out changeset e5fd3ee22ea1 (bug 1596918)
Backed out changeset 0bca4de31d40 (bug 1596918)
Backed out changeset 11ec4393f23d (bug 1596918)
Backed out changeset c5404a7c286d (bug 1596918)
Backed out changeset 7e9304405a46 (bug 1596918)
Backed out changeset fa0f0aeabf99 (bug 1596918)
Backed out changeset de196b077000 (bug 1596918)
2019-12-07 22:26:43 +02:00
Kris Maglione fa3556c3fc 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

--HG--
extra : moz-landing-system : lando
2019-12-07 18:44:34 +00:00
Kris Maglione 910eab35d2 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

--HG--
extra : moz-landing-system : lando
2019-12-07 19:11:58 +00:00
Daniel Varga 84a601a6d4 Backed out 17 changesets (bug 1596918) for multiple browser-chrome and dev-tools failures. On a CLOSED TREE
Backed out changeset ab87d2c1afae (bug 1596918)
Backed out changeset 775f3b06a687 (bug 1596918)
Backed out changeset 67cc63ef5d7f (bug 1596918)
Backed out changeset 7d290bcd2067 (bug 1596918)
Backed out changeset 048db9f4db7c (bug 1596918)
Backed out changeset 96a79d2ba614 (bug 1596918)
Backed out changeset be770d112dd8 (bug 1596918)
Backed out changeset 302c8ab8391c (bug 1596918)
Backed out changeset 44ef8f20732e (bug 1596918)
Backed out changeset 38c11ebfb8ff (bug 1596918)
Backed out changeset b586fc081374 (bug 1596918)
Backed out changeset 12283166716f (bug 1596918)
Backed out changeset 99b0421015d8 (bug 1596918)
Backed out changeset 97ec49dbbbf3 (bug 1596918)
Backed out changeset ec79478f58f1 (bug 1596918)
Backed out changeset c6d356833bb8 (bug 1596918)
Backed out changeset 5ef6026806c8 (bug 1596918)
2019-12-07 03:12:07 +02:00
Kris Maglione b5238224ba 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

--HG--
extra : moz-landing-system : lando
2019-12-06 22:14:22 +00:00
Kris Maglione 20da940e14 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

--HG--
extra : moz-landing-system : lando
2019-12-06 22:14:14 +00:00
Andreea Pavel a6b19eaffd Bug 1594390 - update disabling condition to include all win r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D54428

--HG--
extra : moz-landing-system : lando
2019-11-25 01:10:36 +00:00
Cosmin Sabou 0afb5eae77 Bug 1594390 - Disable browser_test_bfcache_eviction.js for frequent failures. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D53144

--HG--
extra : moz-landing-system : lando
2019-11-15 10:53:22 +00:00
Anny Gakhokidze 3c0608ff80 Bug 1594850 - Part 2 - Write a test for gHistoryMaxSize in nsSHistory being set to 0 and mIndex and mRequestedIndex=-1, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D52927

--HG--
extra : moz-landing-system : lando
2019-11-14 20:09:58 +00:00
Andreas Farre b1f7e4afb8 Bug 1592309 - Rewrite tests using xpcEnumerateContentWindows. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D51110

--HG--
extra : moz-landing-system : lando
2019-11-12 21:52:26 +00:00
Andreas Farre e18b00ac85 Bug 1590782 - Switch process when InternalLoad finds oop BrowsingContext. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D50945

--HG--
extra : moz-landing-system : lando
2019-11-12 21:52:18 +00:00
Sebastian Hengst 401f1ce710 Merge mozilla-inbound to mozilla-central. a=merge 2019-11-06 14:54:44 +01:00
Brendan Dahl eafc9e3293 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

--HG--
rename : xpfe/appshell/nsXULWindow.cpp => xpfe/appshell/AppWindow.cpp
rename : xpfe/appshell/nsXULWindow.h => xpfe/appshell/AppWindow.h
rename : xpfe/appshell/nsIXULWindow.idl => xpfe/appshell/nsIAppWindow.idl
extra : moz-landing-system : lando
2019-11-05 17:56:28 +00:00
Dorel Luca c8d81d0c68 Bug 1586686 = Disable test_triggeringprincipal_iframe_iframe_window_open.html on Linux64-fis-debug-webrender for frequent failures r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D51634

--HG--
extra : moz-landing-system : lando
2019-11-04 20:50:07 +00:00
Mihai Alexandru Michis b819bd25aa 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)

--HG--
rename : xpfe/appshell/nsIAppWindow.idl => xpfe/appshell/nsIXULWindow.idl
rename : xpfe/appshell/AppWindow.cpp => xpfe/appshell/nsXULWindow.cpp
rename : xpfe/appshell/AppWindow.h => xpfe/appshell/nsXULWindow.h
2019-11-05 09:24:26 +02:00
Brendan Dahl 0c0da7791e 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

--HG--
rename : xpfe/appshell/nsXULWindow.cpp => xpfe/appshell/AppWindow.cpp
rename : xpfe/appshell/nsXULWindow.h => xpfe/appshell/AppWindow.h
rename : xpfe/appshell/nsIXULWindow.idl => xpfe/appshell/nsIAppWindow.idl
extra : moz-landing-system : lando
2019-11-04 23:37:31 +00:00
Peter Van der Beken 9c3b7900e5 No bug - Reformat testcases in docshell/test. r=me
--HG--
extra : rebase_source : 07436dac998b1f6e3c722a6bb432aebc04590332
extra : source : fc144a705ce9b9a8b885447fb4c168f878ca77d3
extra : histedit_source : d85e30a64c6286d762262a7344dd3cc73ede3d4f
2019-11-04 14:28:08 +01:00
Peter Van der Beken 20333f0715 Bug 1591899 - Make various docshell tests work with session history in the parent turned off. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D50791

--HG--
extra : rebase_source : e8441d50b7bdc59933e5adc6430b01039e775515
extra : source : c24e9ca249b1d21e20f3c99cb8ae752c441e4b86
extra : histedit_source : e4071f2be4c58baef0f26303d5a16f985fea8506
2019-10-15 09:25:03 +02:00
Dorel Luca 0207ce5451 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)

--HG--
rename : xpfe/appshell/nsIAppWindow.idl => xpfe/appshell/nsIXULWindow.idl
rename : xpfe/appshell/AppWindow.cpp => xpfe/appshell/nsXULWindow.cpp
rename : xpfe/appshell/AppWindow.h => xpfe/appshell/nsXULWindow.h
extra : amend_source : 752d828c6a0726c3f2df57a25741e38b36b75d6b
2019-11-04 19:18:56 +02:00
Brendan Dahl 247b257cfa 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

--HG--
rename : xpfe/appshell/nsXULWindow.cpp => xpfe/appshell/AppWindow.cpp
rename : xpfe/appshell/nsXULWindow.h => xpfe/appshell/AppWindow.h
rename : xpfe/appshell/nsIXULWindow.idl => xpfe/appshell/nsIAppWindow.idl
extra : moz-landing-system : lando
2019-11-04 16:52:35 +00:00
Andrew McCreight 2b7c6b4c81 Bug 1592465 - Modernize browser_bug343515.js. r=bzbarsky
I rewrote BrowserUtils.addContentEventListener(), and that caused an
intermittent failure in browser_bug343515.js. The use of
addContentEventListener in the test is questionable, and the test as a
whole is old, so I freshened it up.

Instead of nShotsListener (and oneShotListener, which is a special
case of that) which waits for a hard coded number of load events to
fire to ensure that a page and its subframes are all loaded, I use
BrowserTestUtils.browserLoaded().

Instead of waitForPageshow, which runs a script in the content process
that waits for an event, it uses BrowserTestUtils.waitForContentEvent,
which does the same thing in a hopefully more resilient fashion.

The largest change in terms of number of characters changed is that I
rewrote the test so that it is written inside of a single add_task
async function, instead of being split into a chain of async
functions. I also used await to flatten a lot of .then() chained
things.

I fixed up some variable shadowing. There was some trickiness around
shadowed variable names being used as field names, so I introduced an
intermediate 'data' variable to hold the structure.

Finally, I call BrowserTestUtils.removeTab() instead of calling
removeTab() directly on the browser. I figured that was probably
better, though maybe it does not matter.

I added a check after each step that the URI is correct, where
missing, which would have caught a bug in an earlier version of this
patch.

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

--HG--
extra : moz-landing-system : lando
2019-10-31 02:47:08 +00:00
Christoph Kerschbaumer 78b7848da6 Bug 1592201: Enable test_bug13871.html with fission enabled. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D50905

--HG--
extra : moz-landing-system : lando
2019-10-29 14:08:20 +00:00
Olli Pettay 542288fa53 Bug 1396309, try to make file_fragment_handling_during_load.html less racy, r=peterv
The changes try to ensure we haven't really started load process of the new page, just that
there is ongoing active request. history.back() will then only affect to the fragment navigation.

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

--HG--
rename : docshell/test/navigation/file_fragment_handling_during_load_frame2.html => docshell/test/navigation/file_fragment_handling_during_load_frame2.sjs
extra : moz-landing-system : lando
2019-10-28 20:18:24 +00:00
Anny Gakhokidze d7799e93d3 Bug 1579093 - Fix failing test docshell/test/navigation/test_load_history_entry.html on ash, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D48558

--HG--
extra : rebase_source : 6f4571435f59bd12fe79584e3ce88d12a88c661a
extra : source : 2353562bc8aa7330ee6dfae16c25b9023d8598f6
extra : histedit_source : 4601cdab3a0ebcf0e72088e8e715ea8fe15bd146
2019-09-30 17:58:02 -04:00
Andrew McCreight 2e32ec2b4b Bug 1589138 - Make addContentEventListener take an options object for the listener. r=Gijs
All but browser_bug744745.js seem to pass even without the fixes I
made, which seems odd.

browser_bug1058164.js is a little odd because it passes in {} instead
of a boolean for the useCapture argument. I think this ends up calling
addEventListener(..., {}, false), which should be the equivalent of
addEventListener(..., {}).

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

--HG--
extra : moz-landing-system : lando
2019-10-16 17:36:44 +00:00
Geoff Brown c906073cd5 Bug 1585119 - Re-enable many mochitests on android; r=geckoview-reviewers,snorp
Most of these tests have been disabled for a long time; they run well
in the current test environment.
With the additional tests running, task times increase; I have added one
more test chunk for android mochitest-plain.
These tests were identified from a random sampling of mochitest manifests;
I intend to enable more mochitests in future patches.

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

--HG--
extra : moz-landing-system : lando
2019-10-15 15:07:09 +00:00
Kris Maglione 96062b8b7d Bug 1586926 - Add necessary caller access checks for cross-process Location navigations. r=nika
We attempt to enforce the same (approximate) access checks to Location-based
navigation that we use for loads that use named targeting (e.g., via
window.open), so that a frame that can't be navigated via, e.g., window.open,
also can't be navigated via, e.g., window.parent[1].location = url. For the
in-process case, this is handled by a somewhat hidden call to
CheckLoadingPermissions() in nsDocShell::InternalLoad, where the former checks
whether the principal of whatever JS context happens to be on the stack
subsumes the principal of the target DocShell or any of its ancestors, and
blocks the load if it doesn't.

Since there is no JS context on the stack when we call into the DocShell
loading code in the cross-process case, the check is simply ignored.

So we need to instead do the check in BrowsingContext::LoadURI, where we
already have an explicit accessor, and can simply use the standard access
checks that we use elsewhere.

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

--HG--
extra : moz-landing-system : lando
2019-10-10 19:36:23 +00:00
Kris Maglione 1be547aab5 Bug 1586119: Part 3 - Enable some tests which appear to work under Fission. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D48222

--HG--
extra : moz-landing-system : lando
2019-10-04 21:50:32 +00:00
Kris Maglione 147f1b5141 Bug 1586119: Part 2 - Fix some more tests to almost work under Fission. r=mccr8
These still fail or timeout because of missing platform features, but at least
the tests will pass once those platform features are fixed after this.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 21:50:34 +00:00
Kashav Madan 596682e758 Bug 1582156 - Fix docshell/test/navigation/browser_test-content-chromeflags.js to work with Fission, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D46298

--HG--
extra : moz-landing-system : lando
2019-09-19 17:49:39 +00:00
Kris Maglione 165096efe5 Bug 1579820 - Handle window.open() from remote subframes. r=nika
The CommonCreateWindow code requires having a BrowserHost for the tab that's
creating the window, which it tries to get from the requestor's BrowserParent.
For remote BrowserParents, though, there is no BrowserHost, so we need to get
it from the top-level embedder instead.

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

--HG--
extra : moz-landing-system : lando
2019-09-10 09:04:17 +00:00
Andreea Pavel 069d6deacf Bug 1560378 - disabled test_bug1364364.html on android r=gbrown CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com//D44303

--HG--
extra : histedit_source : 563e357b1fdd765ca14d5726d6d10c1c0077265a
2019-08-31 21:40:18 +03:00
Kris Maglione be074abe5e Bug 1571502: Follow-up: Remove straggler shutdown leak annotations after rebase.
Differential Revision: https://phabricator.services.mozilla.com/D42021

--HG--
extra : moz-landing-system : lando
2019-08-15 18:06:18 +00:00
Anny Gakhokidze 7c10781235 Bug 1545474 - Part 3: Test eviction of content viewer entries, r=peterv
Add a new callback to session history listener to listen for content
viewers being evicted.

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

--HG--
extra : rebase_source : 29c8e9299af718e75029dfae4e937a3d4f18900d
extra : amend_source : 19e679c6d2721dd7e8d7da1ec7af3033439210b4
extra : source : 5e4d0ab9e52ce1e1d1684fdb59534a66e9f9d9b9
extra : histedit_source : 44e9cb7ba0589c79c03b2dc58ec4d0d4c0c98422
2019-05-22 16:19:19 -04:00
Anny Gakhokidze e77474ca47 Bug 1539482 - Write tests for nsISHEntry::CreateLoadInfo, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D26813

--HG--
extra : rebase_source : d3bf408e74dfd33fd6e9b3c8f69dbfa91028c647
extra : source : 88d429a1f9e4dc7cfae21d3690680a30a92f879f
extra : histedit_source : b8710737afc396011d74345dd5513c6d42f296ba
2019-04-08 18:39:40 -04:00
Anny Gakhokidze d4a3299bea Bug 1536471 - Write tests for nsISHistory::RemoveFrameEntries, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D24977

--HG--
extra : rebase_source : 8eceb765754180b8fa64ca300497b61503b1a37a
extra : source : b081ebe7b3f52dec2a85e744b2dd2a4b0f344f8e
extra : histedit_source : 42000d31c502554cdcd91a326c369b375f90429e
2019-03-26 11:21:26 -04:00
Kris Maglione 509553ab6e Bug 1562292: Part 3 - Update test annotations. r=nika
MANUAL PUSH: Partial landing.

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

--HG--
extra : rebase_source : 35b334cfafc82d4494a3a3369af4de7a26f91e7e
extra : histedit_source : f060e18aaf12681bfa65b3801e5b785e03241bef
2019-08-01 23:02:01 -07:00
Olli Pettay 1373bb3701 Bug 1563587, Make history.back/forward/go asynchronous, r=farre
The main part of the change is the change to ChildSHistory - make it possible to have Go() to be called asynchronously
and also let one to cancel pending history navigations. History object (window.history) can then use either the sync or
async Go(), depending on the dom.window.history.async pref.

LoadDelegate, which is used by GeckoView, needs special handling, since
it spins event loop nestedly. With session history loads and same-document loads we can just
bypass it.
To deal with same-document case, MaybeHandleSameDocumentNavigation is split to IsSameDocumentNavigation,
which collects relevant information about the request and returns true if same-document navigation should happen,
and then later HandleSameDocumentNavigation uses that information to trigger the navigation.
SameDocumentNavigationState is used to pass the information around.

referrer-policy-test-case.sub.js is buggy causing tests to pass only on Firefox with sync history API.

nested-context-navigations-iframe.html.ini is added because of https://bugzilla.mozilla.org/show_bug.cgi?id=1572932

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

--HG--
extra : moz-landing-system : lando
2019-08-14 06:38:47 +00:00