Commit Graph

612 Commits

Author SHA1 Message Date
Cosmin Sabou
934be35969 Backed out 2 changesets (bug 1558923) for build bustages on dom/URL.h. CLOSED TREE
Backed out changeset 0bb5857422f2 (bug 1558923)
Backed out changeset d0411a373ace (bug 1558923)
2019-06-13 13:35:54 +03:00
Andrea Marchesini
7f7c7c2ee3 Bug 1558923 - Remove nsContentUtils::GetThreadSafe{ASCII,UTF8}Origin, r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D34767

--HG--
extra : moz-landing-system : lando
2019-06-13 10:19:03 +00:00
Boris Zbarsky
d5a8a4a595 Bug 1557793 part 3. Change the signatures of various nsContentUtils localization methods to play nicer with the new stringbundle API. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D34201

--HG--
extra : moz-landing-system : lando
2019-06-08 21:26:12 +00:00
Ehsan Akhgari
4598c92440 Bug 1557409 - Part 2: Use WorkerPrivate objects to determine whether we should use fingerprinting resistance on worker threads; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D34208

--HG--
extra : moz-landing-system : lando
2019-06-10 19:32:05 +00:00
Masayuki Nakano
e8f3e9e9e0 Bug 1529884 - part 5: Make Document::ExecCommand() use EditorCommand directly as far as possible r=smaug
Most commands are dispatched only when the `document` has `contenteditable` or
in `designMode`.  In such case, command context is considered with the following
order:
1. `HTMLEditor` for the document.
2. `TextEditor` if the document has focus and it has `TextEditor`.
3. Other command controller table associated with window or DocShell.

In the case of #1 and #2, `ExecCommand()` can use `EditorCommand` directly
and we only need to send subject principal to the editor only in these cases.

In the case of #3, we need to fall back to traditional path.  There are 2 paths:
1. If it's "paste" command, handle it with `nsCommandManager` to dispatch
   "paste" event.
2. If it's "cur" or "copy", handle it with `DocShell` to dispatch "cut" or "copy"
   event in the window or focused sub-document.

Note that clipboard "cut" and "copy" commands are special cases.  Only them
were handled by `DocShell` instead of `nsCommandManager`  This difference
caused making active element's `TextEditor` is preferred rather than
`HTMLEditor`.  Although this behavior is better than our traditional behavior
because Chromium works as so.  But for now, we should keep our behavior.

Finally, this patch makes `ExecCommand()` creates `nsCommandParams` instance
since now, `EditorCommand` class can take only necessary parameter without it.

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

--HG--
extra : moz-landing-system : lando
2019-06-10 10:26:04 +00:00
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