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

100284 Коммитов

Автор SHA1 Сообщение Дата
Olli Pettay 20de573529 Bug 1704660, add a null check for a CreateStringBlob caller, r=edgar
The form isn't submitted to the server because
https://searchfox.org/mozilla-central/rev/3de2db87f3c9001ae478318d47a2ca3427574382/docshell/base/nsDocShell.cpp#12834
returns early.

Differential Revision: https://phabricator.services.mozilla.com/D111852
2021-04-13 19:41:51 +00:00
Alexandru Michis 9b58a1c6f5 Backed out changeset 8a21200047bb (bug 1651012) for causing bc failures in browser_parsable_script.js
CLOSED TREE
2021-04-14 01:52:26 +03:00
Claudia d6b7c6e76b Bug 1651012 - Organize certerror code into its own directory in browser/base/content/ r=prathiksha,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D110951
2021-04-13 18:54:28 +00:00
Christoph Kerschbaumer e1c35fda94 Bug 1658924: Implement HTTPS-First and automatically fall back to http if secure top-level connection is not available r=necko-reviewers,JulianWels,mattwoodrow,dragana
Differential Revision: https://phabricator.services.mozilla.com/D111686
2021-04-13 17:43:12 +00:00
Markus Stange 2781564e2a Bug 1704569 - Don't synthesize events on menus in dom/html/test/browser_content_contextmenu_userinput.js. r=saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D111774
2021-04-13 16:22:19 +00:00
Mike Conley b29a236f04 Bug 1686315 - Fix up more tests to pass with content prompt subdialogs enabled or disabled. r=Gijs
Batch 2 of 2.

Differential Revision: https://phabricator.services.mozilla.com/D110483
2021-04-13 15:51:48 +00:00
Eden Chuang 2afeed0d0c Bug 1686154 - Fix the race condition on WorkerFetchResolver::mFetchObserver. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D111525
2021-04-13 13:23:57 +00:00
Edgar Chen 6b87b447c5 Bug 1697769 - Apply implicit pointer capture only for pointer events that are generated from the touch events; r=smaug
Pointer capture would override the capturing content set in PresShell for mouse
event, it isn't affect touch event because dispatching touch event would take
the capturing content in PresShell into account, i.e.
https://searchfox.org/mozilla-central/rev/fa48ebee58d59fa846919c3e2c3122b08db57c9c/layout/base/PresShell.cpp#8712-8719

Touch input isn't always generating a touch event, but a compabitility mouse
event with the touch as inputsource, e.g. chrome popup window on Windows platform,
see https://searchfox.org/mozilla-central/rev/3de2db87f3c9001ae478318d47a2ca3427574382/widget/windows/nsWindow.cpp#8130-8134
In such case, we don't apply implicit pointer capture to prevent the capturing
content set in PresShell being overried which could cause the drag to scroll
doesn't work.

Differential Revision: https://phabricator.services.mozilla.com/D111085
2021-04-13 13:14:12 +00:00
Noemi Erli 7013a13cd3 Backed out changeset 6483ed81fc50 (bug 1686154) for causing build bustages in Fetch.cpp CLOSED TREE 2021-04-13 15:18:46 +03:00
Eden Chuang 359fb902da Bug 1686154 - Fix the race condition on WorkerFetchResolver::mFetchObserver. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D111525
2021-04-13 12:06:27 +00:00
Kershaw Chang d475062c84 Bug 1660307 - Get rid off nsSupportsWeakReference for WebSocketImpl, r=baku
Differential Revision: https://phabricator.services.mozilla.com/D111059
2021-04-13 12:00:26 +00:00
Martin Giger e3fa1bc6ee Bug 1704482 - Fix incorrect IOUtils tmpPath documentation. r=barret
Differential Revision: https://phabricator.services.mozilla.com/D111608
2021-04-13 11:38:34 +00:00
Niklas Goegge 35b1cdb734 Bug 1703466 - Set sec-fetch-site to 'none' for browser issued requests. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D111792
2021-04-13 11:18:25 +00:00
Emilio Cobos Álvarez 2d921c7e9c Bug 1704551 - Make nsMappedAttributes more similar to AttrArray. r=smaug
I need to use these from Rust to insert mapped attribute names in the
bloom filter, and this would save me handrolling even more bindings :)

Differential Revision: https://phabricator.services.mozilla.com/D111731
2021-04-13 10:53:40 +00:00
Timothy Nikkel 56bb178351 Bug 1702467. Double tap zoom can make us zoom to a part of an element when we could fit the entire element at the same zoom. r=botond
If we double tap on an element that is narrower than the viewport at maximum we can get into a situation where we zoom on part (say the bottom half) of that element but we could easily fit the entire element.

This happens because the code that calculate the rect to zoom to (CalculateRectToZoomTo) doesn't know about the maximum zoom. So it proceeds as though we will fit the width of the element. Under that assumption we will have to cut off part of the element vertically, so the code centers the rect on the users tap point.

This ends up cutting off part of the element vertically when it is clear that the whole element can fit on screen, which is a pretty ugly result.

This is not my favourite patch. This seemed to make the most sense. Another option I considered was passing the tap point through to AsyncPanZoomController::ZoomToRect but I think this approach came out better: the calculation all happens in one place at one time.

Differential Revision: https://phabricator.services.mozilla.com/D110538
2021-04-13 10:41:51 +00:00
Makoto Kato 4cfc9b4e00 Bug 1702399 - Run mochitests in dom/events on GeckoView. r=masayuki
Actually, we disable all mochitests in dom/events on GeckoView now.

We should run mochitests even if on GeckoView if it is passed.

Differential Revision: https://phabricator.services.mozilla.com/D111607
2021-04-13 07:33:46 +00:00
alwu e7caa49b23 Bug 1703444 - part2 : add more debug log. r=jbauman
Differential Revision: https://phabricator.services.mozilla.com/D111301
2021-04-13 04:41:31 +00:00
alwu c53d7b0160 Bug 1703444 - part1 : comment block should be preceded by a blank line. r=jbauman
Differential Revision: https://phabricator.services.mozilla.com/D111300
2021-04-13 04:41:30 +00:00
Markus Stange d60b8c5380 Bug 1704212 - Move part of nsXULElement::OpenMenu into a new method called nsXULPopupManager::HideMenu. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D111660
2021-04-13 02:52:41 +00:00
Markus Stange b4750b7fb3 Bug 1704209 - Make XULPopupElement.activateItem work for native menus. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D111521
2021-04-13 02:52:41 +00:00
Karl Tomlinson 088d1e6ddd Bug 1698238 rename DevicesPromise to DeviceSetPromise r=pehrsons
for better distinction from DevicePromise.

Differential Revision: https://phabricator.services.mozilla.com/D111567
2021-04-13 01:32:56 +00:00
Karl Tomlinson 0d2acea096 Bug 1698238 document some GetUserMediaTask member variables r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D111563
2021-04-13 01:32:55 +00:00
Karl Tomlinson 8c33e16a46 Bug 1698238 clarify GetUserMediaStreamTask::mManager doc r=pehrsons
See also https://bugzilla.mozilla.org/show_bug.cgi?id=820978#c6

Depends on D108382

Differential Revision: https://phabricator.services.mozilla.com/D111562
2021-04-13 01:32:54 +00:00
Karl Tomlinson 70ab80c671 Bug 1698238 Add SelectAudioOutputTask r=jib,pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D108382
2021-04-13 01:32:54 +00:00
Karl Tomlinson 28bad219b2 Bug 1698238 remove obsolete null device comment r=pehrsons
This was added in
https://hg.mozilla.org/mozilla-central/rev/b80e81edc9f15fe93c4bdd4f4d0e93103c51400a#l3.486
but became obsolete and superseded by another comment as of
https://hg.mozilla.org/mozilla-central/rev/faa37c5e350819707f92e2f1f7860305bb413458#l1.43

Depends on D108381

Differential Revision: https://phabricator.services.mozilla.com/D111561
2021-04-13 01:32:54 +00:00
Andrew McCreight 1f773eeaa5 Bug 1704545, part 3 - Tell the priority manager when a browser parent is deactivated. r=gsvelto,kmag
The priority manager tracks which browser parents are active in each process,
so it needs to be told when a browser parent is no longer active. This
is currently implemented by observing ipc:browser-destroyed, which happens
in BrowserHost::DestroyComplete().

However, with Fission, not all BrowserParents are held by BrowserHosts. I
don't think this is an issue right now, but if the priority manager is going
to properly prioritize processes due to the presence of active non-top-level
frames, then it needs to also deprioritize them when they go away.

This patch deals with this situation by directly telling the priority
manager that the browser parent is becoming inactive via the existing
ActivityChanged method, in the BrowserParent::Deactivated() method,
which is called when a browser parent is being destroyed or entering
the BF cache. I think it makes sense in both cases that we no longer
want to prioritize the process that the page is in.

This does mean that we are telling the priority manager about more
ContentParents which is potentially more expensive, but the old code
also ended up doing a hashtable remove in every single
ParticularProcessPriorityManager, whereas the new code only does it
for one, so hopefully it is a net win overall.

(The reason for this is that in ParticularProcessPriorityManager's
OnBrowserParentDestroyed() method the browserHost->GetContentParent()
check will always return null because the browser host nulls out
mRoot immediately before it does ipc:browser-destroyed, so the hash
table remove is never skipped.)

This patch also removes the last thing that ParticularProcessPriorityManager
was observing, so it no longer needs to be an nsIObserver.

Differential Revision: https://phabricator.services.mozilla.com/D111654
2021-04-12 23:42:53 +00:00
Andrew McCreight 13e85e827c Bug 1704545, part 2 - Rename TabActivityChanged to ActivityChanged. r=gsvelto
As of the next patch, it won't be used just for indicating the
activity of an entire tab, so let's rename it.

Also alphabetize the order of some forward declarations.

Differential Revision: https://phabricator.services.mozilla.com/D111701
2021-04-12 23:42:53 +00:00
Andrew McCreight dafba67ef6 Bug 1704545, part 1 - Make the priority manager's OnRemoteBrowserFrameShown into a direct call. r=gsvelto
ParticularProcessPriorityManager observes remote-browser-shown and recomputes
the priority for the given browser. This patch eliminates the observer call
and instead makes the frame loader do a direct call.

I think doing it this way is a little clearer, and also the next patch will
eliminate the other reason ParticularProcessPriorityManager is an observer,
which will let us not not register something as an observer for every content
process, which I think is also good.

There should be no change in behavior.

Differential Revision: https://phabricator.services.mozilla.com/D111653
2021-04-12 23:42:52 +00:00
Andrew McCreight aa6d815d34 Bug 1704650 - PrototypeDocumentContentSink::mContextSink should be cycle collected. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D111732
2021-04-12 23:07:29 +00:00
Butkovits Atila 8c73b1c603 Backed out changeset e3a7a6111dfe (bug 1660307) for a possible regression. CLOSED TREE 2021-04-13 01:29:29 +03:00
Christoph Kerschbaumer 5427febae7 Bug 1670244: Ensure we never load a document with a codebase principal in the wrong type of webIsolated process r=nika
Differential Revision: https://phabricator.services.mozilla.com/D108185
2021-04-12 18:06:52 +00:00
Emilio Cobos Álvarez 3e0cb7c68b Bug 1703289 - Make mixed content blocker use a session-persistent permission rather than ad-hoc code. r=ckerschb,smaug
This is more fission-compatible, and a lot simpler.

Differential Revision: https://phabricator.services.mozilla.com/D111480
2021-04-12 18:04:12 +00:00
Kagami Sascha Rosylight 38cb0347d5 Bug 1672141 - Part 5: Load font loader eagerly on test_wpt_touch_action r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D111457
2021-04-12 17:43:48 +00:00
Emilio Cobos Álvarez 9d38e5590e Bug 1704167 - When a pattern ends in whitespace, try to collapse adjacent white-space. r=jfkthame
This I'm not 100% sure. Should be harmless, but it's a bit subtle.
Maybe we should special-case it with "we're at the beginning of the
pattern"? Reasoning below:

The previous patch restores the performance of the original test-case.

However, if you go to the reduced test-case and try to type " re" in the
findbar, we still take a long time. The reason for that is not that the
previous patch is not effective, but that the findbar sends find
requests as soon as you type, and thus we end up with a request to find
" ", which matches a gazillion spaces in the page and causes us to use
tons of memory and time. Finding " re" is actually super-fast :-)

This fixes it, but it is a bit subtle, so thoughts? Perhaps the findbar
should wait a bit to perform the search before sending a query for " "
instead or something? But I'd rather make it fast.

Differential Revision: https://phabricator.services.mozilla.com/D111634
2021-04-12 16:11:21 +00:00
Bryce Seager van Dyk 4437e99191 Bug 1697641 - Gracefully handle webms with bogus timecodes that conflict other metadata. r=kinetik
This expands on existing checks when getting a webms buffered intervals. The
additional check ensures we don't end up with end < start due to our code that
clamps end at duration.

This patch moves those checks into their own helper function so as to reduce
clutter in GetBuffered.

Differential Revision: https://phabricator.services.mozilla.com/D111152
2021-04-12 16:07:07 +00:00
Tom Schuster af15083e8c Bug 1704293 - Use Maybe<PropertyDescriptor> for SetPropertyIgnoringNamedGetter. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D111538
2021-04-12 15:34:19 +00:00
Edgar Chen 9fe82157a7 Bug 1662723 - Wait for APZ get stable in test_focus_blur_on_click_in_cross_origin_iframe.html; r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D111259
2021-04-12 15:23:02 +00:00
Edgar Chen 23160e3980 Bug 1681368 - Wait for APZ get stable in test_focus_blur_on_click_in_deep_cross_origin_iframe.html; r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D111267
2021-04-12 15:22:26 +00:00
stransky a2e4e7df61 Bug 1703765 [Wayland] Use widget.wayland.test-workarounds.enabled pref to specify Wayland test environment. r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D111600
2021-04-12 12:11:19 +00:00
Kershaw Chang c34f63634c Bug 1660307 - Get rid off nsSupportsWeakReference for WebSocketImpl, r=baku
Differential Revision: https://phabricator.services.mozilla.com/D111059
2021-04-12 11:50:35 +00:00
Markus Stange d9d0069c71 Bug 1704206 - Add XULPopupElement.activateItem as a way to activate menu items. r=tnikkel,emilio
Differential Revision: https://phabricator.services.mozilla.com/D111519
2021-04-12 00:32:19 +00:00
Karl Tomlinson d3c26012dd Bug 1698238 extract a GetUserMediaTask base class r=jib,pehrsons
in preparation for SelectAudioOutputTask.

Differential Revision: https://phabricator.services.mozilla.com/D108381
2021-04-11 22:58:38 +00:00
Emilio Cobos Álvarez 97ec9ca623 Bug 1704332 - Remove various image-orientation related prefs. r=tnikkel
These shipped in 77.

Differential Revision: https://phabricator.services.mozilla.com/D111550
2021-04-11 17:39:12 +00:00
Kagami Sascha Rosylight af6b24b75f Bug 1631581 - Part 8: Rename TreatNonObjectAsNull to LegacyTreatNonObjectAsNull r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D111216
2021-04-11 03:13:33 +00:00
Kagami Sascha Rosylight a0c17c50d9 Bug 1631581 - Part 7: Rename OverrideBuiltIns to LegacyOverrideBuiltIns r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D111215
2021-04-11 03:13:33 +00:00
Kagami Sascha Rosylight 074001023e Bug 1631581 - Part 6: Rename LenientSetter to LegacyLenientSetter r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D111214
2021-04-11 03:13:32 +00:00
Kagami Sascha Rosylight 434af579f7 Bug 1631581 - Part 5: Rename TreatNullAs=EmptyString to LegacyNullToEmptyString r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D111213
2021-04-11 03:13:32 +00:00
Kagami Sascha Rosylight 20a3a7aaff Bug 1631581 - Part 4: Rename Unforgeable to LegacyUnforgeable r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D111212
2021-04-11 03:13:32 +00:00
Kagami Sascha Rosylight d8adb037f5 Bug 1631581 - Part 3: Rename LenientThis to LegacyLenientThis r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D111211
2021-04-11 03:13:31 +00:00
Kagami Sascha Rosylight 76d2e42ae7 Bug 1631581 - Part 2: Rename NamedConstructor to LegacyFactoryFunction r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D111210
2021-04-11 03:13:31 +00:00