Commit Graph

607 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
b6728cedb7 Bug 1553769 - Have a single way of requesting window focus and switching to a tab. r=NeilDeakin,snorp
Right now there's some duplicated code with the focus manager and the
DOMWindowFocus event.

Android didn't handle the new framefocusrequested event, so the test-cases in
bug 416771 still didn't work there.

I think using the focus manager codepath everywhere is preferable. I confirmed
manually that the stuff that sent DOMWindowFocus events still works as expected
with this patch (i.e., switching to the right tab when you click on a
notification, etc.).

This fixes it so that it works in Fennec, and it sends the focus events right in
GeckoView Example (i.e., we get here[1] properly).

The snippet that Snorp provided on IRC to implement the "bring activity to
front" stuff (`startActivity(getIntent())`) didn't actually work for me, but I
confirmed that the right message is sent when the focus is requested, and that
we get there.

[1]: https://searchfox.org/mozilla-central/rev/952521e6164ddffa3f34bc8cfa5a81afc5b859c4/mobile/android/geckoview_example/src/main/java/org/mozilla/geckoview_example/GeckoViewActivity.java#503

Depends on D32353

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

--HG--
extra : moz-landing-system : lando
2019-06-03 19:42:28 +00:00
Emilio Cobos Álvarez
d143aaa5f3 Bug 1545499 - Remove dead code for threading accelerator state. r=NeilDeakin
It's only moved around, but not actually used anywhere.

I have no idea what this was supposed to control in the past but it doesn't seem
useful to keep it around.

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

--HG--
extra : moz-landing-system : lando
2019-06-03 15:29:06 +00:00
Ehsan Akhgari
98960a9c41 Bug 1554361 - Move the high-level storage access check APIs to mozilla/StorageAccess.h; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D32556

--HG--
extra : moz-landing-system : lando
2019-05-27 14:06:49 +00:00
Ehsan Akhgari
c3f03e82ee Bug 1547813 - Part 5: Introduce StorageAccess::ePartitionForeignOrDeny; r=baku
This StorageAccess code tells callers that they must partition third-party
storage, or deny storage access if that is not possible.

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

--HG--
extra : moz-landing-system : lando
2019-05-25 01:25:37 +00:00
Ehsan Akhgari
e4067ede93 Bug 1547813 - Part 4: Rename StorageAccess::ePartitionedOrDeny to ePartitionTrackersOrDeny; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D29739

--HG--
extra : moz-landing-system : lando
2019-05-25 01:25:35 +00:00
Paul Zuehlcke
4bccc4cede Bug 1428913 - Deny full-screen on right or middle mouse button. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D31481

--HG--
extra : moz-landing-system : lando
2019-05-22 19:16:31 +00:00
Emilio Cobos Álvarez
300ed443b9 Bug 416771 - Allow window.focus() to switch tabs. r=NeilDeakin,dao CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D31643

--HG--
extra : source : 5acccb49a66840b5c2266edfb7a8953878a2a040
extra : histedit_source : 33a19d54114ef5eda00aefb1c997d6dbcfb40501
2019-05-22 17:21:29 +00:00
Bogdan Tara
e34a09a25c Backed out changeset 5acccb49a668 (bug 416771) for gecko decision bustage CLOSED TREE 2019-05-22 20:38:33 +03:00
Emilio Cobos Álvarez
f11ec3db68 Bug 416771 - Allow window.focus() to switch tabs. r=NeilDeakin,dao
Differential Revision: https://phabricator.services.mozilla.com/D31643

--HG--
extra : moz-landing-system : lando
2019-05-22 17:21:29 +00:00
Noemi Erli
6430d23336 Backed out 12 changesets (bug 1547813) for failures in browser_partitionedIndexedDB.js CLOSED TREE
Backed out changeset 98989127264b (bug 1547813)
Backed out changeset f9d790139a26 (bug 1547813)
Backed out changeset a29f58cef022 (bug 1547813)
Backed out changeset c1288949de1c (bug 1547813)
Backed out changeset 8cad4fd197b1 (bug 1547813)
Backed out changeset 807ce59e7e6e (bug 1547813)
Backed out changeset 06943593738c (bug 1547813)
Backed out changeset 4ced8d49ddc3 (bug 1547813)
Backed out changeset 77a040f527e9 (bug 1547813)
Backed out changeset b4651cfaff30 (bug 1547813)
Backed out changeset 279c140a4d71 (bug 1547813)
Backed out changeset 0e0241f3d366 (bug 1547813)
2019-05-09 20:04:16 +03:00
Ehsan Akhgari
2560dad048 Bug 1547813 - Part 5: Introduce StorageAccess::ePartitionForeignOrDeny; r=baku
This StorageAccess code tells callers that they must partition third-party
storage, or deny storage access if that is not possible.

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

--HG--
extra : moz-landing-system : lando
2019-05-09 07:14:34 +00:00
Ehsan Akhgari
1b4236b4ee Bug 1547813 - Part 4: Rename StorageAccess::ePartitionedOrDeny to ePartitionTrackersOrDeny; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D29739

--HG--
extra : moz-landing-system : lando
2019-05-08 19:37:52 +00:00
Boris Chiou
6521583602 Bug 1545239 - Move GetNodeDepth into ResizeObserver.cpp r=dholbert
GetNodeDepth() is a special version for ResizeObserver to get the depth
of node (across Shadow DOM). Based on the comment in D27615, it's better
to move it into ResizeObserver.cpp.

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

--HG--
extra : moz-landing-system : lando
2019-05-08 20:52:51 +00:00
Andrea Marchesini
f50233ec54 Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - dom.script_loader.bytecode_cache.strategy, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D29525

--HG--
extra : moz-landing-system : lando
2019-05-01 21:11:48 +00:00
Andrea Marchesini
ff333370f8 Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - browser.contentblocking.rejecttrackers.control-center.ui.enabled, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D29524

--HG--
extra : moz-landing-system : lando
2019-05-01 21:11:31 +00:00
Andrea Marchesini
da4c1080ef Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - dom.script_loader.bytecode_cache.enabled, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D29523

--HG--
extra : moz-landing-system : lando
2019-05-01 21:11:17 +00:00
Andrea Marchesini
81a8b494c1 Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - browser.autofocus, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D29522

--HG--
extra : moz-landing-system : lando
2019-05-01 21:10:56 +00:00
Andrea Marchesini
19f484d03e Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - dom.placeholder.show_on_focus, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D29521

--HG--
extra : moz-landing-system : lando
2019-05-01 21:10:41 +00:00
Andrea Marchesini
4426f8f63b Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - network.http.tailing.enabled, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D29520

--HG--
extra : moz-landing-system : lando
2019-05-01 21:10:31 +00:00
Andrea Marchesini
bd4c6a48e5 Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - dom.requestIdleCallback.enabled, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D29519

--HG--
extra : moz-landing-system : lando
2019-05-01 21:10:13 +00:00
Andrea Marchesini
dafbe56cc8 Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - dom.input.skip_cursor_move_for_same_value_set, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D29518

--HG--
extra : moz-landing-system : lando
2019-05-01 21:10:08 +00:00
Andrea Marchesini
2af86f5ef5 Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - layout.css.getBoxQuads.enabled, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D29517

--HG--
extra : moz-landing-system : lando
2019-05-01 21:09:58 +00:00
Andrea Marchesini
033f3e0374 Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - dom.animations-api.core.enabled, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D29516

--HG--
extra : moz-landing-system : lando
2019-05-01 21:09:53 +00:00
Andrea Marchesini
02a6bdd26c Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - ui.use_activity_cursor, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D29515

--HG--
extra : moz-landing-system : lando
2019-05-01 21:09:49 +00:00
Andrea Marchesini
79d0eaf58e Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - privacy.donottrackheader.enabled, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D29514

--HG--
extra : moz-landing-system : lando
2019-05-01 21:09:44 +00:00
Andrea Marchesini
12bfdbfca0 Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - dom.performance.enable_notify_performance_timing, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D29513

--HG--
extra : moz-landing-system : lando
2019-05-01 21:09:31 +00:00
Andrea Marchesini
24453a25e0 Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - dom.event.handling-user-input-time-limit, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D29512

--HG--
extra : moz-landing-system : lando
2019-05-01 21:09:14 +00:00
Andrea Marchesini
d0958f284f Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - privacy.window.maxInnerWidth/Height, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D29511

--HG--
extra : moz-landing-system : lando
2019-05-01 21:09:09 +00:00
Andrea Marchesini
aeb75d8ede Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - dom.forms.autocomplete.formautofill, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D29510

--HG--
extra : moz-landing-system : lando
2019-05-01 21:09:05 +00:00
Andrea Marchesini
dc41e899af Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - dom.enable_frame_timing, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D29509

--HG--
extra : moz-landing-system : lando
2019-05-01 21:08:54 +00:00
Andrea Marchesini
08f2cb38b0 Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - security.mixed_content.upgrade_display_content, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D29508

--HG--
extra : moz-landing-system : lando
2019-05-01 21:08:45 +00:00
Andrea Marchesini
3ffd8f658f Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - dom.enable_performance_navigation_timing, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D29507

--HG--
extra : moz-landing-system : lando
2019-05-01 21:08:40 +00:00
Andrea Marchesini
cdc5dc80cf Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - dom.enable_resource_timing, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D29506

--HG--
extra : moz-landing-system : lando
2019-05-01 21:08:36 +00:00
Andrea Marchesini
54d87e9690 Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - dom.enable_performance, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D29505

--HG--
extra : moz-landing-system : lando
2019-05-01 21:06:59 +00:00
Andrea Marchesini
a97f12548d Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - dom.allow_cut_copy, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D29504

--HG--
extra : moz-landing-system : lando
2019-05-01 21:06:58 +00:00
Andrea Marchesini
86ad9a53ed Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - full-screen-api.allow-trusted-requests-only, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D29502

--HG--
extra : moz-landing-system : lando
2019-05-01 21:06:10 +00:00
Andrea Marchesini
d7929086f3 Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - full-screen-api.unprefix.enabled, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D29501

--HG--
extra : moz-landing-system : lando
2019-05-01 21:06:01 +00:00
Andrea Marchesini
54e6e5339e Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - full-screen-api.enabled, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D29500

--HG--
extra : moz-landing-system : lando
2019-05-01 21:39:01 +00:00
Ehsan Akhgari
408ff64e4d Bug 1547889 - Part 3: Require the caller of the AntiTrackingCommon::IsFirstPartyStorageAccessGrantedFor(nsIPrincipal*) API pass in a cookie setting object; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D29321

--HG--
extra : moz-landing-system : lando
2019-04-30 14:27:43 +00:00
Masayuki Nakano
663f37d827 Bug 1547618 - Make dom use mozilla::PresShell rather than via nsIPresShell r=smaug
Additionally, this patch makes `nsContentUtils::DispatchXULCommand()` because
it guarantees the lifetime of **only** `PresShell` in it.  So, we need to check
the lifetime of each argument at each caller here.

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

--HG--
extra : moz-landing-system : lando
2019-04-30 01:35:30 +00:00
Fariskhi Vidyan
595e58baba Bug 1272409 - Part 1: Add GetNodeDepth() to nsContentUtils. r=smaug
`GetNodeDepth()` will be used in the next patch.

Depends on D27614

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

--HG--
extra : moz-landing-system : lando
2019-04-26 20:29:11 +00:00
Ehsan Akhgari
31a8a7053e Bug 1547114 - Part 6: Convert network.cookie.lifetimePolicy into a static pref; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D28997

--HG--
extra : moz-landing-system : lando
2019-04-26 15:42:01 +00:00
Ehsan Akhgari
ee308fca8a Bug 1547114 - Part 2: Read the cookie lifetime policy from nsContentUtils; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D28915

--HG--
extra : moz-landing-system : lando
2019-04-26 15:49:19 +00:00
Andreea Pavel
81b8902215 Backed out 4 changesets (bug 1547114) for multiple failures e.g. xpcshell at test_SitePermissions.js on a CLOSED TREE
Backed out changeset 4167117f548f (bug 1547114)
Backed out changeset 0a4180b074ea (bug 1547114)
Backed out changeset c92df939a4d6 (bug 1547114)
Backed out changeset fc4e5936eeae (bug 1547114)
2019-04-26 18:35:28 +03:00
Ehsan Akhgari
29825d4324 Bug 1547114 - Part 2: Read the cookie lifetime policy from nsContentUtils; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D28915

--HG--
extra : moz-landing-system : lando
2019-04-26 14:30:27 +00:00
Daniel Varga
46db25d004 Backed out 5 changesets (bug 1272409) for build bustage at /builds/worker/workspace/build/src/dom/base/nsGlobalWindowCommands. On a CLOSED TREE
Backed out changeset 2ad8260489d6 (bug 1272409)
Backed out changeset 224dad4cbdc3 (bug 1272409)
Backed out changeset 72775dbf35c8 (bug 1272409)
Backed out changeset c331a4a8b343 (bug 1272409)
Backed out changeset d817fbfc52b6 (bug 1272409)
2019-04-26 02:41:43 +03:00
Fariskhi Vidyan
ee632b46da Bug 1272409 - Part 1: Add GetNodeDepth() to nsContentUtils. r=smaug
`GetNodeDepth()` will be used in the next patch.

Depends on D27614

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

--HG--
extra : moz-landing-system : lando
2019-04-25 18:30:04 +00:00
Ryan Hunt
d6509bb237 Bug 1534395 - Rename TabChild to BrowserChild. r=nika
This commit renames TabChild to BrowserChild.

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

--HG--
rename : dom/base/InProcessTabChildMessageManager.cpp => dom/base/InProcessBrowserChildMessageManager.cpp
rename : dom/base/InProcessTabChildMessageManager.h => dom/base/InProcessBrowserChildMessageManager.h
rename : dom/ipc/TabChild.cpp => dom/ipc/BrowserChild.cpp
rename : dom/ipc/TabChild.h => dom/ipc/BrowserChild.h
extra : rebase_source : e7fcfb845a971a2760e73d517e24da18ce2551b5
extra : histedit_source : d1991334ccb107fe56e478865f22fd97b041a317
2019-04-09 17:39:01 -05:00
Ryan Hunt
0eeced87be Bug 1534395 - Rename TabParent to BrowserParent. r=nika
This commit renames TabParent to BrowserParent.

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

--HG--
rename : dom/ipc/TabParent.cpp => dom/ipc/BrowserParent.cpp
rename : dom/ipc/TabParent.h => dom/ipc/BrowserParent.h
extra : rebase_source : d2706b9f42177d8de16068b7b1d088a44b8720a4
extra : histedit_source : a617ddac45c58050ef799116a67d2d983f2a8f6d%2C1d1dabd8761a32d548a6fbf1027be960698f6a5e
2019-04-09 16:38:15 -05:00
Masayuki Nakano
e2a9511e93 Bug 1542665 - Stop using const nsCOMPtr<nsIPresShell>& arguments r=bzbarsky
Some methods take `const nsCOMPtr<nsIPresShell>&` as their argument to make
their callers guarantee the lifetime.  However, currently all of them are
marked as `MOZ_CAN_RUN_SCRIPT`.  So, it's safe to change them to raw pointer.

Additionally, this patch makes them take `mozilla::PresShell*` directly
rather than via `nsIPresShell*`.

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

--HG--
extra : moz-landing-system : lando
2019-04-13 02:23:07 +00:00