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

7631 Коммитов

Автор SHA1 Сообщение Дата
Florian Quèze 5cc32b22ef Bug 1674569 - about:processes registration should no longer be limited to Nightly builds, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D96094
2020-11-05 19:37:01 +00:00
Andrew Halberstadt 331bc892dd Bug 1675319 - [manifestparser] Properly support multiline skip-if statements, r=jmaher,extension-reviewers,zombie
This supports one manifestparser expression per line in the 'skip-if',
'fail-if' and 'run-if' keys. As a side effect the:

    skip-if = foo ||
        bar

syntax is no longer supported. Instead it can be:

    skip-if =
        foo  # bug 123
        bar  # bug 456

Differential Revision: https://phabricator.services.mozilla.com/D95927
2020-11-05 19:55:08 +00:00
Razvan Maries 10425eddfc Backed out 7 changesets (bug 1658084, bug 1671983) for perma failures on browser_async_remove_tab.js and browser_e10s_chrome_process.js. CLOSED TREE
Backed out changeset 2e6309c1cdbd (bug 1658084)
Backed out changeset 99aafd9304ef (bug 1671983)
Backed out changeset 80280b85280a (bug 1671983)
Backed out changeset 008db2659002 (bug 1671983)
Backed out changeset 32bd45c7fe3a (bug 1671983)
Backed out changeset 56e227e6580c (bug 1671983)
Backed out changeset a404f809f79d (bug 1671983)
2020-11-04 04:23:47 +02:00
Nika Layzell 5f9c85da95 Bug 1671983 - Part 4: Stop awaiting BrowserTestUtils.loadURI, r=annyG,remote-protocol-reviewers,extension-reviewers,preferences-reviewers,whimboo,zombie
This method only is async in order to allow callers to wait for a process switch
triggered by the call to `loadURI` to be finished before resolving. With
DocumentChannel, we should never trigger a process switch eagerly like this
again, so we don't need any of the async behaviour here anymore.

This part is largely mechanical changes to tests, removing the `await` calls on
`loadURI`, and a follow-up part will remove the actual async logic from
`BrowserTestUtils.loadURI`.

Differential Revision: https://phabricator.services.mozilla.com/D94641
2020-11-04 00:55:36 +00:00
Nika Layzell a30f10ec01 Bug 1671983 - Part 2: Remove SessionStore.navigateAndRestore, r=annyG,kashav
This formed the backbone of the previous process switching codepath, and
shouldn't be necessary anymore thanks to DocumentChannel's new codepath.

This also removes the eager process switching logic from frontend's _loadURI, as
it would rarely be taken, unless an invalid URI was entered, already.

Differential Revision: https://phabricator.services.mozilla.com/D94639
2020-11-04 00:55:23 +00:00
Andreas Farre 58f2daf6b8 Bug 1675010 - Make sure to cleanup in actor for docshell/test/browser/browser_bug422543.js. r=kashav
Differential Revision: https://phabricator.services.mozilla.com/D95732
2020-11-03 14:32:41 +00:00
Andreas Farre 5d542cad2e Bug 1599610 - Unskip browser_bug422543 test for Fission. r=kashav
Differential Revision: https://phabricator.services.mozilla.com/D95676
2020-11-03 14:32:56 +00:00
Cristina Coroiu 2f525116da Bug 1671794 - disable browser_tab_replace_while_loading.js on win for frequent failures r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D95448
2020-11-03 10:17:15 +00:00
Peter Van der Beken d8307942b8 Bug 1673702 - Wrong page loaded when reloading after navigating back across an eTLD+1 boundary. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D95408
2020-10-30 23:49:14 +00:00
Olli Pettay e26d8e3f5a Bug 1673947 - CreatedDynamically isn't updated on parent side, r=kashav
Depends on D94904

Differential Revision: https://phabricator.services.mozilla.com/D95068
2020-10-30 22:10:22 +00:00
Olli Pettay 1856a4dec3 Bug 1671962 - Iframes loaded from restored session are loaded out of order when Fission enabled, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D94904
2020-10-30 22:10:15 +00:00
Narcis Beleuzu 8042432b13 Backed out 2 changesets (bug 1673947, bug 1671962) for wpt failure on nested-context-navigations-iframe.html . CLOSED TREE
Backed out changeset 8c71945d53bd (bug 1673947)
Backed out changeset 84ed543cd810 (bug 1671962)
2020-10-30 21:05:41 +02:00
Peter Van der Beken 780eafe9ee Bug 1670933 - Back button is not enabled by iframe navigation when Fission is enabled. r=smaug,extension-reviewers,zombie
Differential Revision: https://phabricator.services.mozilla.com/D95322
2020-10-30 15:24:15 +00:00
Olli Pettay 0819023ff0 Bug 1673947 - CreatedDynamically isn't updated on parent side, r=kashav
Depends on D94904

Differential Revision: https://phabricator.services.mozilla.com/D95068
2020-10-30 11:48:30 +00:00
Olli Pettay d07f915174 Bug 1671962 - Iframes loaded from restored session are loaded out of order when Fission enabled, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D94904
2020-10-30 11:48:23 +00:00
Peter Van der Beken e33c84b907 Bug 1659183 - Don't temporarily increment length of session history if we're just adding a child entry for an initial load. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D94976
2020-10-29 09:13:58 +00:00
Kartikaya Gupta 8ee9f46d79 Bug 1660054 - Hook up the zoom-reset action to also reset APZ/scaling zoom. r=Gijs,nika,botond
The goal here is to hook up the ctrl+0 keyboard shortcut to reset the scaling
zoom applied by pinch gestures (on touchscreen or trackpad), in addition to
resetting the reflow zoom (aka full zoom). This patch also makes other mechanisms
to reset the reflow zoom (e.g. clicking on the "100%" label in the hamburger menu)
also reset scaling zoom, which I think makes sense for consistency.

Most of this patch is just plumbing, but I'm unfamiliar with these codepaths
so requesting review from relevant owners to make sure it's sane.

Differential Revision: https://phabricator.services.mozilla.com/D94624
2020-10-28 22:48:57 +00:00
Mihai Alexandru Michis 48192aab09 Backed out changeset 952da6bff887 (bug 1660054) for causing bc failures in browser_test_reset_scaling_zoom.js
CLOSED TREE
2020-10-28 23:00:15 +02:00
Kartikaya Gupta c75bed1584 Bug 1660054 - Hook up the zoom-reset action to also reset APZ/scaling zoom. r=Gijs,nika,botond
The goal here is to hook up the ctrl+0 keyboard shortcut to reset the scaling
zoom applied by pinch gestures (on touchscreen or trackpad), in addition to
resetting the reflow zoom (aka full zoom). This patch also makes other mechanisms
to reset the reflow zoom (e.g. clicking on the "100%" label in the hamburger menu)
also reset scaling zoom, which I think makes sense for consistency.

Most of this patch is just plumbing, but I'm unfamiliar with these codepaths
so requesting review from relevant owners to make sure it's sane.

Differential Revision: https://phabricator.services.mozilla.com/D94624
2020-10-28 19:14:18 +00:00
Narcis Beleuzu 41be6a07c9 Backed out changeset af04d36c832d (bug 1670530) for bc failure on browser_viewsourceprefs.js . CLOSED TREE 2020-10-28 18:01:00 +02:00
Nika Layzell 3f9ef8b720 Bug 1670530 - Fix view-source loads redirecting from parent to content, r=mattwoodrow,necko-reviewers
Previously these requests would replace the nsIRequest argument to stream
listeners based on the initial process, rather than based on the final process.
This caused issues when the initial process was non-remote, but the final
process was remote, as the parameter would be replaced when it shouldn't be.

This patch now disables request-argument replacement for all loads, and
selectively re-enables it during OnStartRequest for loads which will terminate
in the parent process.

Differential Revision: https://phabricator.services.mozilla.com/D94779
2020-10-27 07:29:45 +00:00
Emilio Cobos Álvarez e5a63697bf Bug 1673707 - Simplify handling of the suspendMediaWhenInactive flag. r=nika
Make it a synced field on the top browsing context. This handling the
propagation right and is much simpler.

This should fix cases where we don't look at the top level docshell to
figure out if we should suspend media.

Differential Revision: https://phabricator.services.mozilla.com/D94878
2020-10-27 19:55:47 +00:00
Ricky Stewart 02a7b4ebdf Bug 1654103: Standardize on Black for Python code in `mozilla-central`.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Razvan Maries 64f020af40 Bug 1668871 - Disabled browser_platform_emulation.js on Windows and Linux with fission. r=intermittent-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D94691
2020-10-26 13:35:32 +00:00
Bogdan Tara da1098d4aa Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Randell Jesup 904b53869f Bug 1670848: Handling aborting history navigations when others run r=smaug
Handles edge cases around history.go() with one event loop spin

Differential Revision: https://phabricator.services.mozilla.com/D93302
2020-10-23 20:27:50 +00:00
Ricky Stewart c0cea3b0fa Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Andreas Farre f6ff91769c Bug 1667767 - Expose the BC's HistoryID field through WebIDL. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D92893
2020-10-23 10:07:09 +00:00
alwu bfe51b5b94 Bug 1670841 - part2 : prevent tab with a main controller from being suspended. r=snorp,nika
When a tab is owning a main controller, which means that the tab is either playing media, or still waiting for media keys in order to control its media again.

In those situations, we should not suspend the tab so that its script can continue to run for playing media or handling the future task for media keys.

Differential Revision: https://phabricator.services.mozilla.com/D93445
2020-10-22 21:31:18 +00:00
Csoregi Natalia 22aaaaef5c Backed out changeset 77c34aa0aaf3 (bug 1669961) for causing crashtests. CLOSED TREE 2020-10-22 23:13:31 +03:00
Michael Kaply c7c4a35de5 Bug 1559181 - Switch about blocking to use new REJECT_POLICY and cleanup tests r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D93390
2020-10-22 19:36:52 +00:00
Kris Maglione 3cf334a80a Bug 1669961: Return null from `.contentWindow` when inner window is inactive. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D93853
2020-10-22 19:05:04 +00:00
Olli Pettay ef01822225 Bug 1671658 - [Fission] Keep the old scrollRestoration value when calling replaceState(), r=peterv
The method is inconsistent whether to null check mActiveEntry. I'll clean that up separately.

Differential Revision: https://phabricator.services.mozilla.com/D93803
2020-10-22 10:23:47 +00:00
Emilio Cobos Álvarez 49c488db1c Bug 1646222 - Don't invalidate vector images as a result of size/display mode changes. r=tnikkel
sizemode/displaymode media queries only affect a given browsing context
tree so there's no need to propagate the change to images in that case.

Differential Revision: https://phabricator.services.mozilla.com/D94422
2020-10-22 09:29:43 +00:00
Frédéric Wang 70d15af587 Bug 1220810 - Hardcode localhost to loopback, r=ckerschb,necko-reviewers,dragana
This patch make localhost addresses resolve to a loopback address,
thereby ensuring that we can safely treat http://localhost/ and
http://*.localhost/ as "Potentially Trustworthy". This addresses
various bug reports from developers and aligns with specifications.

See https://groups.google.com/g/mozilla.dev.platform/c/sZdEYTiEBdE

Differential Revision: https://phabricator.services.mozilla.com/D92716
2020-10-22 07:36:15 +00:00
Dorel Luca 1ff59cb7a3 Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Ricky Stewart 50762dacab Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
alwu 6ea535704b Bug 1669434 - part1 : update default metadata if needed when page title changes. r=chunmin,nika
When a page doesn't have a non-empty media session metadata, we would use its title as a default metadata, which would display as an artist name on the virtual control interface.

Therefore, when a page changes its title, we should also notify media controller (if it's been created) in order to update the default metadata as well.

Differential Revision: https://phabricator.services.mozilla.com/D93670
2020-10-21 17:25:34 +00:00
Olli Pettay 4b7c023053 Bug 1671697 - Crash in [@ nsDocShell::InternalLoad], r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D93929
2020-10-21 14:22:47 +00:00
smolnar b70b9de731 Backed out changeset a5a35a205a44 (bug 1220810) for causing test_dns_offline and fontface-override-descriptor-getter-setter failures. CLOSED TREE 2020-10-21 13:00:01 +03:00
Frédéric Wang 4e6e6c7714 Bug 1220810 - Hardcode localhost to loopback, r=ckerschb,necko-reviewers,dragana
This patch make localhost addresses resolve to a loopback address,
thereby ensuring that we can safely treat `http://localhost/` and
`http://*.localhost/` as "Potentially Trustworthy". This addresses
various bug reports from developers and aligns with specifications.

See https://groups.google.com/g/mozilla.dev.platform/c/sZdEYTiEBdE

Differential Revision: https://phabricator.services.mozilla.com/D92716
2020-10-21 07:42:23 +00:00
Valentin Gosu 75e57b5355 Bug 1672127 - Fix browser_fall_back_to_https.js to use actual host r=ckerschb
Adds secureonly.example.com:443 to server-locations.txt - this host is only available on HTTPS.
Regenerates certs using `./mach python build/pgo/genpgocert.py` command.
Sets network.dns.native-is-localhost pref in test so we don't trigger assertion.

Differential Revision: https://phabricator.services.mozilla.com/D94005
2020-10-20 10:26:41 +00:00
Olli Pettay eb0d74a373 Bug 1671922 - Minor tweak to a comment, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D93997
2020-10-19 12:44:21 +00:00
Peter Van der Beken b9f1b3e0e2 Bug 1671223 - Reenable some tests that are now succeeding with session history in parent. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D93770
2020-10-19 08:41:11 +00:00
Johann Hofmann 24583a21f2 Bug 1623920 - Restrict window.stop with nsDocShell::IsNavigationAllowed. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D72113
2020-10-16 09:31:31 +00:00
Tom Tung 45a97b5b83 Bug 1654080 - Use PBackground for syncing SessionStorageCache and use LSWriteOptimizer to send data changes; r=dom-workers-and-storage-reviewers,janv,nika
This patch does:
- Use LSWriteOptimizer
- Remove SessionStorageService since it's unused.
- Move IPC from PContent to PBackground
(by SessionStorageManager{Child, Parent} and SessionStorageCache{Child, Parent}).
- Extract SessionStorageManagerBase and add PBackgroundSessionStorageManager.
- Expose a getter function to get a BackgroundParentManager for top context id
on the parent.

IPC
- Before this patch:
  - Copy from parent while loading a document.
    - Mark cache entry on the parent process as loaded by the child id.
  - Update change on checkpoint.
  - Unmark cache entry on the parent process as unloaded for the child id while
  the parent actor is destorying.
- After this patch:
  - Sync IPC load in the first SessionStorage operation.
  - Update change on checkpoint

`BackgroundSessionStorageManager`'s lifecycle on the parent process.
- Create by `SessionStorageManagerParent` and register to the `sManagers`.
- Hold by `SessionStorageManagerParent` and `sManagers`.
- Remove from the `sManagers` while the corresponding `BrowsingContext` is
destructed (on the parent process).

Depends on D89341

Differential Revision: https://phabricator.services.mozilla.com/D89342
2020-10-14 00:19:33 +00:00
Olli Pettay 1a587403e7 Bug 1668083 - when redirecting load from post to get, load should become replacing load also in session history, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D93249
2020-10-13 16:36:11 +00:00
Kashav Madan 72c025a351 Bug 1669767 - Fallback on SessionHistoryInfo::mURI if we receive an empty title, r=peterv
This now mirrors nsSHEntry::GetTitle.

Differential Revision: https://phabricator.services.mozilla.com/D92785
2020-10-13 14:47:51 +00:00
Olli Pettay 847147b50c Bug 1670214 - [Fission] Crash in [@ mozilla::dom::CanonicalBrowsingContext::NotifyOnHistoryReload], r=jesup
Trying to keep the old behavior where reload succeeds without shistory
https://hg.mozilla.org/mozilla-central/file/a42aa95147941ca7983eaf4846b644e207de24f8/docshell/base/nsDocShell.cpp#l4091

Differential Revision: https://phabricator.services.mozilla.com/D93331
2020-10-13 13:17:12 +00:00
Marco Bonardo 1019bbf009 Bug 1626016 - Remove createFixupURI and move postData inside URIFixupInfo. r=Gijs,geckoview-reviewers,preferences-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D93189
2020-10-13 10:20:16 +00:00