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

1125 Коммитов

Автор SHA1 Сообщение Дата
Dylan Roeh 8276ad5d0e Bug 1632231 - Fix potential crash by gracefully failing when GV tries to add/remove/check content blocking exceptions for invalid URIs. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D72012
2020-04-29 16:45:27 +00:00
Agi Sferro 1c11cbd114 Bug 1632922 - use const instead of let - manual fixes. r=snorp
This commit was generated manually fixing all remaining eslint failures.

Differential Revision: https://phabricator.services.mozilla.com/D72413
2020-04-24 21:53:19 +00:00
Agi Sferro dff7aa5d42 Bug 1632922 - use const instead of let - eslint --fix r=snorp
This commit was generated by running `./mach eslint --fix`.

Differential Revision: https://phabricator.services.mozilla.com/D72412
2020-04-24 21:53:17 +00:00
alwu d09fa27d37 Bug 1625615 - part1 : update 'suspendMediaWhenInactive' when GeckoView setting changes r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D69884
2020-04-22 02:08:27 +00:00
Agi Sferro c62bcbc6e5 Bug 1631137 - Wait for Schema to be initialized in shouldPromptFor. r=esawin,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D71568
2020-04-21 15:51:47 +00:00
Csoregi Natalia de8e762887 Backed out 7 changesets (bug 1625615) for multiple failures e.g. /test_windowedhistoryframes.html. CLOSED TREE
Backed out changeset f239d24658c9 (bug 1625615)
Backed out changeset acea7c78db20 (bug 1625615)
Backed out changeset d709f5a72c35 (bug 1625615)
Backed out changeset 4cd231b1f3fb (bug 1625615)
Backed out changeset 45942c8dc380 (bug 1625615)
Backed out changeset 3f03a8703a8a (bug 1625615)
Backed out changeset e9299fc48796 (bug 1625615)
2020-04-16 00:32:16 +03:00
alwu a9d2260712 Bug 1625615 - part1 : update 'suspendMediaWhenInactive' when GeckoView setting changes r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D69884

--HG--
extra : moz-landing-system : lando
2020-04-07 13:55:30 +00:00
Agi Sferro 8a259cb9b3 Bug 1628117 - Remove BrowserApp. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D70456

--HG--
extra : moz-landing-system : lando
2020-04-14 17:07:34 +00:00
Agi Sferro 05aa0f0db0 Bug 1628117 - Remove BrowserApp.tabs. r=lina,snorp
Differential Revision: https://phabricator.services.mozilla.com/D70454

--HG--
extra : moz-landing-system : lando
2020-04-14 17:07:38 +00:00
Agi Sferro 9d049412c2 Bug 1628117 - Add window.tab. r=snorp
This will replace all current uses of `BrowserApp.`.

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

--HG--
extra : moz-landing-system : lando
2020-04-14 17:07:41 +00:00
Agi Sferro b27532dee4 Bug 1628117 - Reduce use of BrowserTab in mobile code. r=mixedpuppy,snorp
Differential Revision: https://phabricator.services.mozilla.com/D70120

--HG--
extra : moz-landing-system : lando
2020-04-14 17:07:43 +00:00
Mihai Alexandru Michis 81ac402a67 Backed out 6 changesets (bug 1628117) for causing Marionette failures.
CLOSED TREE

Backed out changeset 6319076b66d6 (bug 1628117)
Backed out changeset d867e385620f (bug 1628117)
Backed out changeset 12827a9f8ed2 (bug 1628117)
Backed out changeset a0508a8f0733 (bug 1628117)
Backed out changeset 30116ea848c7 (bug 1628117)
Backed out changeset 63b977732075 (bug 1628117)
2020-04-14 20:03:30 +03:00
Agi Sferro 0e6551a85d Bug 1628117 - Remove BrowserApp. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D70456

--HG--
extra : moz-landing-system : lando
2020-04-14 15:25:22 +00:00
Agi Sferro aff542f7f1 Bug 1628117 - Remove BrowserApp.tabs. r=lina,snorp
Differential Revision: https://phabricator.services.mozilla.com/D70454

--HG--
extra : moz-landing-system : lando
2020-04-14 15:25:48 +00:00
Agi Sferro 78887d92ec Bug 1628117 - Add window.tab. r=snorp
This will replace all current uses of `BrowserApp.`.

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

--HG--
extra : moz-landing-system : lando
2020-04-14 15:25:55 +00:00
Agi Sferro c63aa45847 Bug 1628117 - Reduce use of BrowserTab in mobile code. r=mixedpuppy,snorp
Differential Revision: https://phabricator.services.mozilla.com/D70120

--HG--
extra : moz-landing-system : lando
2020-04-14 15:26:03 +00:00
Agi Sferro 7bcf9efc52 Bug 1622917 - Use schema to determine whether to prompt about a permission r=mixedpuppy,snorp
This allows other front-ends to know which permissions they should prompt for,
like GeckoView.

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

--HG--
extra : moz-landing-system : lando
2020-04-13 22:28:30 +00:00
Nika Layzell 0799ca4e5c Bug 1616353 - Part 7.5: Pass nsOpenWindowInfo through Geckoview, r=geckoview-reviewers,esawin,agi
The interface changes which GeckoViewNavigation.jsm is being updated for are
performed in earlier parts. This patch just covers the required changes to
frontend code to propagate this information down to the nsFrameLoader when it is
created.

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

--HG--
extra : moz-landing-system : lando
2020-04-07 21:39:39 +00:00
Nika Layzell dd1ef62596 Bug 1616353 - Part 3: Use an attribute to set geckoViewUserContextId on a browser, r=geckoview-reviewers,esawin
This is necessary to avoid the use of setOriginAttributesBeforeLoading, which is
being removed in this patch set.

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

--HG--
extra : moz-landing-system : lando
2020-04-07 21:39:04 +00:00
Cosmin Sabou aefb5f9c88 Backed out 24 changesets (bug 1616353) for fission assertion failures nsGlobalWindowOuter.cpp.
Backed out changeset 3a43210e4900 (bug 1616353)
Backed out changeset cb77e9149cf8 (bug 1616353)
Backed out changeset 3aacc7cfe33f (bug 1616353)
Backed out changeset c026b06063a5 (bug 1616353)
Backed out changeset 580e790c5d17 (bug 1616353)
Backed out changeset 6f09bc1c476d (bug 1616353)
Backed out changeset 6955906262c0 (bug 1616353)
Backed out changeset a7700472807a (bug 1616353)
Backed out changeset a4735096e01b (bug 1616353)
Backed out changeset bd1706c57d91 (bug 1616353)
Backed out changeset 363c13296fda (bug 1616353)
Backed out changeset e414df387524 (bug 1616353)
Backed out changeset 765d3364cca0 (bug 1616353)
Backed out changeset 8a13355b4ac4 (bug 1616353)
Backed out changeset ada17fb8fca7 (bug 1616353)
Backed out changeset 6b6b99af186d (bug 1616353)
Backed out changeset ea966e78b296 (bug 1616353)
Backed out changeset cb88e0bbb3b9 (bug 1616353)
Backed out changeset f89a89015114 (bug 1616353)
Backed out changeset ae6058552969 (bug 1616353)
Backed out changeset f42bb5b48c1b (bug 1616353)
Backed out changeset 1ab9d22c73bb (bug 1616353)
Backed out changeset 2692c2c1396b (bug 1616353)
Backed out changeset 11a279c8da08 (bug 1616353)
2020-04-06 20:03:02 +03:00
Nika Layzell 3fed0a8e02 Bug 1616353 - Part 7.5: Pass nsOpenWindowInfo through Geckoview, r=geckoview-reviewers,esawin,agi
The interface changes which GeckoViewNavigation.jsm is being updated for are
performed in earlier parts. This patch just covers the required changes to
frontend code to propagate this information down to the nsFrameLoader when it is
created.

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

--HG--
extra : moz-landing-system : lando
2020-04-06 14:30:09 +00:00
Nika Layzell e1bf02fc4f Bug 1616353 - Part 3: Use an attribute to set geckoViewUserContextId on a browser, r=geckoview-reviewers,esawin
This is necessary to avoid the use of setOriginAttributesBeforeLoading, which is
being removed in this patch set.

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

--HG--
extra : moz-landing-system : lando
2020-04-06 14:29:35 +00:00
Henri Sivonen 71bdd2ccaf Bug 1625465 - Hack GeckoViewUtils not to read activeWindow. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D68565

--HG--
extra : moz-landing-system : lando
2020-03-30 16:10:41 +00:00
Agi Sferro 773f537bd6 Bug 1623712 - Actually pass flags when calling reload. r=rbarker
We also don't pass `BYPASS_LOAD_URI_DELEGATE` since it's ignored anyway for
reloads.

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

--HG--
extra : moz-landing-system : lando
2020-03-20 16:56:20 +00:00
Sylvestre Ledru be18fd4dba Bug 1622328 - add license info to all eslintrc files r=Standard8,webcompat-reviewers,miketaylr
Differential Revision: https://phabricator.services.mozilla.com/D67319

--HG--
extra : moz-landing-system : lando
2020-03-19 13:47:51 +00:00
Emilio Cobos Álvarez 7d6d772dee Bug 1622894 - Don't force-focus the input when we're force-showing the virtual keyboard. r=m_kato
When you type in a textarea, and zoom to position the caret, then click, we'll
scroll all the way to the top of the textarea, via:

  IMEStateManager::OnClickInEditor -> SetIMEState -> SetInputContext -> mEditable->NotifyIME(EditableListener::NOTIFY_IME_OPEN_VKB);

Even if the keyboard was already displayed. In this case, we're not moving
focus, and panning to the start causes more issues than it fixes. Prevent
zooming to the start of the input in this case, but still do it if we get the
resize event (and thus toggle the keyboard).

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

--HG--
extra : moz-landing-system : lando
2020-03-19 09:18:37 +00:00
Marco Bonardo 2dc20c6432 Bug 1621328 - Move CreateExposableURI into nsIOService. r=Gijs,mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D66269

--HG--
extra : moz-landing-system : lando
2020-03-13 12:44:36 +00:00
Thomas Wisniewski 7c32d9c818 Bug 1622076 - fix a race with WebExtensionControll.install.cancel; r=agi
Differential Revision: https://phabricator.services.mozilla.com/D66824

--HG--
extra : moz-landing-system : lando
2020-03-13 21:32:42 +00:00
Agi Sferro e4e57c8343 Bug 1619796 - Don't fire onLoadRequest for embedder-initiated loads. r=smaug,droeh
Differential Revision: https://phabricator.services.mozilla.com/D66695

--HG--
extra : moz-landing-system : lando
2020-03-13 18:22:16 +00:00
Agi Sferro 4047079124 Bug 1621385 - Track the top non-private browsing tab in mobileWindowTracker. r=mixedpuppy,snorp
Differential Revision: https://phabricator.services.mozilla.com/D66311

--HG--
rename : mobile/android/geckoview/src/androidTest/assets/web_extensions/tabs-activate-remove/manifest.json => mobile/android/geckoview/src/androidTest/assets/web_extensions/tabs-activate-remove-2/manifest.json
extra : moz-landing-system : lando
2020-03-13 18:11:58 +00:00
Thomas Wisniewski c5824ee72d Bug 1612097 - Add ability to cancel the GeckoResult returned by WebExtensionControll.install(BuiltIn); r=snorp,agi
Make the GeckoResult<WebExtension> returned by WebExtensionControll.install(BuiltIn) cancellable

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

--HG--
extra : moz-landing-system : lando
2020-03-12 19:03:46 +00:00
Agi Sferro fe6beee13d Bug 1614760 - Add telemetryInfo to Addon Install object. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D66093

--HG--
extra : moz-landing-system : lando
2020-03-10 15:24:50 +00:00
Mark Banner 2c4e35b0a6 Bug 1620218 - Automatic code fixes for Prettier 1.18.2 upgrade. r=mossop,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D65509

--HG--
extra : moz-landing-system : lando
2020-03-08 21:45:16 +00:00
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
Agi Sferro 97c5dd8d40 Bug 1599139 - Add API to control whether extensions can run in private browsing. r=snorp,esawin
Differential Revision: https://phabricator.services.mozilla.com/D65551

--HG--
extra : moz-landing-system : lando
2020-03-07 00:59:46 +00:00
Agi Sferro f6f2f88fa3 Bug 1560048 - Expose WebExtension baseURL to embedders. r=snorp,esawin
Differential Revision: https://phabricator.services.mozilla.com/D65399

--HG--
extra : moz-landing-system : lando
2020-03-07 00:59:46 +00:00
Brendan Dahl d63da75d6c Bug 1619710 - Handle postponed web extension updates in GeckoView. r=geckoview-reviewers,agi
An extension with an onUpdateAvailable listener should delay automatic
updating of the extension until the app is restarted. Add support for this
state and reject the update result with a new install error code.

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

--HG--
extra : moz-landing-system : lando
2020-03-04 21:23:52 +00:00
Agi Sferro f72cba85fa Bug 1616625 - Implement active parameter for tabs.create and update. r=mixedpuppy,snorp,esawin
Differential Revision: https://phabricator.services.mozilla.com/D64800

--HG--
extra : moz-landing-system : lando
2020-03-04 02:13:23 +00:00
Agi Sferro ae0d2a326d Bug 1616625 - Move TabDelegate to be per-WebExtension and per-GeckoSession. r=mixedpuppy,snorp,esawin
Before this patch, the TabDelegate was "special" as in it had just one global
delegate that receives events for all extensions and sessions. This was done to
allow mochitests to call tabs.create and tabs.remove.

This hack is no longer needed as now we can notify the embedding layer that a
new extension has been installed and we have a way to list currently installed
extensions.

This patch makes TabDelegate behave the same as the other delegates
(ActionDelegate and MessageDelegate) and will allow further simplications of
the WebExtension Delegate code.

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

--HG--
extra : moz-landing-system : lando
2020-03-04 02:13:36 +00:00
shindli e06f2a369b Backed out 3 changesets (bug 1616625) for causing xpcshell failures in xpcshell.ini:toolkit/components/extensions/test/xpcshell/test_csp_custom_policies.js CLOSED TREE
Backed out changeset b43ca6507c9a (bug 1616625)
Backed out changeset c0e05f4f2db2 (bug 1616625)
Backed out changeset a1eb1e65a239 (bug 1616625)
2020-03-04 02:26:51 +02:00
Agi Sferro 45283ccbf3 Bug 1616625 - Implement active parameter for tabs.create and update. r=mixedpuppy,snorp,esawin
Differential Revision: https://phabricator.services.mozilla.com/D64800

--HG--
extra : moz-landing-system : lando
2020-03-03 23:19:03 +00:00
Agi Sferro d0840b96b4 Bug 1616625 - Move TabDelegate to be per-WebExtension and per-GeckoSession. r=mixedpuppy,snorp,esawin
Before this patch, the TabDelegate was "special" as in it had just one global
delegate that receives events for all extensions and sessions. This was done to
allow mochitests to call tabs.create and tabs.remove.

This hack is no longer needed as now we can notify the embedding layer that a
new extension has been installed and we have a way to list currently installed
extensions.

This patch makes TabDelegate behave the same as the other delegates
(ActionDelegate and MessageDelegate) and will allow further simplications of
the WebExtension Delegate code.

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

--HG--
extra : moz-landing-system : lando
2020-03-03 23:19:03 +00:00
Randall E. Barker 6746c46e53 Bug 1618958 - Add GeckoSession.reload(int flags) r=geckoview-reviewers,agi,esawin
Add a version of GeckoSession.reload that takes LOAD_FLAGS_* so
that it is possible to bypass caches and proxies on reload.

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

--HG--
extra : moz-landing-system : lando
2020-03-03 21:47:30 +00:00
James Willcox 24ee45a807 Bug 1479728 - Fix loading with `GeckoSession.LOAD_FLAGS_EXTERNAL` r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D64472

--HG--
extra : moz-landing-system : lando
2020-02-27 00:28:28 +00:00
Agi Sferro d2778c62c6 Bug 1617675 - Don't use Fennec BrowserApp in dbg-browser-actors. r=ochameau,snorp
In GeckoView every window has always exactly only one browser. Also selectedTab
is not defined.

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

--HG--
extra : moz-landing-system : lando
2020-02-27 15:20:48 +00:00
Agi Sferro 64dab61eb5 Bug 1554302 - Restore history when switching process during navigation. r=snorp
History is kept locally on the content process (or main process for main
process pages), so when going from one process to the other we need to restore
history. This will eventually be superseded by moving all history to the main
process, but we don't know when that's going to happen so we need to add this
workaround here. Desktop has the same workaround in place and this patch is
based on that code.

There are two places where we need to restore history:

- App navigates to page directly using `loadURI` or similar: in this case we
  need to pass down the load details to the content process alongside the
  history information so that we can restore and immediatelly navigate to the
  new page. This also avoids an extra history reloading that ordinarely happens
  when restoring history.

- App calls `goBack`, `goForward`, etc: in this case we don't need to reload a
  page but just restore the history and adjust the `historyIndex`. I'm not
  entirely sure why we need to add `1` to the `historyIndex` but that's what
  Desktop does and it seems to work correctly so I just did it.

This patch changes `updateRemoteTypeForURI` to `updateRemoteAndNavigate` which
more closely matches what that method is doing now, this is similar to what
happens on desktop.

This patch also adds a `window.moduleManager` that can be used in Actors to
access the current `moduleManager`. I expect this to go away when we fully
migrate all modules to actors.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 19:07:46 +00:00
Agi Sferro 519b20f8e1 Bug 1613237 - Open window in main process when opener is present. r=droeh
Differential Revision: https://phabricator.services.mozilla.com/D62818

--HG--
extra : moz-landing-system : lando
2020-02-20 19:07:39 +00:00
Agi Sferro b1c5704faa Bug 1614295 - Provide a way for apps to know when an extension is installed. r=snorp,ochameau,esawin
This patch adds a `onExtensionListUpdated` method to `DebuggerDelegate` which
is called whenever devtools install a new extension.

This method provides an opportunity for apps to refresh the list of installed
extensions and sets appropriate delegates so that the new extension is
correctly recognized.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 19:25:31 +00:00
Alexandre Poirot 9073e966ec Bug 1614791 - Rename DebuggerServer to DevToolsServer. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D61363

--HG--
rename : devtools/server/debugger-server.js => devtools/server/devtools-server.js
extra : moz-landing-system : lando
2020-02-17 10:28:24 +00:00
Jonathan Almeida [:jonalmeida] 9942b0ab5a Bug 1614990 - Update WebPushController.onSubscriptionChanged to take only the scope. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D62607

--HG--
extra : moz-landing-system : lando
2020-02-12 17:15:37 +00:00